Browse Source

首页精品视频课排序修改

liujunchi 2 years ago
parent
commit
90cb5ea3d1

+ 1 - 1
cooleshow-user/user-biz/src/main/resources/config/mybatis/CourseScheduleMapper.xml

@@ -629,7 +629,7 @@
         <if test="subjectId != null">
         	and g.lesson_subject_ = #{subjectId}
         </if>
-        ORDER BY buyCount DESC LIMIT 10
+        ORDER BY g.top_flag_ desc, g.sort_number_ desc, buyCount DESC LIMIT 10
     </select>
     <select id="selectRecentCourses" resultType="com.yonge.cooleshow.biz.dal.vo.StudentHomePage$RecentCourses">
         SELECT