下架默认课程不显示

This commit is contained in:
DU 2021-03-01 17:36:05 +08:00 committed by joylink_zhangsai
parent fe2892dad0
commit 49eba85de3

View File

@ -232,12 +232,12 @@ public class MapSystemService implements IMapSystemService {
} }
//默认课程展示
// BusinessConsts.Lesson.PrdInfo prdInfo = BusinessConsts.Lesson.PrdInfo.getBy(mapSystem.getPrdType()); // BusinessConsts.Lesson.PrdInfo prdInfo = BusinessConsts.Lesson.PrdInfo.getBy(mapSystem.getPrdType());
// if (Objects.nonNull(prdInfo)) { // if (Objects.nonNull(prdInfo)) {
// String defaultLessonName = String.join("-", mapVO.getName(), prdInfo.getName()); // String defaultLessonName = String.join("-", mapVO.getName(), prdInfo.getName());
LessonVO existedDefaultLesson = iLessonService.findSysFaultByMapAndPrdType(mapSystem.getMapId(), mapSystem.getPrdType()); //默认课程展示
if (Objects.nonNull(existedDefaultLesson)) { LessonVO existedDefaultLesson = iLessonService.findSysFaultByMapAndPrdType(mapSystem.getMapId(), mapSystem.getPrdType());
if (Objects.nonNull(existedDefaultLesson) && Objects.equals(MapStatus.Online.getCode(),existedDefaultLesson.getStatus())) {
if (lessonVOList.stream().noneMatch(lessonVO -> lessonVO.getId().equals(existedDefaultLesson.getId()))) { if (lessonVOList.stream().noneMatch(lessonVO -> lessonVO.getId().equals(existedDefaultLesson.getId()))) {
// existedDefaultLesson.setSystemFault(true); // existedDefaultLesson.setSystemFault(true);
lessonVOList.add(existedDefaultLesson); lessonVOList.add(existedDefaultLesson);