Commit fbcc355c authored by 33's avatar 33

用户展示的顺序为倒序

parent cc610555
......@@ -309,28 +309,4 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
return userMapper.list(telephone, nickname, authType, startDate, endDate);
}
public static void main(String[] args) {
try {
// 实例化一个认证对象,入参需要传入腾讯云账户secretId,secretKey,此处还需注意密钥对的保密
// 密钥可前往https://console.cloud.tencent.com/cam/capi网站进行获取
Credential cred = new Credential("SecretId", "SecretKey");
// 实例化一个http选项,可选的,没有特殊需求可以跳过
HttpProfile httpProfile = new HttpProfile();
httpProfile.setEndpoint("faceid.tencentcloudapi.com");
// 实例化一个client选项,可选的,没有特殊需求可以跳过
ClientProfile clientProfile = new ClientProfile();
clientProfile.setHttpProfile(httpProfile);
// 实例化要请求产品的client对象,clientProfile是可选的
FaceidClient client = new FaceidClient(cred, "", clientProfile);
// 实例化一个请求对象,每个接口都会对应一个request对象
IdCardOCRVerificationRequest req = new IdCardOCRVerificationRequest();
// 返回的resp是一个IdCardOCRVerificationResponse的实例,与请求对象对应
IdCardOCRVerificationResponse resp = client.IdCardOCRVerification(req);
// 输出json格式的字符串回包
System.out.println(IdCardOCRVerificationResponse.toJsonString(resp));
} catch (TencentCloudSDKException e) {
System.out.println(e);
}
}
}
......@@ -12,7 +12,6 @@
(select count(0) from tb_nft n where u.wallet = n.publish_address and n.nft_hash != '') as publishCount
FROM tb_user u
<where>
1=1
<if test="telephone != null and telephone != ''">
and u.telephone = #{telephone}
</if>
......@@ -29,5 +28,6 @@
and u.create_date &lt;= #{endDate}
</if>
</where>
order by u.id desc
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment