Ver código fonte

付款审核预览问题处理

liuj 1 mês atrás
pai
commit
0f4387e1c7

+ 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/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);
                             });
                         }