长sql优化
This commit is contained in:
@@ -151,7 +151,7 @@ public class AppController {
|
|||||||
aliService.authCertNo(certName, certNum);
|
aliService.authCertNo(certName, certNum);
|
||||||
}catch (Exception e) {
|
}catch (Exception e) {
|
||||||
ApiAccessLimitUtil.removeKey(String.valueOf(userId), "updateAuthCertInfo");
|
ApiAccessLimitUtil.removeKey(String.valueOf(userId), "updateAuthCertInfo");
|
||||||
errMsg = "实名修改失败: " + e.getMessage();
|
errMsg = "实名修改失败: 身份证信息不匹配";
|
||||||
}
|
}
|
||||||
userInfo.setCertName(certName);
|
userInfo.setCertName(certName);
|
||||||
userInfo.setCertNo(certNum);
|
userInfo.setCertNo(certNum);
|
||||||
|
|||||||
@@ -30,7 +30,6 @@
|
|||||||
c.course_type AS courseType,
|
c.course_type AS courseType,
|
||||||
c.banner_id AS bannerId,
|
c.banner_id AS bannerId,
|
||||||
COALESCE(d.courseDetailsCount, 0) AS courseDetailsCount
|
COALESCE(d.courseDetailsCount, 0) AS courseDetailsCount
|
||||||
|
|
||||||
FROM
|
FROM
|
||||||
course AS c
|
course AS c
|
||||||
LEFT JOIN (
|
LEFT JOIN (
|
||||||
@@ -91,10 +90,10 @@
|
|||||||
order by c.sort asc,c.create_time desc
|
order by c.sort asc,c.create_time desc
|
||||||
</if>
|
</if>
|
||||||
<if test="sort!=null and sort==1">
|
<if test="sort!=null and sort==1">
|
||||||
order by goodNum desc
|
order by week_pay desc
|
||||||
</if>
|
</if>
|
||||||
<if test="sort!=null and sort==2">
|
<if test="sort!=null and sort==2">
|
||||||
order by weekGoodNum desc
|
order by week_view desc
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user