|
@@ -133,6 +133,7 @@ public class StudentManageServiceImpl implements StudentManageService {
|
|
|
dataList = 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());
|
|
|
organIds.removeAll(Collections.singleton(null));
|
|
|
List<SysUserCashAccount> accounts = sysUserCashAccountDao.findByUserIds(userIds);
|
|
|
Map<Integer, Organization> organMap = null;
|
|
@@ -147,9 +148,13 @@ public class StudentManageServiceImpl implements StudentManageService {
|
|
|
List<String> subjectIds = dataList.stream().map(e -> e.getSubjectIdList()).distinct().collect(Collectors.toList());
|
|
|
subjectIds.removeAll(Collections.singleton(null));
|
|
|
Map<String, String> subjectMap = new HashMap<>();
|
|
|
+ Map<Integer, String> courseTeacherNameMap = new HashMap<>();
|
|
|
if(!CollectionUtils.isEmpty(subjectIds)){
|
|
|
subjectMap = sysConfigService.getMap("subject", "id_", "name_", subjectIds, queryInfo.getTenantId(), String.class, String.class);
|
|
|
}
|
|
|
+ if(!CollectionUtils.isEmpty(courseTeacherIds)){
|
|
|
+ courseTeacherNameMap = sysConfigService.getMap("sys_user", "id_", "real_name_", courseTeacherIds, queryInfo.getTenantId(), Integer.class, String.class);
|
|
|
+ }
|
|
|
List<Integer> cooIds = dataList.stream().map(e -> e.getCooperationOrganId()).distinct().collect(Collectors.toList());
|
|
|
cooIds.removeAll(Collections.singleton(null));
|
|
|
Map<Integer, String> cooMap = new HashMap<>();
|
|
@@ -177,6 +182,7 @@ public class StudentManageServiceImpl implements StudentManageService {
|
|
|
dto.setBalance(account.getBalance());
|
|
|
}
|
|
|
}
|
|
|
+ dto.setCourseTeacherName(courseTeacherNameMap.get(dto.getCourseTeacher()));
|
|
|
dto.setSubjectName(subjectMap.get(dto.getSubjectIdList()));
|
|
|
dto.setCooperationOrganName(cooMap.get(dto.getCooperationOrganId()));
|
|
|
if(!CollectionUtils.isEmpty(mappersMap)){
|