|
@@ -1528,7 +1528,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="findChapterList" parameterType="com.zhongzheng.modules.grade.bo.ClassGradeUserQueryBo" resultMap="CourseChapterResultVo">
|
|
|
- SELECT
|
|
|
+ (SELECT
|
|
|
cc.chapter_id,
|
|
|
cc.`name`
|
|
|
FROM
|
|
@@ -1538,8 +1538,8 @@
|
|
|
LEFT JOIN goods_course gc ON gc.course_id = m.course_id
|
|
|
WHERE
|
|
|
gc.goods_id = #{goodsId}
|
|
|
- AND m.type = 1 UNION
|
|
|
- SELECT
|
|
|
+ AND m.type = 1 ORDER BY m.sort) UNION
|
|
|
+ (SELECT
|
|
|
cc.chapter_id,
|
|
|
cc.`name`
|
|
|
FROM
|
|
@@ -1549,7 +1549,7 @@
|
|
|
WHERE
|
|
|
gc.goods_id = #{goodsId}
|
|
|
AND m.type = 2
|
|
|
- ORDER BY m.sort
|
|
|
+ ORDER BY m.sort ORDER BY m.sort)
|
|
|
</select>
|
|
|
|
|
|
<select id="selectOfficialInfoCount" parameterType="com.zhongzheng.modules.grade.bo.ClassGradeUserQueryBo" resultType="long">
|