Selaa lähdekoodia

实现仲裁员审核裁决书功能

qitz 2 vuotta sitten
vanhempi
commit
df93d06ae2

+ 1
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java Näytä tiedosto

@@ -288,6 +288,7 @@ public class CaseApplicationController extends BaseController {
288 288
 //    @PreAuthorize("@ss.hasPermi('caseApplication:checkArbitrateRecord')")
289 289
     @Log(title = "仲裁员审核裁决书", businessType = BusinessType.UPDATE)
290 290
     @PostMapping("/arbitrator/checkArbitrateRecord")
291
+//    @PostMapping("/arbitratorCheckArbitrateRecord")
291 292
     public AjaxResult arbitratorCheckArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication) {
292 293
 
293 294
         return caseApplicationService.arbitratorCheckArbitrateRecord(caseApplication);

+ 2
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/ArbitrateRecord.java Näytä tiedosto

@@ -25,6 +25,8 @@ public class ArbitrateRecord     extends BaseEntity {
25 25
     private String verificaOpinion;
26 26
     /** 审核裁决书意见 */
27 27
     private String checkOpinion;
28
+    /** 仲裁员审核裁决书意见 */
29
+    private String arbitraCheckOpinion;
28 30
     /** 裁决书附件id */
29 31
     private Integer annexId;
30 32
 

+ 17
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Näytä tiedosto

@@ -2144,10 +2144,25 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
2144 2144
      * @return
2145 2145
      */
2146 2146
     @Override
2147
+    @Transactional
2147 2148
     public AjaxResult arbitratorCheckArbitrateRecord(CaseApplication caseApplication) {
2148 2149
         // 同意后状态改为待部门长审核仲裁文书(CHECK_ARBITRATION = 12),拒绝改为待秘书核验仲裁文书(VERPRIF_ARBITRATION = 11)
2149
-
2150
-        return null;
2150
+        int rows = 0;
2151
+        ArbitrateRecord arbitrateRecord = caseApplication.getArbitrateRecord();
2152
+        arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord);
2153
+        Integer agreeOrNotCheck = caseApplication.getAgreeOrNotCheck();
2154
+        if (agreeOrNotCheck.intValue() == 1) {
2155
+            caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION);
2156
+            // 新增日志
2157
+            insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CHECK_ARBITRATION, "");
2158
+            rows = caseApplicationMapper.submitCaseApplication(caseApplication);
2159
+        } else if (agreeOrNotCheck.intValue() == 2) {//拒绝审核
2160
+            caseApplication.setCaseStatus(CaseApplicationConstants.VERPRIF_ARBITRATION);
2161
+            // 新增日志
2162
+            insertCaseLog(caseApplication.getId(), CaseApplicationConstants.VERPRIF_ARBITRATION, "");
2163
+            rows = caseApplicationMapper.submitCaseApplication(caseApplication);
2164
+        }
2165
+        return success();
2151 2166
     }
2152 2167
 
2153 2168
     @Override

+ 1
- 0
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/ArbitrateRecordMapper.xml Näytä tiedosto

@@ -67,6 +67,7 @@
67 67
             <if test="rulingFollows != null and rulingFollows != ''">ruling_follows = #{rulingFollows},</if>
68 68
             <if test="verificaOpinion != null and verificaOpinion != ''">verifica_opinion = #{verificaOpinion},</if>
69 69
             <if test="checkOpinion != null and checkOpinion != ''">check_opinion = #{checkOpinion},</if>
70
+            <if test="arbitraCheckOpinion != null and arbitraCheckOpinion != ''">arbitra_check_opinion = #{arbitraCheckOpinion},</if>
70 71
             <if test="annexId != null ">annex_id = #{annexId},</if>
71 72
             <if test="updateBy != null  and updateBy != ''">update_by = #{updateBy},</if>
72 73
             <if test="caseFocus != null  and caseFocus != ''">case_focus = #{caseFocus},</if>