长sql优化
This commit is contained in:
parent
9a785ae37f
commit
eabc144eb4
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue