Explorar el Código

优化仲裁员确认功能

qitz hace 2 años
padre
commit
c4276aac48

+ 6
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Ver fichero

1866
         // 同意后状态改为待部门长审核仲裁文书(CHECK_ARBITRATION = 12),拒绝改为待秘书核验仲裁文书(VERPRIF_ARBITRATION = 11)
1866
         // 同意后状态改为待部门长审核仲裁文书(CHECK_ARBITRATION = 12),拒绝改为待秘书核验仲裁文书(VERPRIF_ARBITRATION = 11)
1867
         int rows = 0;
1867
         int rows = 0;
1868
         ArbitrateRecord arbitrateRecord = caseApplication.getArbitrateRecord();
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
         Integer agreeOrNotCheck = caseApplication.getAgreeOrNotCheck();
1875
         Integer agreeOrNotCheck = caseApplication.getAgreeOrNotCheck();
1871
         if (agreeOrNotCheck.intValue() == 1) {
1876
         if (agreeOrNotCheck.intValue() == 1) {
1872
             caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION);
1877
             caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION);

+ 2
- 0
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/ArbitrateRecordMapper.xml Ver fichero

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