首页查询优化

This commit is contained in:
谭凯凯
2024-12-26 21:27:28 +08:00
committed by Tankaikai
parent da64106678
commit e5ead76f4f
2 changed files with 23 additions and 0 deletions

View File

@@ -116,12 +116,14 @@
<if test="sort==null">
order by c.sort asc
</if>
<!--
<if test="sort!=null and sort==1">
order by goodNum desc
</if>
<if test="sort!=null and sort==2">
order by weekGoodNum desc
</if>
-->
</select>
<select id="selectCourseAdmin" resultType="Map">
@@ -244,12 +246,14 @@
<if test="sort==null">
order by c.sort asc,c.create_time desc
</if>
<!--
<if test="sort!=null and sort==1">
order by goodNum desc
</if>
<if test="sort!=null and sort==2">
order by weekGoodNum desc
</if>
-->
</select>
<select id="selectCourseTitle" resultType="Map">