|
@@ -115,13 +115,24 @@ public class StudentManageServiceImpl implements StudentManageService {
|
|
|
Map<String, Object> params = new HashMap<String, Object>();
|
|
|
MapUtil.populateMap(params, queryInfo);
|
|
|
|
|
|
+ List<StudentManageListDto> dataList = null;
|
|
|
+
|
|
|
+ int jmCount = 0;
|
|
|
+ if(queryInfo.getTenantId() == 28){
|
|
|
+ queryInfo.setOrganId(null);
|
|
|
+ jmCount = studentManageDao.countStudentByOrganId(params);
|
|
|
+ dataList = studentManageDao.findStudentsByOrganId(params);
|
|
|
+
|
|
|
+ queryInfo.setTenantId(1);
|
|
|
+ }
|
|
|
+
|
|
|
if(StringUtils.isNotEmpty(queryInfo.getOrganId())){
|
|
|
String[] organIds = queryInfo.getOrganId().split(",");
|
|
|
params.put("organIds", organIds);
|
|
|
}
|
|
|
|
|
|
- List<StudentManageListDto> dataList = null;
|
|
|
int count = studentManageDao.countStudentByOrganId(params);
|
|
|
+ count = count + jmCount;
|
|
|
if (queryInfo.getIsExport()) {
|
|
|
if (count > 50000) {
|
|
|
throw new BizException("数据集太大,不能导出.最大数据集不能超过50000");
|
|
@@ -130,7 +141,11 @@ public class StudentManageServiceImpl implements StudentManageService {
|
|
|
if (count > 0) {
|
|
|
pageInfo.setTotal(count);
|
|
|
params.put("offset", pageInfo.getOffset());
|
|
|
- dataList = studentManageDao.findStudentsByOrganId(params);
|
|
|
+ if(dataList == null){
|
|
|
+ dataList = studentManageDao.findStudentsByOrganId(params);
|
|
|
+ }else{
|
|
|
+ dataList.addAll(studentManageDao.findStudentsByOrganId(params));
|
|
|
+ }
|
|
|
Set<Integer> userIds = dataList.stream().map(e -> e.getUserId()).collect(Collectors.toSet());
|
|
|
List<Integer> organIds = dataList.stream().map(e -> e.getOrganId()).distinct().collect(Collectors.toList());
|
|
|
List<Integer> courseTeacherIds = dataList.stream().map(e -> e.getCourseTeacher()).distinct().collect(Collectors.toList());
|