| | |
| | | @Autowired |
| | | private IWorldCupPaymentService worldCupPaymentService; |
| | | |
| | | |
| | | /** |
| | | * 根据门店id获取门店关系数据 |
| | | * @param storeId |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/worldCup/getWorldCupStoreListByStoreId") |
| | | public List<WorldCupStore> getWorldCupStoreListByStoreId(@RequestBody Integer storeId){ |
| | | return worldCupStoreService.list(new QueryWrapper<WorldCupStore>().eq("storeId", storeId)); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | |
| | | return ResultUtil.error("无效二维码"); |
| | | } |
| | | WorldCupPeopleVo worldCupPeopleVo = new WorldCupPeopleVo(); |
| | | worldCupPeopleVo.setId(worldCupPaymentParticipant.getId()); |
| | | worldCupPeopleVo.setId(worldCupPaymentParticipant.getParticipantId()); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy"); |
| | | if(worldCupPaymentParticipant.getParticipantType() == 1){ |
| | | //学员 |
| | | TStudent tStudent = studentClient.queryById(worldCupPaymentParticipant.getParticipantId()); |
| | | TStudent tStudent = studentClient.queryById(worldCupPaymentParticipant.getParticipantId().intValue()); |
| | | worldCupPeopleVo.setName(tStudent.getName()); |
| | | worldCupPeopleVo.setAge(null == tStudent.getBirthday() ? 0 : Integer.valueOf(sdf.format(new Date())) -Integer.valueOf(sdf.format(tStudent.getBirthday()))); |
| | | worldCupPeopleVo.setAvatar(tStudent.getHeadImg()); |