Selaa lähdekoodia

修改申请记录垫款池子记录问题

zhaoxian 2 vuotta sitten
vanhempi
commit
69e9e69a42

+ 3 - 3
jeecg-boot-module-system/src/main/java/cn/com/ctop/finance/payment/service/impl/FinancePaymentApplicationServiceImpl.java

@@ -73,12 +73,12 @@ public class FinancePaymentApplicationServiceImpl extends ServiceImpl<FinancePay
         }
         //获取审核人
         getRevieweder(application);
-        //添加申请记录 0 创建
-        insertRecord(application.getId(), application.getApplicanterId(), "0", null, application.getFiles(), new Date());
-        Thread.sleep(100);
+       Thread.sleep(100);
         //添加申请
         this.save(application);
         //消息通知内容
+        //添加申请记录 0 创建
+        insertRecord(application.getId(), application.getApplicanterId(), "0", null, application.getFiles(), new Date());
         String message = messageTemplate.getFinancePaymentApplicationMessage(application);
         //审核人为 财务审核角色
         if ("financialReview".equals(application.getReviewederId())) {

+ 1 - 3
jeecg-boot-module-system/src/main/java/cn/com/ctop/finance/payment/service/impl/FinancePaymentRechargeApplicationServiceImpl.java

@@ -115,12 +115,10 @@ public class FinancePaymentRechargeApplicationServiceImpl extends ServiceImpl<Fi
             //判断审核人和状态
             getReviewedRole(recharge);
             recharge.setPoolId(pool.getId());
+            this.save(recharge);
             //添加申请记录
             insertRecord(recharge.getId(), recharge.getApplicanterId(), "0", null, recharge.getFiles(), new Date());
-
             Thread.sleep(100);
-
-            this.save(recharge);
             //添加充值账户信息
             List<FinancePaymentRechargeAccount> accountList = new ArrayList<>();
             String accountIds = "";