he2802 преди 3 години
родител
ревизия
686dce091f

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

@@ -385,7 +385,7 @@ public class CourseSectionServiceImpl extends ServiceImpl<CourseSectionMapper, C
         int i=10;
         int Index = 0;
         int total = 0;  //节的总数
-        Map<String,List<CourseChapterSectionImport>> map = new HashMap();
+        LinkedHashMap<String,List<CourseChapterSectionImport>> map = new LinkedHashMap();
         for (CourseChapterSectionImport sectionImport : sectionList) {
             if(Validator.isEmpty(sectionImport.getChapterName())){
             //    errorLog+="第"+ (Index)+"条:"+"节标题空白。\r\n";

+ 1 - 0
zhongzheng-system/src/main/resources/mapper/modules/course/CourseSectionMapper.xml

@@ -248,5 +248,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             AND cs.section_id != #{sectionId}
         </if>
         AND cs.live_url = #{liveUrl}
+        AND cs.`status` != -1
     </select>
 </mapper>