Explorar el Código

feat(资方管理):拉取签署后的结算单文件

Wangyafan hace 6 meses
padre
commit
28bfd2e49b

+ 1 - 2
src/main/java/com/sunxung/factoring/service/fundmanagement/impl/FinancialInstitutionServiceImpl.java

@@ -768,8 +768,7 @@ public class FinancialInstitutionServiceImpl extends ServiceImpl<FinancialInstit
                 if (CollectionUtil.isNotEmpty(settlementBasicInfoIds)) {
                     for (Long settlementBasicInfoId : settlementBasicInfoIds) {
                         //上游结算单
-                        List<FileStorage> upstreamFileList = sysAttachmentRefService.getFiles(AttachmentDto.builder().setChildEnum(FileModuleDict.ChildEnum.SETTLEMENT_UPSTREAM_SIGNED_FILE)
-                                .setEntityId(settlementBasicInfoId).build());
+                        List<FileStorageDO> upstreamFileList = fileService.findByBusinessId(settlementBasicInfoId, FileModuleDict.ChildEnum.SETTLEMENT_UPSTREAM_SIGNED_FILE.getCode());
                         if (CollectionUtil.isNotEmpty(upstreamFileList)) {
                             upstreamFileList.stream().forEach(u -> {
                                 sysAttachmentRefService.copyFile(u, FileModuleDict.ChildEnum.FINANCIAL_EXPENDITURE_UPSTREAM_SETTLEMENT_FILE,