Преглед на файлове

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

Wangyafan преди 6 месеца
родител
ревизия
28bfd2e49b
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      src/main/java/com/sunxung/factoring/service/fundmanagement/impl/FinancialInstitutionServiceImpl.java

+ 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,