|
@@ -69,9 +69,6 @@ public class PurchContractElectronicInfoServiceImpl extends ServiceImpl<PurchCon
|
|
@Autowired
|
|
@Autowired
|
|
private PurchContractElectronicInfoService purchContractElectronicInfoService;
|
|
private PurchContractElectronicInfoService purchContractElectronicInfoService;
|
|
|
|
|
|
- @Autowired
|
|
|
|
- private BusinessBasicInfoService businessBasicInfoService;
|
|
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private PlatformService platformService;
|
|
private PlatformService platformService;
|
|
|
|
|
|
@@ -147,6 +144,9 @@ public class PurchContractElectronicInfoServiceImpl extends ServiceImpl<PurchCon
|
|
@Autowired
|
|
@Autowired
|
|
private IEnterpriseService enterpriseService;
|
|
private IEnterpriseService enterpriseService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private IPurchContractSupplementInfoService purchContractSupplementInfoService;
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public List<PurchContractElectronicInfo> findByPurchContApprId(Long id) {
|
|
public List<PurchContractElectronicInfo> findByPurchContApprId(Long id) {
|
|
return baseMapper.findByPurchContBasicId(id);
|
|
return baseMapper.findByPurchContBasicId(id);
|
|
@@ -659,18 +659,19 @@ public class PurchContractElectronicInfoServiceImpl extends ServiceImpl<PurchCon
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public ResponseEntity<Object> downloadReportUrl(Long managerId, HttpServletResponse res) throws IOException {
|
|
|
|
|
|
+ public ResponseEntity<Object> downloadReportUrl(Long managementId, HttpServletResponse res) throws IOException {
|
|
String fileName = "出证文件.zip";
|
|
String fileName = "出证文件.zip";
|
|
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));
|
|
PurchContractBasicInfo purchContractBasicInfo = purchContractBasicInfoService
|
|
PurchContractBasicInfo purchContractBasicInfo = purchContractBasicInfoService
|
|
- .lambdaQuery().eq(PurchContractBasicInfo::getPurchContractManagementId,managerId).one();
|
|
|
|
|
|
+ .lambdaQuery().eq(PurchContractBasicInfo::getPurchContractManagementId,managementId).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)
|
|
.build();
|
|
.build();
|
|
- List<PurchContractSupplementInfo> supplementInfos = purchContractService.findByManagerId(managerId);
|
|
|
|
|
|
+ List<PurchContractSupplementInfo> supplementInfos = purchContractSupplementInfoService
|
|
|
|
+ .lambdaQuery().eq(PurchContractSupplementInfo::getPurchContractManagementId,managementId).list();
|
|
List<AttachmentDto> attachmentDtoChanges = new ArrayList<>();
|
|
List<AttachmentDto> attachmentDtoChanges = new ArrayList<>();
|
|
for (PurchContractSupplementInfo supplementInfo : supplementInfos) {
|
|
for (PurchContractSupplementInfo supplementInfo : supplementInfos) {
|
|
AttachmentDto attachmentDtoChange = AttachmentDto.builder()
|
|
AttachmentDto attachmentDtoChange = AttachmentDto.builder()
|