|
@@ -664,8 +664,8 @@ public class PurchContractElectronicInfoServiceImpl extends ServiceImpl<PurchCon
|
|
fileName = new String(fileName.getBytes("UTF-8"), "ISO8859-1");
|
|
fileName = new String(fileName.getBytes("UTF-8"), "ISO8859-1");
|
|
res.setContentType("application/zip");
|
|
res.setContentType("application/zip");
|
|
res.setHeader("Content-disposition", String.format("attachment; filename=" + fileName));
|
|
res.setHeader("Content-disposition", String.format("attachment; filename=" + fileName));
|
|
- PurchContractManagement purchContractManagement = purchContractService.get(managerId);
|
|
|
|
- PurchContractBasicInfo purchContractBasicInfo = purchContractBasicInfoService.findByBusinessNumberAndSupplierId(purchContractManagement.getBusinessNumber(), purchContractManagement.getSupplierId());
|
|
|
|
|
|
+ PurchContractBasicInfo purchContractBasicInfo = purchContractBasicInfoService
|
|
|
|
+ .lambdaQuery().eq(PurchContractBasicInfo::getPurchContractManagementId,managerId).one();
|
|
AttachmentDto attachmentDto = AttachmentDto.builder()
|
|
AttachmentDto attachmentDto = AttachmentDto.builder()
|
|
.setEntityId(purchContractBasicInfo.getId())
|
|
.setEntityId(purchContractBasicInfo.getId())
|
|
.setChildEnum(FileModuleDict.ChildEnum.PURCHASE_CONTRACT_SIGN_FILE_REPORT)
|
|
.setChildEnum(FileModuleDict.ChildEnum.PURCHASE_CONTRACT_SIGN_FILE_REPORT)
|