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

推送征信详情修改

fengx преди 9 месеца
родител
ревизия
bf1a2a40ee
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      src/main/java/com/inkasso/factoring/creditmanagement/service/impl/SupplierInfoServiceImpl.java

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