|
@@ -160,6 +160,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
ORDER BY c.chapter_id DESC
|
|
ORDER BY c.chapter_id DESC
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
+ <select id="getInfo" parameterType="Long" resultMap="CourseChapterResultVo">
|
|
|
|
|
+ select cc.*,(SELECT
|
|
|
|
|
+ count(ccs.section_id) from course_chapter_section ccs where ccs.chapter_id = cc.chapter_id) as section_num from course_chapter cc where cc.chapter_id = #{chapterId}
|
|
|
|
|
+
|
|
|
|
|
+ </select>
|
|
|
|
|
|
|
|
<select id="selectList_COUNT" resultType="Long">
|
|
<select id="selectList_COUNT" resultType="Long">
|
|
|
SELECT
|
|
SELECT
|