Browse Source

信创审核列表 预览文件优化

tags/24080901
PoffyZhang 4 months ago
parent
commit
74951a610f
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/PurchaseManage.java

+ 3
- 1
hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/PurchaseManage.java View File

@@ -740,9 +740,11 @@ public class PurchaseManage {
}

public Long updateSystem(XcfhxApplyEditDTO dto) {
Xinchuang old = xinchuangService.getById(dto.getId());
VUtils.isTrue(Objects.isNull(old)).throwMessage("数据不存在");
Xinchuang xinchuang = BeanUtil.copyProperties(dto, Xinchuang.class);
if (Boolean.TRUE.equals(dto.getMatchXcfhx()) && StrUtils.isNotBlank(dto.getMhXcfhxReportFile()) &&
!dto.getMhXcfhxReportFile().equals(xinchuang.getMhXcfhxReportFile())) {
!dto.getMhXcfhxReportFile().equals(old.getMhXcfhxReportFile())) {
String fileName = xinchuang.getBidName() + "-信创符合性测评报告.";
xinchuang.setXcfhxReportFiles(mhXchxFileHelper.getXchxFile(dto.getMhXcfhxReportFile(), fileName));
}


Loading…
Cancel
Save