长sql优化
This commit is contained in:
@@ -30,7 +30,6 @@
|
||||
c.course_type AS courseType,
|
||||
c.banner_id AS bannerId,
|
||||
COALESCE(d.courseDetailsCount, 0) AS courseDetailsCount
|
||||
|
||||
FROM
|
||||
course AS c
|
||||
LEFT JOIN (
|
||||
@@ -91,10 +90,10 @@
|
||||
order by c.sort asc,c.create_time desc
|
||||
</if>
|
||||
<if test="sort!=null and sort==1">
|
||||
order by goodNum desc
|
||||
order by week_pay desc
|
||||
</if>
|
||||
<if test="sort!=null and sort==2">
|
||||
order by weekGoodNum desc
|
||||
order by week_view desc
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user