| | |
| | | |
| | | 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; |
| | | } |
| | |
| | | } |
| | | |
| | | // 积分商品 |
| | | 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); |
| | | List<PointMerchandiseIncomeVo> amount = pointMercharsClient.getAmount(cityManagerId); |
| | | for (PointMerchandiseIncomeVo pointMerchandiseIncomeVo : amount) { |
| | | IncomeVO temp = new IncomeVO(); |
| | | if (pointMerchandiseIncomeVo==null) continue; |
| | |
| | | @RequestMapping(value = "/backStore") |
| | | @ResponseBody |
| | | public Object backStore(Integer id) { |
| | | id = resolveStoreId(id); |
| | | List<Integer> collect1 = Arrays.asList(id == null ? -1 : id); |
| | | List<Integer> collect1 = Arrays.asList(id); |
| | | //课程 |
| | | List<Integer> list = coursePackagePaymentClient.queryPaymentCoursePackage(collect1); |
| | | //场地 |
| | |
| | | @RequestMapping(value = "/stuStores") |
| | | @ResponseBody |
| | | public Object stuStores(Integer id) { |
| | | id = resolveStoreId(id); |
| | | List<Integer> collect1 = Arrays.asList(id == null ? -1 : id); |
| | | List<Integer> collect1 = Arrays.asList(id); |
| | | //课程 |
| | | List<Integer> list = coursePackagePaymentClient.queryPaymentCoursePackage(collect1); |
| | | //场地 |
| | |
| | | @RequestMapping(value = "/courseStore") |
| | | @ResponseBody |
| | | public Object courseStore(Integer id) { |
| | | id = resolveStoreId(id); |
| | | List<Integer> userPt = appUserClient.getUserPt(Arrays.asList(id == null ? -1 : id)); |
| | | List<Integer> userPt = appUserClient.getUserPt(Arrays.asList(id)); |
| | | HashMap<String, Object> map = coursePackagePaymentClient.coursePt(userPt); |
| | | return map; |
| | | } |
| | |
| | | @RequestMapping(value = "/userAndVipStore") |
| | | @ResponseBody |
| | | public Object userAndVipStore(Integer id) { |
| | | id = resolveStoreId(id); |
| | | List<Integer> collect1 = Arrays.asList(id == null ? -1 : id); |
| | | List<Integer> collect1 = Arrays.asList(id); |
| | | //课程 |
| | | List<Integer> list = coursePackagePaymentClient.queryPaymentCoursePackage(collect1); |
| | | //场地 |
| | |
| | | @RequestMapping(value = "/actStore") |
| | | @ResponseBody |
| | | public Object actStore(Integer id) { |
| | | id = resolveStoreId(id); |
| | | List<Integer> collect1 = Arrays.asList(id == null ? -1 : id); |
| | | List<Integer> collect1 = Arrays.asList(id); |
| | | //课程 |
| | | List<Integer> list = coursePackagePaymentClient.queryPaymentCoursePackage(collect1); |
| | | //场地 |
| | |
| | | @RequestMapping("/selectStore") |
| | | public Object selectStore(Integer id,String time) { |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | id = resolveStoreId(id); |
| | | List<Integer> collect1 = Arrays.asList(id == null ? -1 : id); |
| | | List<Integer> collect1 = Arrays.asList(id); |
| | | //课程 |
| | | List<Integer> list = coursePackagePaymentClient.queryPaymentCoursePackage(collect1); |
| | | //场地 |
| | |
| | | @ResponseBody |
| | | public Object stuUserDataStore(Integer id) { |
| | | |
| | | id = resolveStoreId(id); |
| | | List<Integer> collect1 = Arrays.asList(id == null ? -1 : id); |
| | | List<Integer> collect1 = Arrays.asList(id); |
| | | //课程 |
| | | List<Integer> list = coursePackagePaymentClient.queryPaymentCoursePackage(collect1); |
| | | //场地 |
| | |
| | | @RequestMapping("/selectStoreJx") |
| | | @ResponseBody |
| | | public Object selectStoreJx(Integer id) { |
| | | id = resolveStoreId(id); |
| | | List<Integer> collect1 = Arrays.asList(id == null ? -1 : id); |
| | | List<Integer> collect1 = Arrays.asList(id); |
| | | //课程 |
| | | List<Integer> list = coursePackagePaymentClient.queryPaymentCoursePackage(collect1); |
| | | //场地 |