Parcourir la source

推送征信详情修改

fengx il y a 8 mois
Parent
commit
bf1a2a40ee

+ 4 - 4
src/main/java/com/inkasso/factoring/creditmanagement/service/impl/SupplierInfoServiceImpl.java

@@ -608,8 +608,8 @@ public class SupplierInfoServiceImpl extends ServiceImpl<SupplierInfoMapper, Sup
                 fileStorage.setFileType(byId.getType());
                 fileStorage.setPath(byId.getPath());
                 fileStorage.setAbsolutePath(byId.getAbsolutePath());
-                fileStorage.setOriginalName(byId.getOriginalName());
-                fileStorage.setName(byId.getOriginalName());
+                fileStorage.setOriginalName(byId.getOriginalName()+byId.getType());
+                fileStorage.setName(byId.getOriginalName()+byId.getType());
                 fileStorageService.save(fileStorage);
                 creditDetail.setAuthAddress(fileStorage.getId().toString());
                 creditDetailService.save(creditDetail);
@@ -645,8 +645,8 @@ public class SupplierInfoServiceImpl extends ServiceImpl<SupplierInfoMapper, Sup
                     fileStorage.setFileType(byId.getType());
                     fileStorage.setPath(byId.getPath());
                     fileStorage.setAbsolutePath(byId.getAbsolutePath());
-                    fileStorage.setOriginalName(byId.getOriginalName());
-                    fileStorage.setName(byId.getOriginalName());
+                    fileStorage.setOriginalName(byId.getOriginalName()+byId.getType());
+                    fileStorage.setName(byId.getOriginalName()+byId.getType());
                     fileStorageService.save(fileStorage);
                     creditDetail.setAuthAddress(fileStorage.getId().toString());
                     creditDetailService.save(creditDetail);