添加字段

This commit is contained in:
hzj
2024-11-26 10:01:18 +08:00
parent 35f1b21474
commit b3015c2dcb
2 changed files with 2 additions and 1 deletions

View File

@@ -19,4 +19,5 @@ public class PqIcdPathDTO {
private String fileName; private String fileName;
//icd文件存储的地址 //icd文件存储的地址
private String filePath; private String filePath;
private String devType;
} }

View File

@@ -57,7 +57,7 @@ public class PqIcdPathController extends BaseController {
pqIcdPathDTO.setUpdateTime(LocalDateTimeUtil.format(temp.getUpdateTime(), DatePattern.NORM_DATETIME_PATTERN)); pqIcdPathDTO.setUpdateTime(LocalDateTimeUtil.format(temp.getUpdateTime(), DatePattern.NORM_DATETIME_PATTERN));
pqIcdPathDTO.setFileName(temp.getPath().substring(temp.getPath().lastIndexOf('/') + 1)); pqIcdPathDTO.setFileName(temp.getPath().substring(temp.getPath().lastIndexOf('/') + 1));
pqIcdPathDTO.setFilePath(temp.getPath()); pqIcdPathDTO.setFilePath(temp.getPath());
pqIcdPathDTO.setDevType(temp.getName());
return pqIcdPathDTO; return pqIcdPathDTO;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe); return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);