Преглед на файлове

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

qtz преди 2 години
родител
ревизия
d4db9785b3

+ 6
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Целия файл

@@ -1866,7 +1866,12 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
1866 1866
         // 同意后状态改为待部门长审核仲裁文书(CHECK_ARBITRATION = 12),拒绝改为待秘书核验仲裁文书(VERPRIF_ARBITRATION = 11)
1867 1867
         int rows = 0;
1868 1868
         ArbitrateRecord arbitrateRecord = caseApplication.getArbitrateRecord();
1869
-        arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord);
1869
+        if(arbitrateRecord.getId()!=null){
1870
+            arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord);
1871
+        }else {
1872
+            arbitrateRecordMapper.insertArbitrateRecord(arbitrateRecord);
1873
+        }
1874
+
1870 1875
         Integer agreeOrNotCheck = caseApplication.getAgreeOrNotCheck();
1871 1876
         if (agreeOrNotCheck.intValue() == 1) {
1872 1877
             caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION);

+ 2
- 0
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/ArbitrateRecordMapper.xml Целия файл

@@ -33,6 +33,7 @@
33 33
 
34 34
         <if test="checkOpinion != null and checkOpinion != ''">check_opinion,</if>
35 35
         <if test="caseCheckReject != null and caseCheckReject != ''">case_check_reject,</if>
36
+        <if test="arbitrateReject != null and arbitrateReject != ''">arbitrate_reject,</if>
36 37
         <if test="createBy != null  and createBy != ''">create_by,</if>
37 38
         case_focus,
38 39
         case_facts,
@@ -49,6 +50,7 @@
49 50
         <if test="arbitrateThink != null and arbitrateThink != ''">#{arbitrateThink},</if>
50 51
         <if test="checkOpinion != null and checkOpinion != ''">#{checkOpinion},</if>
51 52
         <if test="caseCheckReject != null and caseCheckReject != ''">#{caseCheckReject},</if>
53
+        <if test="arbitrateReject != null and arbitrateReject != ''">#{arbitrateReject},</if>
52 54
         <if test="createBy != null  and createBy != ''">#{createBy},</if>
53 55
         #{caseFocus},
54 56
         #{caseFacts},