| | |
| | | import com.dsh.course.feignClient.competition.model.Competition; |
| | | import com.dsh.course.feignClient.competition.model.ListQuery; |
| | | import com.dsh.course.feignClient.course.CoursePackageClient; |
| | | import com.dsh.course.feignClient.other.BallClient; |
| | | import com.dsh.course.feignClient.other.StoreClient; |
| | | import com.dsh.course.feignClient.other.model.SiteChangeStateVO; |
| | | import com.dsh.guns.config.UserExt; |
| | |
| | | private ISiteBookingService siteBookingService; |
| | | @Autowired |
| | | private CoursePackageClient coursePackageClient; |
| | | @Autowired |
| | | private BallClient ballClient; |
| | | |
| | | /** |
| | | * 跳转体测预约管理首页 |
| | | */ |
| | |
| | | |
| | | } |
| | | if (data.getViplevelId()!=null){ |
| | | // todo创建会员等级表 |
| | | // todo 创建会员等级表 |
| | | model.addAttribute("level","黄金"); |
| | | } |
| | | model.addAttribute("level","黄金"); |
| | |
| | | listQuery.setIds(storeIds); |
| | | // 通过门店ids 获取赛事的支付记录 获取到用户的ids |
| | | List<Integer> list = competitionClient.getUserIds(listQuery); |
| | | // todo 写根据用户ids查询用户的方法 |
| | | |
| | | // 获取场地预约记录 拿到用户ids |
| | | List<Integer> storeId = siteBookingService.list(new QueryWrapper<SiteBooking>().in("storeId", storeIds)) |
| | | List<Integer> siteUsers = siteBookingService.list(new QueryWrapper<SiteBooking>().in("storeId", storeIds)) |
| | | .stream().map(SiteBooking::getAppUserId).collect(Collectors.toList()); |
| | | // 获取课程购买记录 |
| | | |
| | | // 获取游戏记录 |
| | | // 获取课程购买记录 拿到用户ids |
| | | List<Integer> cpUsers = coursePackageClient.getCoursePackageByStoreIds(storeIds); |
| | | // 获取游戏记录 拿到用户ids |
| | | List<Integer> gameUsers = ballClient.getGameByStoreIds(storeIds); |
| | | // 用户ids |
| | | List<Integer> users = new ArrayList<>(); |
| | | users.addAll(list); |
| | | users.addAll(siteUsers); |
| | | users.addAll(cpUsers); |
| | | users.addAll(gameUsers); |
| | | // 去重后的用户id |
| | | List<Integer> collect = users.stream().distinct().collect(Collectors.toList()); |
| | | List<QueryAppUserVO> queryAppUserVOS1 = new ArrayList<>(); |
| | | for (QueryAppUserVO queryAppUserVO : queryAppUserVOS) { |
| | | if (collect.contains(queryAppUserVO.getId())){ |
| | | queryAppUserVOS1.add(queryAppUserVO); |
| | | } |
| | | } |
| | | queryAppUserVOS = queryAppUserVOS1; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | for (QueryAppUserVO queryAppUserVO : queryAppUserVOS) { |
| | | if (queryAppUserVO.getSalesmanUserId()!=null){ |