| | |
| | | * 硬件开门后回调 存储会员使用明细 |
| | | */ |
| | | @GetMapping("/recordVipDetail") |
| | | public void recordVipDetail(Integer vipDetailId,Integer rid,Integer sid) throws ParseException { |
| | | public void recordVipDetail(Integer vipDetail,Integer rid,Integer sid) throws ParseException { |
| | | System.err.println("硬件开门后回调 存储会员卡门票权益使用记录"); |
| | | System.err.println("vipDetailId:"+vipDetailId); |
| | | System.err.println("vipDetailId:"+vipDetail); |
| | | System.err.println("rid:"+rid); |
| | | System.err.println("sid:"+sid); |
| | | String replace = vipDetailId.toString().replace("-", ""); |
| | | String replace = vipDetail.toString().replace("-", ""); |
| | | VipDetail vipDetailServiceById = vipDetailService.getById(Integer.valueOf( replace)); |
| | | if (vipDetailServiceById!=null){ |
| | | Site site = siteClient.querySiteById(rid); |
| | | if (site!=null){ |
| | | List<Store> stores = storeClient.queryStoreByIds(Arrays.asList(rid)); |
| | | List<Store> stores = storeClient.queryStoreByIds(Arrays.asList(sid)); |
| | | if (!stores.isEmpty()){ |
| | | Store store = stores.get(0); |
| | | vipDetailServiceById.setOperatorId(store.getOperatorId()); |