|
@@ -47,8 +47,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND c.category_id = #{categoryId}
|
|
AND c.category_id = #{categoryId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
- GROUP BY cs.chapter_id,c.course_id)rs LEFT JOIN major_category mc on rs.category_id = mc.category_id
|
|
|
|
|
- GROUP BY course_id ORDER BY rs.sort DESC
|
|
|
|
|
|
|
+ GROUP BY cs.chapter_id,c.course_id ORDER BY c.sort DESC)rs LEFT JOIN major_category mc on rs.category_id = mc.category_id
|
|
|
|
|
+ GROUP BY course_id
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="queryRecommendList" parameterType="com.zhongzheng.modules.course.bo.CourseQueryBo" resultMap="CourseResult">
|
|
<select id="queryRecommendList" parameterType="com.zhongzheng.modules.course.bo.CourseQueryBo" resultMap="CourseResult">
|