Browse Source

feat(采购合同):下载

Wangyafan 7 months ago
parent
commit
9f1b8ead4e

+ 1 - 1
src/main/java/com/sunxung/factoring/service/purchcontractmanagement/impl/PurchContractElectronicInfoServiceImpl.java

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

+ 1 - 1
src/main/java/com/sunxung/factoring/service/purchcontractmanagement/impl/PurchContractServiceImpl.java

@@ -600,7 +600,7 @@ public class PurchContractServiceImpl extends ServiceImpl<PurchContractMapper, P
                 .setEntityId(basicInfo.getId()).setChildEnum(FileModuleDict.ChildEnum.PURCHASE_CONTRACT_SIGN_FILE).build()));
 
         List<PurchContractSupplementInfo> contractSupplementInfos = purchContractSupplementInfoService
-                .list(new QueryWrapper<PurchContractSupplementInfo>().eq("purch_contract_management_id", id));
+                .list(new QueryWrapper<PurchContractSupplementInfo>().eq("c_purch_contract_management_id", id));
 
         if (CollectionUtil.isNotEmpty(contractSupplementInfos)) {
             contractSupplementInfos.stream().forEach(contractSupplementInfo -> {