| | |
| | | import com.dsh.activity.feignclient.other.model.Site; |
| | | import com.dsh.activity.feignclient.other.model.Store; |
| | | import com.dsh.activity.service.*; |
| | | import com.dsh.activity.util.ResultUtil; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | private SiteClient siteClient; |
| | | @Resource |
| | | private StoreClient storeClient; |
| | | /** |
| | | * 硬件开门后回调 是否可进场检查接口 sid门店id rid场地id |
| | | */ |
| | | @PostMapping("/verify") |
| | | public ResultUtil verify(Integer id, Integer rid, Integer sid) { |
| | | System.err.println("硬件开门后回调 校验是否可入场");System.err.println("rid:"+rid); |
| | | System.err.println("sid:"+sid); |
| | | return ResultUtil.success(); |
| | | } |
| | | /** |
| | | * 硬件开门后回调 存储玩湃惠民卡使用记录 |
| | | */ |
| | |
| | | List<Store> stores = storeClient.queryStoreByIds(Arrays.asList(sid)); |
| | | if (!stores.isEmpty()){ |
| | | Store store = stores.get(0); |
| | | vipDetailServiceById.setOperatorId(store.getOperatorId()); |
| | | if(store.getOperatorId()==null){ |
| | | vipDetailServiceById.setOperatorId(0); |
| | | }else{ |
| | | vipDetailServiceById.setOperatorId(store.getOperatorId()); |
| | | } |
| | | } |
| | | } |
| | | // 根据场地id查询运营商id |
| | |
| | | vipDetailServiceById.setUseStoreId(sid); |
| | | vipDetailServiceById.setStatus(2); |
| | | vipDetailServiceById.setStartTime(new Date()); |
| | | vipDetailServiceById.setUseTime(new Date()); |
| | | // 获取今天的晚上23:59:59 |
| | | // 获取今天的晚上23:59:59 |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |