|
@@ -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
|