浏览代码

Merge branch 'qtz5' of SH-Arbitrate/Arbitrate-Backend into dev

qtz 2 年前
父节点
当前提交
6c9a09f29a

+ 6
- 7
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java 查看文件

@@ -1873,13 +1873,6 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
1873 1873
     public AjaxResult arbitratorCheckArbitrateRecord(CaseApplication caseApplication) {
1874 1874
         // 同意后状态改为待部门长审核仲裁文书(CHECK_ARBITRATION = 12),拒绝改为待秘书核验仲裁文书(VERPRIF_ARBITRATION = 11)
1875 1875
         int rows = 0;
1876
-        ArbitrateRecord arbitrateRecord = caseApplication.getArbitrateRecord();
1877
-        if(arbitrateRecord.getId()!=null){
1878
-            arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord);
1879
-        }else {
1880
-            arbitrateRecordMapper.insertArbitrateRecord(arbitrateRecord);
1881
-        }
1882
-
1883 1876
         Integer agreeOrNotCheck = caseApplication.getAgreeOrNotCheck();
1884 1877
         if (agreeOrNotCheck.intValue() == 1) {
1885 1878
             caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION);
@@ -1888,6 +1881,12 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
1888 1881
             // 新增日志
1889 1882
             insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CHECK_ARBITRATION, "");
1890 1883
         } else if (agreeOrNotCheck.intValue() == 2) {//拒绝审核
1884
+            ArbitrateRecord arbitrateRecord = caseApplication.getArbitrateRecord();
1885
+            if(arbitrateRecord.getId()!=null){
1886
+                arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord);
1887
+            }else {
1888
+                arbitrateRecordMapper.insertArbitrateRecord(arbitrateRecord);
1889
+            }
1891 1890
             caseApplication.setCaseStatus(CaseApplicationConstants.VERPRIF_ARBITRATION);
1892 1891
 
1893 1892
             rows = caseApplicationMapper.submitCaseApplication(caseApplication);