Browse Source

1.特审只有在稽核未通过的时候进行插入历史表

liuhy 2 years ago
parent
commit
aac872ebd3

+ 8 - 1
tnc-sms/src/main/java/org/jeecg/modules/smscheck/controller/SpecialExaminationContrller.java

@@ -176,6 +176,7 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
         BeanUtil.copyProperties(specialExaminationVo, specialExamination);
         String infoId = specialExamination.getInfoId();
         SmsCheckCustomerInfo customerInfo = infoService.getById(infoId);
+        Integer checkState = customerInfo.getCheckState();
         if (null == customerInfo) {
             return Result.error("客户信息不存在");
         }
@@ -225,6 +226,9 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
                             " 工单创建人:" + customerInfo.getCreateBy() +
                             " 提交了复开号码为" + customerInfo.getSmsNumber() +
                             "的复开申请,请及时进行稽核。");
+        }
+        if (checkState == CheckStateCode.CHECK_STSTE_4){
+
         }
         return Result.OK("已成功提交申请");
     }
@@ -551,7 +555,6 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
             SmcSpecialCheckLogHistory smcSpecialCheckLogHistory = new SmcSpecialCheckLogHistory();
             BeanUtil.copyProperties(smcSpecialCheckLog, smcSpecialCheckLogHistory);
             smcSpecialCheckLogHistory.setId(null);
-            smcSpecialCheckLogHistoryService.save(smcSpecialCheckLogHistory);
             if (lotList.size() == 0) {
                 smcSpecialCheckLogService.save(smcSpecialCheckLog);
             } else {
@@ -562,6 +565,10 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
             SmcSpecialCheckLogStateVo smcSpecialCheckLogStateVo = new SmcSpecialCheckLogStateVo();
             BeanUtil.copyProperties(smcSpecialCheckLog, smcSpecialCheckLogStateVo);
             Boolean stateBoolean = smcSpecialCheckLogService.reflectCheck(smcSpecialCheckLogStateVo);
+            // 稽核不通过进行插入
+            if (!stateBoolean){
+                smcSpecialCheckLogHistoryService.save(smcSpecialCheckLogHistory);
+            }
             int lotStatus = stateBoolean ? 5 : 4;
             //修改客户信息稽核结果
             info.setCheckState(lotStatus);