Explorar o código

fix:发票附件

CAYK\miaosen.zhao hai 8 meses
pai
achega
92658d51b9

+ 2 - 1
src/main/java/com/sunxung/factoring/service/invoicemanage/impl/InvoiceBasicInfoServiceImpl.java

@@ -259,9 +259,10 @@ public class InvoiceBasicInfoServiceImpl extends ServiceImpl<InvoiceBasicInfoMap
             sysAttachmentRefService.saveFileAndRefHis(accepyanceFile, attachmentDtoPendindInvoic);
             FileStorageDO fileStorageDO = new FileStorageDO();
             fileStorageDO.setAbsolutePath(fileStorage.getAbsolutePath());
-            fileStorageDO.setFilePath(fileStorage.getPath());
+            fileStorageDO.setPath(fileStorage.getPath());
             fileStorageDO.setOriginalName(fileStorage.getOriginalName());
             fileStorageDO.setSize(fileStorage.getSize());
+            fileStorageDO.setType(fileStorage.getFileType());
             fileStorageDO.setBusinessType(FileModuleDict.ChildEnum.INVOICE_SALES_FILE.getCode());
             fileStorageDO.setBusinessId(invoiceBasicInfo.getId());
             fileService.save(fileStorageDO);

+ 2 - 1
src/main/java/com/sunxung/factoring/service/settlement/impl/SettlementManagementServiceImpl.java

@@ -1462,9 +1462,10 @@ public class SettlementManagementServiceImpl implements SettlementManagementServ
                 sysAttachmentRefService.saveFileAndRefHis(accepyanceFile, attachmentDtoAcceptanceFile);
                 FileStorageDO fileStorageDO = new FileStorageDO();
                 fileStorageDO.setAbsolutePath(fileStorage.getAbsolutePath());
-                fileStorageDO.setFilePath(fileStorage.getPath());
+                fileStorageDO.setPath(fileStorage.getPath());
                 fileStorageDO.setOriginalName(fileStorage.getOriginalName());
                 fileStorageDO.setSize(fileStorage.getSize());
+                fileStorageDO.setType(fileStorage.getFileType());
                 fileStorageDO.setBusinessType(FileModuleDict.ChildEnum.SETTLEMENT_UPSTREAM_UNSIGNED_FILE.getCode());
                 fileStorageDO.setBusinessId(settlementBasicInfo.getId());
                 fileService.save(fileStorageDO);