Quellcode durchsuchen

fix 发布状态

he2802 vor 3 Jahren
Ursprung
Commit
e083f891e8

+ 2 - 2
zhongzheng-system/src/main/java/com/zhongzheng/modules/course/service/impl/CourseChapterServiceImpl.java

@@ -170,9 +170,9 @@ public class CourseChapterServiceImpl extends ServiceImpl<CourseChapterMapper, C
      */
     private void validEntityBeforeSave(CourseChapter entity){
         //TODO 做一些数据校验,如唯一约束
-        if(checkNameUnique(entity)){
+       /* if(checkNameUnique(entity)){
             throw new CustomException("名称重复");
-        }
+        }*/
         if(entity.getChapterId()!=null&&entity.getPublishStatus()!=null&&entity.getPublishStatus()==0){
             CourseMenu one = iCourseMenuService.getOne(new LambdaQueryWrapper<CourseMenu>().eq(CourseMenu::getMenuId, entity.getChapterId()).eq(CourseMenu::getType,2).last("limit 1"));
             if(one!=null){