Selaa lähdekoodia

Merge remote-tracking branch 'origin/smb' into smb

liutao 1 kuukausi sitten
vanhempi
commit
654a48ad19

+ 10 - 0
src/main/java/com/sunxung/factoring/entity/sys/FileStorage.java

@@ -37,6 +37,8 @@ public class FileStorage extends BaseEntity {
     private String absolutePath;
     private long size;
 
+    private String type;
+
     public FileStorage() {
     }
 
@@ -215,6 +217,14 @@ public class FileStorage extends BaseEntity {
         this.size = size;
     }
 
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
+
     /**
      * 文件附属对象
      */

+ 1 - 1
src/main/java/com/sunxung/factoring/service/financing/contract/impl/ContractSignConfirmServiceImpl.java

@@ -163,7 +163,7 @@ public class ContractSignConfirmServiceImpl extends ServiceImpl<ContractSignConf
             //修改融资申请当前阶段
             financingBasicInfo.setCurrentStage(FinancingCurrentStageEnum.CONTRACT_MAKING.getCode());
             financingBasicInfoService.updateById(financingBasicInfo);
-        } else if (ConstantConversionUtil.APPROVAL_RESULT_VETO.equals(contractInfo.getConclusion())) {
+        } else if (ConstantConversionUtil.APPROVAL_RESULT_VETO.equals(contractSignConfirm.getConclusion())) {
             //修改融资申请当前阶段和状态
             financingBasicInfo.setFinancingStatus(ProjectInitiationStatusDict.ChildEnum.TERMINATED.getCode());
             financingBasicInfo.setCurrentStage("");

+ 1 - 1
src/main/java/com/sunxung/factoring/service/financing/payment/impl/PaymentApplyServiceImpl.java

@@ -570,7 +570,7 @@ public class PaymentApplyServiceImpl extends ServiceImpl<PaymentApplyMapper, Pay
                                 fileStorage.setPath(fileStorageDO.getPath());
                                 fileStorage.setId(fileStorageDO.getId());
                                 fileStorage.setOriginalName(fileStorageDO.getOriginalName());
-                                fileStorage.setFileType(fileStorageDO.getType());
+                                fileStorage.setType(fileStorageDO.getType());
                                 acceptanceFiles.add(fileStorage);
                             });
                         }

+ 2 - 1
src/main/java/com/sunxung/factoring/service/financing/payment/impl/PaymentApprovalServiceImpl.java

@@ -217,6 +217,7 @@ public class PaymentApprovalServiceImpl extends ServiceImpl<PaymentApprovalMappe
                     fileStorage.setPath(fileStorageDO.getPath());
                     fileStorage.setId(fileStorageDO.getId());
                     fileStorage.setOriginalName(fileStorageDO.getOriginalName());
+                    fileStorage.setType(fileStorageDO.getType());
                     salesContractFileList.add(fileStorage);
                 });
             }
@@ -278,7 +279,7 @@ public class PaymentApprovalServiceImpl extends ServiceImpl<PaymentApprovalMappe
                                 fileStorage.setPath(fileStorageDO.getPath());
                                 fileStorage.setId(fileStorageDO.getId());
                                 fileStorage.setOriginalName(fileStorageDO.getOriginalName());
-                                fileStorage.setFileType(fileStorageDO.getType());
+                                fileStorage.setType(fileStorageDO.getType());
                                 acceptanceFiles.add(fileStorage);
                             });
                         }

+ 1 - 1
src/main/resources/application-dev.yml

@@ -239,6 +239,6 @@ smb:
   product-code: 200016
   sys-code: V2CV62Lw
   platform-code: EOLBIMS
-  cert-file-path: E:/project/smb_ssl/
+  cert-file-path: /Users/l.jia/smb_ssl/
   sftp-path: D:/freeFTPd/sftproot/smb_test/trade
   file-url: https://fsoftssit.smb956101.com:2443/fsoftssit1/

+ 1 - 1
src/main/resources/application.yml

@@ -1,4 +1,4 @@
 #环境配置
 spring:
   profiles:
-    active: prod
+    active: dev