默认课程考试不分是否所属单位始终展示
This commit is contained in:
parent
c6f0df8b18
commit
5d65b4d50d
@ -225,21 +225,20 @@ public class MapSystemService implements IMapSystemService {
|
||||
if(!CollectionUtils.isEmpty(departLessonRefs)){
|
||||
lessonVOList = iLessonService.getValidLesson(departLessonRefs.stream().map(DepartmentLesson::getLessonId).collect(Collectors.toList()), mapSystem.getPrdType());
|
||||
}
|
||||
//默认课程展示
|
||||
MapVO mapVO = iMapService.findMapBaseInfoById(mapSystem.getMapId());
|
||||
BusinessConsts.Lesson.PrdInfo prdInfo = BusinessConsts.Lesson.PrdInfo.getBy(mapSystem.getPrdType());
|
||||
if (Objects.nonNull(prdInfo)) {
|
||||
String defaultLessonName = String.join("-", mapVO.getName(), prdInfo.getName());
|
||||
LessonVO existedDefaultLesson = iLessonService.findByMapAndNameAndPrdType(mapSystem.getMapId(), defaultLessonName, mapSystem.getPrdType());
|
||||
if (Objects.nonNull(existedDefaultLesson)) {
|
||||
if (lessonVOList.stream().noneMatch(lessonVO -> lessonVO.getId().equals(existedDefaultLesson.getId()))) {
|
||||
lessonVOList.add(existedDefaultLesson);
|
||||
}
|
||||
}
|
||||
//默认课程展示
|
||||
MapVO mapVO = iMapService.findMapBaseInfoById(mapSystem.getMapId());
|
||||
BusinessConsts.Lesson.PrdInfo prdInfo = BusinessConsts.Lesson.PrdInfo.getBy(mapSystem.getPrdType());
|
||||
if (Objects.nonNull(prdInfo)) {
|
||||
String defaultLessonName = String.join("-", mapVO.getName(), prdInfo.getName());
|
||||
LessonVO existedDefaultLesson = iLessonService.findByMapAndNameAndPrdType(mapSystem.getMapId(), defaultLessonName, mapSystem.getPrdType());
|
||||
if (Objects.nonNull(existedDefaultLesson)) {
|
||||
if (lessonVOList.stream().noneMatch(lessonVO -> lessonVO.getId().equals(existedDefaultLesson.getId()))) {
|
||||
lessonVOList.add(existedDefaultLesson);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
} else{
|
||||
lessonVOList = iLessonService.getByMapIdAndPrdType(mapSystem.getMapId(), mapSystem.getPrdType());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user