|
@@ -148,6 +148,12 @@ public class LessonExaminationServiceImpl extends ServiceImpl<LessonExaminationD
|
|
|
if(CollectionUtils.isNotEmpty(examinationIds)){
|
|
|
nameMap = MapUtil.convertMybatisMap(studentLessonExaminationService.getDao().getStudentName(examinationIds));
|
|
|
}
|
|
|
+ Map<Long, StudentLessonExaminationDetail> examinationIdMap = new HashMap<>();
|
|
|
+ if(queryInfo.getLessonExaminationId() != null){
|
|
|
+ List<StudentLessonExaminationDetail> list = studentLessonExaminationDetailService.lambdaQuery().
|
|
|
+ in(StudentLessonExaminationDetail::getLessonExaminationId, examinationIds).list();
|
|
|
+ examinationIdMap = list.stream().collect(Collectors.toMap(StudentLessonExaminationDetail::getLessonExaminationId, v -> v));
|
|
|
+ }
|
|
|
List<Integer> teacherIds = dataList.stream().map(e -> e.getTeacherId()).distinct().collect(Collectors.toList());
|
|
|
Map<Integer, String> teacherNameMap = MapUtil.convertIntegerMap(teacherDao.queryNameByIdList(teacherIds));
|
|
|
Set<Integer> organIds = dataList.stream().map(e -> e.getOrganId()).collect(Collectors.toSet());
|
|
@@ -157,6 +163,10 @@ public class LessonExaminationServiceImpl extends ServiceImpl<LessonExaminationD
|
|
|
vo.setMusicGroupName(musicGroupNameMap.get(vo.getMusicGroupId()));
|
|
|
vo.setTeacherName(teacherNameMap.get(vo.getTeacherId()));
|
|
|
String username = nameMap.get(vo.getId());
|
|
|
+ StudentLessonExaminationDetail studentLessonExaminationDetail = examinationIdMap.get(vo.getId());
|
|
|
+ if(studentLessonExaminationDetail != null){
|
|
|
+ vo.setStudentLessonExaminationDetail(studentLessonExaminationDetail);
|
|
|
+ }
|
|
|
if(StringUtils.isNotEmpty(username)){
|
|
|
if(vo.getExpectNum() > 1){
|
|
|
StringBuffer sb = new StringBuffer(username);
|