| | |
| | | |
| | | private Integer resolveStoreId(Integer storeId) { |
| | | Integer objectType = UserExt.getUser().getObjectType(); |
| | | if (Integer.valueOf(3).equals(objectType)) { |
| | | return UserExt.getUser().getObjectId(); |
| | | } |
| | | if (!Integer.valueOf(2).equals(objectType) || storeId == null) { |
| | | return storeId; |
| | | } |
| | |
| | | @RequestMapping(value = "/getIncomeData") |
| | | @ResponseBody |
| | | public Object getIncomeData(Integer operatorId,Integer storeId) { |
| | | operatorId = resolveOperatorId(operatorId); |
| | | storeId = resolveStoreId(storeId); |
| | | // operatorId = resolveOperatorId(operatorId); |
| | | // storeId = resolveStoreId(operatorId); |
| | | Integer objectId = UserExt.getUser().getObjectId(); |
| | | List<Integer> cityManagerId= new ArrayList<>(); |
| | | if(objectId>0){ |
| | | operatorId=objectId; |
| | | if(storeId==null){ |
| | | cityManagerId= storeService.list(new QueryWrapper<TStore>().eq("cityManagerId", objectId)).stream().map(TStore::getId).collect(Collectors.toList()); |
| | | }else { |
| | | cityManagerId.add(storeId); |
| | | } |
| | | |
| | | } |
| | | // 报名课程查询query |
| | | RegisterOrderQuery query = new RegisterOrderQuery(); |
| | | // 充值记录查询query |
| | |
| | | } |
| | | }else { |
| | | List<Integer> list = new ArrayList<>(); |
| | | |
| | | |
| | | list.add(storeId); |
| | | |
| | | |
| | | query.setStoresIds(list); |
| | | siteBookingQuery.setStoreIds(list); |
| | | competitionQuery.setStoreId(storeId); |
| | |
| | | } |
| | | |
| | | // 积分商品 |
| | | List<PointMerchandiseIncomeVo> amount = pointMercharsClient.getAmount(); |
| | | List<Integer> pointMerchandiseStoreIds = Collections.emptyList(); |
| | | if (storeId != null) { |
| | | pointMerchandiseStoreIds = Collections.singletonList(storeId); |
| | | } else if (operatorId != null) { |
| | | pointMerchandiseStoreIds = storeIds; |
| | | if (pointMerchandiseStoreIds.size() == 0) { |
| | | pointMerchandiseStoreIds = Collections.singletonList(-1); |
| | | } |
| | | } |
| | | List<PointMerchandiseIncomeVo> amount = pointMercharsClient.getAmount(pointMerchandiseStoreIds); |
| | | for (PointMerchandiseIncomeVo pointMerchandiseIncomeVo : amount) { |
| | | IncomeVO temp = new IncomeVO(); |
| | | if (pointMerchandiseIncomeVo==null) continue; |
| | |
| | | @RequestMapping(value = "/backStore") |
| | | @ResponseBody |
| | | public Object backStore(Integer id) { |
| | | List<Integer> collect1 = Arrays.asList(id); |
| | | id = resolveStoreId(id); |
| | | List<Integer> collect1 = Arrays.asList(id == null ? -1 : id); |
| | | //课程 |
| | | List<Integer> list = coursePackagePaymentClient.queryPaymentCoursePackage(collect1); |
| | | //场地 |
| | |
| | | @RequestMapping(value = "/stuStores") |
| | | @ResponseBody |
| | | public Object stuStores(Integer id) { |
| | | List<Integer> collect1 = Arrays.asList(id); |
| | | id = resolveStoreId(id); |
| | | List<Integer> collect1 = Arrays.asList(id == null ? -1 : id); |
| | | //课程 |
| | | List<Integer> list = coursePackagePaymentClient.queryPaymentCoursePackage(collect1); |
| | | //场地 |
| | |
| | | @RequestMapping(value = "/courseStore") |
| | | @ResponseBody |
| | | public Object courseStore(Integer id) { |
| | | List<Integer> userPt = appUserClient.getUserPt(Arrays.asList(id)); |
| | | id = resolveStoreId(id); |
| | | List<Integer> userPt = appUserClient.getUserPt(Arrays.asList(id == null ? -1 : id)); |
| | | HashMap<String, Object> map = coursePackagePaymentClient.coursePt(userPt); |
| | | return map; |
| | | } |
| | |
| | | @RequestMapping(value = "/userAndVipStore") |
| | | @ResponseBody |
| | | public Object userAndVipStore(Integer id) { |
| | | List<Integer> collect1 = Arrays.asList(id); |
| | | id = resolveStoreId(id); |
| | | List<Integer> collect1 = Arrays.asList(id == null ? -1 : id); |
| | | //课程 |
| | | List<Integer> list = coursePackagePaymentClient.queryPaymentCoursePackage(collect1); |
| | | //场地 |
| | |
| | | //门票 |
| | | |
| | | |
| | | competionVO.setIds(list); |
| | | competionVO.setIds(list2); |
| | | competionVO.setOperatorId(id); |
| | | competionVO.setStoreIds(collect1); |
| | | HashMap<String, Object> map = competitionClient.actYys(competionVO); |
| | | |
| | | List<TStore> lists = storeService.list(new LambdaQueryWrapper<TStore>().eq(TStore::getOperatorId, id)); |
| | |
| | | @RequestMapping(value = "/actStore") |
| | | @ResponseBody |
| | | public Object actStore(Integer id) { |
| | | List<Integer> collect1 = Arrays.asList(id); |
| | | id = resolveStoreId(id); |
| | | List<Integer> collect1 = Arrays.asList(id == null ? -1 : id); |
| | | //课程 |
| | | List<Integer> list = coursePackagePaymentClient.queryPaymentCoursePackage(collect1); |
| | | //场地 |
| | |
| | | @RequestMapping("/selectStore") |
| | | public Object selectStore(Integer id,String time) { |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | List<Integer> collect1 = Arrays.asList(id); |
| | | id = resolveStoreId(id); |
| | | List<Integer> collect1 = Arrays.asList(id == null ? -1 : id); |
| | | //课程 |
| | | List<Integer> list = coursePackagePaymentClient.queryPaymentCoursePackage(collect1); |
| | | //场地 |
| | |
| | | @ResponseBody |
| | | public Object stuUserDataStore(Integer id) { |
| | | |
| | | List<Integer> collect1 = Arrays.asList(id); |
| | | id = resolveStoreId(id); |
| | | List<Integer> collect1 = Arrays.asList(id == null ? -1 : id); |
| | | //课程 |
| | | List<Integer> list = coursePackagePaymentClient.queryPaymentCoursePackage(collect1); |
| | | //场地 |
| | |
| | | @RequestMapping("/selectStoreJx") |
| | | @ResponseBody |
| | | public Object selectStoreJx(Integer id) { |
| | | List<Integer> collect1 = Arrays.asList(id); |
| | | id = resolveStoreId(id); |
| | | List<Integer> collect1 = Arrays.asList(id == null ? -1 : id); |
| | | //课程 |
| | | List<Integer> list = coursePackagePaymentClient.queryPaymentCoursePackage(collect1); |
| | | //场地 |