瀏覽代碼

Merge remote-tracking branch 'origin/dev' into dev

change 3 年之前
父節點
當前提交
aeb840f844

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

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