下架默认课程不显示
This commit is contained in:
parent
fe2892dad0
commit
49eba85de3
@ -232,12 +232,12 @@ public class MapSystemService implements IMapSystemService {
|
||||
|
||||
}
|
||||
|
||||
//默认课程展示
|
||||
// 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.findSysFaultByMapAndPrdType(mapSystem.getMapId(), mapSystem.getPrdType());
|
||||
if (Objects.nonNull(existedDefaultLesson)) {
|
||||
if (Objects.nonNull(existedDefaultLesson) && Objects.equals(MapStatus.Online.getCode(),existedDefaultLesson.getStatus())) {
|
||||
if (lessonVOList.stream().noneMatch(lessonVO -> lessonVO.getId().equals(existedDefaultLesson.getId()))) {
|
||||
// existedDefaultLesson.setSystemFault(true);
|
||||
lessonVOList.add(existedDefaultLesson);
|
||||
|
Loading…
Reference in New Issue
Block a user