소스 검색

垫款 状态时间

zhaoxian 2 년 전
부모
커밋
cb9aa93092

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

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

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

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