| | |
| | | query.setProvince(province); |
| | | query.setCity(city); |
| | | query.setStoreId(storeId); |
| | | query.setInsertType(UserExt.getUser().getObjectType()); |
| | | if(UserExt.getUser().getObjectType()==2){ |
| | | List<Integer> operatorId = storeService.list(new QueryWrapper<TStore>() |
| | | .eq("operatorId", UserExt.getUser().getObjectId())).stream() |
| | |
| | | RechargeRecordsQuery rechargeRecordsQuery = new RechargeRecordsQuery(); |
| | | // 报名课程查询query |
| | | RegisterOrderQuery query = new RegisterOrderQuery(); |
| | | query.setInsertType(UserExt.getUser().getObjectType()); |
| | | if(UserExt.getUser().getObjectType()==2){ |
| | | query.setStoresIds(storeService.list(new QueryWrapper<TStore>() |
| | | .eq("operatorId",UserExt.getUser().getObjectId()) |
| | | ).stream().map(TStore::getId).collect(Collectors.toList())); |
| | | } |
| | | // 赛事活动查询query |
| | | CompetitionQuery competitionQuery = new CompetitionQuery(); |
| | | // 会员支付查询query |
| | |
| | | IncomeVO temp = new IncomeVO(); |
| | | TAppUser tAppUser = appUserClient.queryById(competition.getAppUserId()); |
| | | Competition competition1 = competitionClient.queryById(competition.getCompetitionId()); |
| | | if(null == competition1){ |
| | | continue; |
| | | } |
| | | if (!competition1.getStoreId().equals("")){ |
| | | String[] split = competition1.getStoreId().split(","); |
| | | List<Integer> list = new ArrayList<>(); |
| | |
| | | RechargeRecordsQuery rechargeRecordsQuery = new RechargeRecordsQuery(); |
| | | // 报名课程查询query |
| | | RegisterOrderQuery query = new RegisterOrderQuery(); |
| | | query.setInsertType(UserExt.getUser().getObjectType()); |
| | | query.setStoresIds(storeService.list(new QueryWrapper<TStore>() |
| | | .eq("operatorId",UserExt.getUser().getObjectId())) |
| | | .stream().map(TStore::getId).collect(Collectors.toList())); |
| | | // 赛事活动查询query |
| | | CompetitionQuery competitionQuery = new CompetitionQuery(); |
| | | // 会员支付查询query |
| | |
| | | IncomeVO temp = new IncomeVO(); |
| | | TAppUser tAppUser = appUserClient.queryById(competition.getAppUserId()); |
| | | Competition competition1 = competitionClient.queryById(competition.getCompetitionId()); |
| | | if(null == competition1){ |
| | | continue; |
| | | } |
| | | if (!competition1.getStoreId().equals("")){ |
| | | String[] split = competition1.getStoreId().split(","); |
| | | List<Integer> list = new ArrayList<>(); |
| | |
| | | if(UserExt.getUser().getObjectType()==3){ |
| | | coachQuery.setStoreId(UserExt.getUser().getObjectId()); |
| | | } |
| | | if(UserExt.getUser().getObjectType()==2){ |
| | | // 运营商门店ids |
| | | List<Integer> storeIds = storeService |
| | | .list(new QueryWrapper<TStore>().eq("operatorId", UserExt.getUser().getObjectId())) |
| | | .stream().map(TStore::getId).collect(Collectors.toList()); |
| | | coachQuery.setStoreIds(storeIds); |
| | | } |
| | | return cancelledClassesClient.listAll(coachQuery); |
| | | } |
| | | /** |
| | |
| | | query.setProvince(province); |
| | | query.setCity(city); |
| | | query.setStoreId(storeId); |
| | | query.setInsertType(UserExt.getUser().getObjectType()); |
| | | if(UserExt.getUser().getObjectType()==2){ |
| | | query.setStoresIds(storeService.list(new QueryWrapper<TStore>() |
| | | .eq("operatorId",UserExt.getUser().getObjectId()) |