change 3 жил өмнө
parent
commit
ad87fca157

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/course/service/impl/CourseChapterSectionServiceImpl.java

@@ -148,7 +148,7 @@ public class CourseChapterSectionServiceImpl extends ServiceImpl<CourseChapterSe
                 }
             }
         }
-        if (bo.getRebuild() == 1) {
+        if (bo.getRebuild() != null && bo.getRebuild() == 1) {
             List<CourseUserChapterSectionVo> courseUserChapterSectionVos1 = courseUserChapterSectionVos.stream().filter(s -> s.getRebuild().equals("1")).collect(Collectors.toList());
             return courseUserChapterSectionVos1;
         }