增加上传人和上传时间字段

This commit is contained in:
syruan 2025-06-02 16:25:12 +08:00
parent f159763290
commit 6f2587611c
2 changed files with 8 additions and 0 deletions

View File

@ -55,6 +55,12 @@ public class DevTemplateVo {
@ApiModelProperty(value = "上架数量")
private Integer deviceCount;
@ApiModelProperty(value = "上传人")
private String uploadUser;
@ApiModelProperty(value = "上传时间")
private String uploadTime;
@Excel(name = "唯一标识符")
@ApiModelProperty(value = "设备唯一标识符")
private String identifyCode;

View File

@ -1000,6 +1000,8 @@ public class DevInfoServiceImpl implements DevInfoService {
if (!CollectionUtils.isEmpty(dtoList)) {
devTemplateVo.setTableList(dtoList);
}
devTemplateVo.setUploadUser(SecurityUtils.getLoginUser().getSysUser().getUserName());
devTemplateVo.setUploadTime(DateUtils.dateTime());
templateVos.add(devTemplateVo);
}