瀏覽代碼

fix 资料审核

he2802 3 年之前
父節點
當前提交
bead4213da
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      zhongzheng-system/src/main/resources/mapper/modules/course/CourseChapterMapper.xml

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

@@ -106,12 +106,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         (
         SELECT
         cc.*,
-        count( ccs.section_id ) AS section_num,
+        count( cs.section_id ) AS section_num,
         COALESCE ( SUM( cs.duration_time ), 0 ) AS duration_time
         FROM
         course_chapter cc
         LEFT JOIN course_chapter_section ccs ON cc.chapter_id = ccs.chapter_id
-        LEFT JOIN course_section cs ON ccs.section_id = cs.section_id
+        LEFT JOIN course_section cs ON ccs.section_id = cs.section_id and cs.status!=-1
         where cc.status !=-1
         GROUP BY
         cc.chapter_id