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