he2802 преди 3 години
родител
ревизия
1ffcd05219
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      zhongzheng-system/src/main/resources/mapper/modules/course/CourseChapterSectionMapper.xml

+ 2 - 2
zhongzheng-system/src/main/resources/mapper/modules/course/CourseChapterSectionMapper.xml

@@ -156,7 +156,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
           and cme.chapter_id = #{chapterId}
           and cme.course_id = #{courseId}
          and cme.type = 1
-        <if test="moduleId == null ">
+        <if test="moduleId != null ">
             and cme.module_id = #{moduleId}
         </if>
     </select>
@@ -198,7 +198,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         and cme.chapter_id = #{chapterId}
         and cme.course_id = #{courseId}
         and cme.type = 2
-        <if test="moduleId == null ">
+        <if test="moduleId != null ">
             and cme.module_id = #{moduleId}
         </if>
     </select>