Browse Source

fix 节名称重复

he2802 3 năm trước cách đây
mục cha
commit
33cadf5d67

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

@@ -303,7 +303,7 @@ public class CourseSectionServiceImpl extends ServiceImpl<CourseSectionMapper, C
                 .eq(CourseSection::getPrefixName,entity.getPrefixName()).eq(CourseSection::getName,entity.getName()).ne(CourseSection::getStatus,-1).last("limit 1"));
         if (Validator.isNotNull(info)) {
             if(Validator.isNotEmpty(entity.getSectionId())){
-                if(entity.getSectionId() != info.getSectionId()){
+                if(entity.getSectionId().longValue() != info.getSectionId().longValue()){
                     return true;
                 }
             }else{