| | |
| | | @Autowired |
| | | private AppUserClient appUserClient; |
| | | |
| | | /** |
| | | * 根据门店ids 获取对应的赛事 根据赛事支付记录获取用户ids |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/base/competition/getUserIds") |
| | | public List<Integer> getUserIds(@RequestBody ListQuery query){ |
| | | List<Competition> list = cttService.list(new QueryWrapper<Competition>()); |
| | | // 赛事id集合 |
| | | List<Integer> comIds = new ArrayList<>(); |
| | | |
| | | for (Integer id : query.getIds()) { |
| | | for (Competition competition : list) { |
| | | if (competition.getStoreId().contains(id.toString())){ |
| | | comIds.add(competition.getId()); |
| | | } |
| | | } |
| | | } |
| | | // 获取到赛事id集合 去重 |
| | | List<Integer> collect = comIds.stream().distinct().collect(Collectors.toList()); |
| | | // 根据赛事id 查询赛事支付记录 获取用户ids |
| | | List<PaymentCompetition> competitionId = paymentCompetitionService.list(new QueryWrapper<PaymentCompetition>() |
| | | .in("competitionId", collect)); |
| | | |
| | | // .stream().map(PaymentCompetition::getAppUserId).collect(Collectors.toList()); |
| | | |
| | | |
| | | return null; |
| | | } |
| | | /** |
| | | * 获取赛事报名记录 |
| | | */ |