【8.0.3】【system】更新用户详情附件信息的渲染

pull/60/head
fengshuonan 2023-11-13 17:54:14 +08:00
parent 4b6c5fb69e
commit 670afcacfd
2 changed files with 9 additions and 1 deletions

View File

@ -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;
}

View File

@ -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<>();