长sql优化

This commit is contained in:
张松 2025-01-02 17:03:24 +08:00
parent 9a785ae37f
commit eabc144eb4
2 changed files with 3 additions and 4 deletions

View File

@ -151,7 +151,7 @@ public class AppController {
aliService.authCertNo(certName, certNum);
}catch (Exception e) {
ApiAccessLimitUtil.removeKey(String.valueOf(userId), "updateAuthCertInfo");
errMsg = "实名修改失败: " + e.getMessage();
errMsg = "实名修改失败: 身份证信息不匹配";
}
userInfo.setCertName(certName);
userInfo.setCertNo(certNum);

View File

@ -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>