| | |
| | | List<TCoursePackage> coursePackageByStoreId = coursePackageClient.getCoursePackageByStoreId(storeId); |
| | | tCoursePackages.addAll(coursePackageByStoreId); |
| | | } |
| | | |
| | | List<Integer> coursePackageByStoreIds = tCoursePackages.stream().distinct().map(TCoursePackage::getId).collect(Collectors.toList()); |
| | | if (tCoursePackages.isEmpty()){ |
| | | coursePackageByStoreIds.add(-1); |
| | | } |
| | | studentQeryDto.setCoursePackageIds(coursePackageByStoreIds); |
| | | |
| | | } |
| | | // 如果当前登陆人是门店 只查询该门店下的课包的数据 |
| | | if(UserExt.getUser().getObjectType() == 3){ |
| | |
| | | tCoursePackages.addAll(coursePackageByStoreId); |
| | | } |
| | | List<Integer> coursePackageByStoreIds = tCoursePackages.stream().distinct().map(TCoursePackage::getId).collect(Collectors.toList()); |
| | | if (tCoursePackages.isEmpty()){ |
| | | coursePackageByStoreIds.add(-1); |
| | | } |
| | | studentQeryDto.setCoursePackageIds(coursePackageByStoreIds); |
| | | } |
| | | |
| | | List<Map<String, Object>> pays = coursePackageClient.getStudentTotal(studentQeryDto); |
| | | return pays; |
| | | } |