mirror of https://gitee.com/stylefeng/roses
【8.0.3】【system】更新用户详情附件信息的渲染
parent
4b6c5fb69e
commit
670afcacfd
|
@ -1,6 +1,7 @@
|
|||
package cn.stylefeng.roses.kernel.sys.modular.user.pojo.response;
|
||||
|
||||
import cn.stylefeng.roses.kernel.dict.api.format.DictFormatProcess;
|
||||
import cn.stylefeng.roses.kernel.file.api.format.FileInfoFormatProcess;
|
||||
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
|
||||
import cn.stylefeng.roses.kernel.rule.annotation.SimpleFieldFormat;
|
||||
import lombok.Data;
|
||||
|
@ -47,4 +48,11 @@ public class SysUserCertificateResponse {
|
|||
@ChineseDescription("证书到期日期,如果为空,则为长期")
|
||||
private Date dateExpires;
|
||||
|
||||
/**
|
||||
* 附件id
|
||||
*/
|
||||
@ChineseDescription("附件id")
|
||||
@SimpleFieldFormat(processClass = FileInfoFormatProcess.class)
|
||||
private Long attachmentId;
|
||||
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ public class SysUserCertificateServiceImpl extends ServiceImpl<SysUserCertificat
|
|||
queryWrapper.eq(SysUserCertificate::getUserId, userId);
|
||||
|
||||
queryWrapper.select(SysUserCertificate::getCertificateType, SysUserCertificate::getCertificateNo, SysUserCertificate::getDateIssued,
|
||||
SysUserCertificate::getDateExpires, SysUserCertificate::getIssuingAuthority);
|
||||
SysUserCertificate::getDateExpires, SysUserCertificate::getIssuingAuthority, SysUserCertificate::getAttachmentId);
|
||||
List<SysUserCertificate> sysUserCertificateList = this.list(queryWrapper);
|
||||
if (ObjectUtil.isEmpty(sysUserCertificateList)) {
|
||||
return new ArrayList<>();
|
||||
|
|
Loading…
Reference in New Issue