From 49eba85de37c8125905afc23d9fe2c5e90c6737f Mon Sep 17 00:00:00 2001 From: DU Date: Mon, 1 Mar 2021 17:36:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E6=9E=B6=E9=BB=98=E8=AE=A4=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/club/joylink/rtss/services/MapSystemService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/club/joylink/rtss/services/MapSystemService.java b/src/main/java/club/joylink/rtss/services/MapSystemService.java index 1dd77b69f..89808cd44 100644 --- a/src/main/java/club/joylink/rtss/services/MapSystemService.java +++ b/src/main/java/club/joylink/rtss/services/MapSystemService.java @@ -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)) { + //默认课程展示 + 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()))) { // existedDefaultLesson.setSystemFault(true); lessonVOList.add(existedDefaultLesson);