From e57e32fc43da31917912eebb4e47d4e50df1a9e9 Mon Sep 17 00:00:00 2001
From: shiyj1101 <1098226878@qq.com>
Date: 星期四, 05 八月 2021 22:56:15 +0800
Subject: [PATCH] 完善格式化功能

---
 service-user/src/main/java/com/java110/user/bmo/rentingPool/impl/SaveRentingPoolBMOImpl.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/service-user/src/main/java/com/java110/user/bmo/rentingPool/impl/SaveRentingPoolBMOImpl.java b/service-user/src/main/java/com/java110/user/bmo/rentingPool/impl/SaveRentingPoolBMOImpl.java
old mode 100644
new mode 100755
index d9a32f8..de08bf9
--- a/service-user/src/main/java/com/java110/user/bmo/rentingPool/impl/SaveRentingPoolBMOImpl.java
+++ b/service-user/src/main/java/com/java110/user/bmo/rentingPool/impl/SaveRentingPoolBMOImpl.java
@@ -29,6 +29,7 @@
     @Autowired
     private IFileInnerServiceSMO fileInnerServiceSMOImpl;
 
+    @Autowired
     private IFileRelInnerServiceSMO fileRelInnerServiceSMOImpl;
 
     /**
@@ -50,13 +51,13 @@
         if (rentingPoolDtos != null && rentingPoolDtos.size() > 0) {
             throw new IllegalArgumentException("璇ユ埧灞嬪綋鍓嶄负" + rentingPoolDtos.get(0).getStateName() + ",涓嶈兘鍐嶆鍑虹");
         }
-
+        rentingPoolPo.setRentingId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_rentingId));
         if (photos.size() > 0) {
             savaRentingFile(photos, rentingPoolPo);
         }
 
 
-        rentingPoolPo.setRentingId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_rentingId));
+
         int flag = rentingPoolInnerServiceSMOImpl.saveRentingPool(rentingPoolPo);
 
         if (flag > 0) {

--
Gitblit v1.8.0