Browse Source

新增 全局审核意见,每步操作都有记录

Administrator 11 tháng trước cách đây
mục cha
commit
d018418e49

+ 49 - 0
ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/LoanApplicationServiceImpl.java

@@ -405,6 +405,7 @@ public class LoanApplicationServiceImpl implements ILoanApplicationService {
             loanApplicationFjMapper.batchLoanApplicationFj(fjUrl);
         }
         //业务审核意见
+        reviewComments.setCreateBy(SecurityUtils.getUsername());
         reviewCommentsMapper.insertReviewComments(reviewComments);
         //待办信息集合
         List<WaitRemind> waitRemindList = new ArrayList<>();
@@ -660,6 +661,16 @@ public class LoanApplicationServiceImpl implements ILoanApplicationService {
         loanApplicationMapper.updateLoanApplication(loanApplication);
         //删除基础附件外的所有附件
         loanApplicationFjMapper.deleteLoanApplicationFjByLoanApplicationIdAndBigType(loanApplication.getLoanApplicationId());
+
+        //业务审核意见
+        ReviewComments  reviewComments = new ReviewComments();
+        reviewComments.setLoanApplicationId(loanApplication.getLoanApplicationId());
+        reviewComments.setLoanApplicationNumber(loanApplication.getLoanApplicationNumber());
+        reviewComments.setAuditSchedule(TWO);
+        reviewComments.setAuditType(FOR);
+        reviewComments.setAuditTime(DateUtils.getNowDate());
+        reviewComments.setCreateBy(SecurityUtils.getUsername());
+        reviewCommentsMapper.insertReviewComments(reviewComments);
         return AjaxResult.success();
     }
 
@@ -716,6 +727,19 @@ public class LoanApplicationServiceImpl implements ILoanApplicationService {
             }
         }
         waitRemindMapper.batchWaitRemind(waitRemindList);
+
+        //业务审核意见
+        ReviewComments  reviewComments = new ReviewComments();
+        reviewComments.setLoanApplicationId(loanApplication.getLoanApplicationId());
+        reviewComments.setLoanApplicationNumber(loanApplication.getLoanApplicationNumber());
+        //把7:合同签约 8:放款合规风险审核 9:放款通知 变成业务审核意见表中对应编号需要+1
+        int i = Integer.parseInt(loanApplication.getLoanSchedule()) + 1;
+        reviewComments.setAuditSchedule(String.valueOf(i));
+        reviewComments.setAuditType(TWO);
+        reviewComments.setAuditTime(DateUtils.getNowDate());
+        reviewComments.setCreateBy(SecurityUtils.getUsername());
+        //业务审核意见
+        reviewCommentsMapper.insertReviewComments(reviewComments);
         return AjaxResult.success();
     }
 
@@ -825,6 +849,20 @@ public class LoanApplicationServiceImpl implements ILoanApplicationService {
             }
         }
         waitRemindMapper.batchWaitRemind(waitRemindList);
+
+        //业务审核意见插入撤销
+        ReviewComments  reviewComments = new ReviewComments();
+        reviewComments.setLoanApplicationId(loanApplication.getLoanApplicationId());
+        reviewComments.setLoanApplicationNumber(loanApplication.getLoanApplicationNumber());
+        int auditScheduleNew = Integer.parseInt(loanApplication.getAuditSchedule());
+        if (Integer.parseInt(loanApplication.getLoanSchedule())> 6){
+            auditScheduleNew = auditScheduleNew + 1;
+        }
+        reviewComments.setAuditSchedule(String.valueOf(auditScheduleNew));
+        reviewComments.setAuditType(FIV);
+        reviewComments.setAuditTime(DateUtils.getNowDate());
+        reviewComments.setCreateBy(SecurityUtils.getUsername());
+        reviewCommentsMapper.insertReviewComments(reviewComments);
         return AjaxResult.success();
     }
 
@@ -952,6 +990,17 @@ public class LoanApplicationServiceImpl implements ILoanApplicationService {
             }
         }
         waitRemindMapper.batchWaitRemind(waitRemindList);
+
+        //业务审核意见
+        ReviewComments  reviewComments = new ReviewComments();
+        reviewComments.setLoanApplicationId(loanApplication.getLoanApplicationId());
+        reviewComments.setLoanApplicationNumber(loanApplication.getLoanApplicationNumber());
+        //归档
+        reviewComments.setAuditSchedule("11");
+        reviewComments.setAuditType(TWO);
+        reviewComments.setAuditTime(DateUtils.getNowDate());
+        reviewComments.setCreateBy(SecurityUtils.getUsername());
+        reviewCommentsMapper.insertReviewComments(reviewComments);
         return AjaxResult.success();
     }
 

+ 1 - 1
ruoyi-system/src/main/java/com/ruoyi/system/domain/review/ReviewComments.java

@@ -36,7 +36,7 @@ public class ReviewComments extends BaseEntity
     @Excel(name = "审核进度1:业务审核/分配 2:A角色审核 3:B角色审核 4:风险审核 5:尽职调查 6:上会评审")
     private String auditSchedule;
 
-    /** 审核状态 1:待审核 2:已通过 3:未通过  4:申诉*/
+    /** 审核状态 1:待审核 2:已通过 3:未通过  4:申诉 5:撤销*/
     @Excel(name = "审核状态 1:待审核 2:已通过 3:未通过 4:申诉")
     private String auditType;