我的证书列表排序
This commit is contained in:
@@ -91,6 +91,7 @@ public class UserCertificateController {
|
|||||||
if (StringUtils.isNotBlank(params.get("certificateNo").toString())){
|
if (StringUtils.isNotBlank(params.get("certificateNo").toString())){
|
||||||
wrapper.like(UserCertificate::getCertificateNo,params.get("certificateNo"));
|
wrapper.like(UserCertificate::getCertificateNo,params.get("certificateNo"));
|
||||||
}
|
}
|
||||||
|
wrapper.orderByDesc(UserCertificate::getCreateTime);
|
||||||
Page<UserCertificate> page = userCertificateService.page(new Page<>(
|
Page<UserCertificate> page = userCertificateService.page(new Page<>(
|
||||||
Long.parseLong(params.get("current").toString()), Long.parseLong(params.get("limit").toString())),wrapper);
|
Long.parseLong(params.get("current").toString()), Long.parseLong(params.get("limit").toString())),wrapper);
|
||||||
return R.ok().put("certificate",page);
|
return R.ok().put("certificate",page);
|
||||||
|
|||||||
Reference in New Issue
Block a user