Sfoglia il codice sorgente

实现批量部门长审核裁决书

qitz 2 anni fa
parent
commit
ff2a7dd781

+ 38
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java Vedi File

@@ -302,6 +302,15 @@ public class CaseApplicationController extends BaseController {
302 302
         return toAjax(caseApplicationService.pendTralCheckBatch(caseApplication));
303 303
     }
304 304
 
305
+    /**
306
+     * 批量组庭确认
307
+     */
308
+    @Log(title = "批量组庭确认", businessType = BusinessType.UPDATE)
309
+    @PostMapping("/pendTralSureBatch")
310
+    public AjaxResult pendTralSureBatch(@Validated @RequestBody CaseApplication caseApplication) {
311
+        return toAjax(caseApplicationService.pendTralSureBatch(caseApplication));
312
+    }
313
+
305 314
     /**
306 315
      * 修改开庭时间
307 316
      */
@@ -342,6 +351,35 @@ public class CaseApplicationController extends BaseController {
342 351
         return caseApplicationService.arbitratorCheckArbitrateRecord(caseApplication);
343 352
     }
344 353
 
354
+    /**
355
+     * 批量操作仲裁员审核裁决书
356
+     */
357
+    @Log(title = "批量操作仲裁员审核裁决书", businessType = BusinessType.UPDATE)
358
+    @PostMapping("/arbitrator/checkArbitrateRecordBatch")
359
+    public AjaxResult arbitratorCheckArbitrateRecordBatch(@Validated @RequestBody CaseApplication caseApplication) {
360
+
361
+        return caseApplicationService.arbitratorCheckArbitrateRecordBatch(caseApplication);
362
+    }
363
+
364
+    /**
365
+     * 批量部门长审核裁决书
366
+     */
367
+    @Log(title = "批量部门长审核裁决书", businessType = BusinessType.UPDATE)
368
+    @PostMapping("/checkArbitrateRecordBatch")
369
+    public AjaxResult checkArbitrateRecordBatch(@Validated @RequestBody CaseApplication caseApplication) {
370
+
371
+        return caseApplicationService.checkArbitrateRecordBatch(caseApplication);
372
+    }
373
+
374
+    /**
375
+     * 批量核验裁决书
376
+     */
377
+    @Log(title = "批量核验裁决书", businessType = BusinessType.UPDATE)
378
+    @PostMapping("/verificationArbitrateRecordBatch")
379
+    public AjaxResult verificationArbitrateRecordBatch(@Validated @RequestBody CaseApplication caseApplication) {
380
+        return toAjax(caseApplicationService.verificationArbitrateRecordBatch(caseApplication));
381
+    }
382
+
345 383
 
346 384
     /**
347 385
      * 是否指派仲裁员

+ 8
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseApplicationService.java Vedi File

@@ -143,4 +143,12 @@ public interface ICaseApplicationService {
143 143
     int submitCaseApplicationCheckBatch(String batchNumber, Integer agreeOrNotCheck, String caseCheckReject);
144 144
 
145 145
     int pendTralCheckBatch(CaseApplication caseApplication);
146
+
147
+    int pendTralSureBatch(CaseApplication caseApplication);
148
+
149
+    int verificationArbitrateRecordBatch(CaseApplication caseApplication);
150
+
151
+    AjaxResult arbitratorCheckArbitrateRecordBatch(CaseApplication caseApplication);
152
+
153
+    AjaxResult checkArbitrateRecordBatch(CaseApplication caseApplication);
146 154
 }

+ 340
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Vedi File

@@ -2733,6 +2733,8 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
2733 2733
                     }
2734 2734
                 }
2735 2735
             }
2736
+        }else{
2737
+            throw new ServiceException("这个批号没有批量审查的案件");
2736 2738
         }
2737 2739
         return rows;
2738 2740
     }
@@ -2753,6 +2755,8 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
2753 2755
             throw new ServiceException("案件编号"+caseNumsstr+"在案件质证节点,请先进行案件质证,然后再批量组庭审核");
2754 2756
         }
2755 2757
 
2758
+
2759
+
2756 2760
         CaseApplication caseApplication1 = new CaseApplication();
2757 2761
         caseApplication1.setBatchNumber(caseApplication.getBatchNumber());
2758 2762
         caseApplication1.setCaseStatus(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL_SUBMMIT);
@@ -2793,10 +2797,346 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
2793 2797
                 insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL, "");
2794 2798
 
2795 2799
             }
2800
+        }else{
2801
+            throw new ServiceException("这个批号没有批量组庭审核的案件");
2802
+        }
2803
+        return rows;
2804
+    }
2805
+
2806
+    @Override
2807
+    @Transactional
2808
+    public int pendTralSureBatch(CaseApplication caseApplication) {
2809
+        Integer isAgreePendTral = caseApplication.getIsAgreePendTral();
2810
+        int rows = 0;
2811
+        CaseApplication caseApplication1 = new CaseApplication();
2812
+        caseApplication1.setBatchNumber(caseApplication.getBatchNumber());
2813
+        caseApplication1.setCaseStatus(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
2814
+        List<CaseApplication> caseApplications = caseApplicationMapper.listCaseApplicationByBatchNumber(caseApplication1);
2815
+        if (caseApplications != null && caseApplications.size() > 0) {
2816
+            for(CaseApplication caseApplicationse:caseApplications){
2817
+                caseApplicationse.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION_METHOD);
2818
+                caseApplicationse.setIsAgreePendTral(isAgreePendTral);
2819
+                if (isAgreePendTral != null && isAgreePendTral == 1) {
2820
+                    rows += caseApplicationMapper.submitCaseApplication(caseApplicationse);
2821
+                } else {
2822
+                    List<Arbitrator> arbitrators = caseApplication.getArbitrators();
2823
+                    // 仲裁员信息
2824
+                    if (arbitrators != null && arbitrators.size() > 0) {
2825
+                        List<Long> ids = arbitrators.stream().map(Arbitrator::getId).collect(Collectors.toList());
2826
+                        List<String> arbitratorNames = arbitrators.stream().map(Arbitrator::getArbitratorName).collect(Collectors.toList());
2827
+                        String idstr = ids.stream().map(Object::toString).collect(Collectors.joining(","));
2828
+                        String arbitratorNamestr = arbitratorNames.stream().map(Object::toString).collect(Collectors.joining(","));
2829
+                        caseApplicationse.setArbitratorId(idstr);
2830
+                        caseApplicationse.setArbitratorName(arbitratorNamestr);
2831
+                        rows += caseApplicationMapper.submitCaseApplication(caseApplicationse);
2832
+                    }
2833
+                }
2834
+
2835
+                SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
2836
+                request.setTemplateId("2033619");
2837
+                sendHearDateMessage(caseApplicationse, request, "2033619");
2838
+                // 新增日志
2839
+                insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CHECK_ARBITRATION_METHOD, "");
2840
+
2841
+            }
2842
+        }else{
2843
+            throw new ServiceException("这个批号没有批量组庭审核的案件");
2796 2844
         }
2797 2845
         return rows;
2798 2846
     }
2799 2847
 
2848
+    @Override
2849
+    @Transactional
2850
+    public int verificationArbitrateRecordBatch(CaseApplication caseApplication) {
2851
+        CaseApplication caseApplication1 = new CaseApplication();
2852
+        caseApplication1.setBatchNumber(caseApplication.getBatchNumber());
2853
+        caseApplication1.setCaseStatus(CaseApplicationConstants.VERPRIF_ARBITRATION);
2854
+        List<CaseApplication> caseApplications = caseApplicationMapper.listCaseApplicationByBatchNumber(caseApplication1);
2855
+        int rows = 0;
2856
+        if (caseApplications != null && caseApplications.size() > 0) {
2857
+            for(CaseApplication caseApplicationse:caseApplications){
2858
+                // 秘书核验裁决书,流转到待仲裁员审核仲裁文书
2859
+                caseApplicationse.setCaseStatus(CaseApplicationConstants.HEAD_CHECK_ARBITRATION);
2860
+                rows += caseApplicationMapper.submitCaseApplication(caseApplicationse);
2861
+//                ArbitrateRecord arbitrateRecord = caseApplication.getArbitrateRecord();
2862
+//                arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord);
2863
+                // 新增日志
2864
+                insertCaseLog(caseApplicationse.getId(), CaseApplicationConstants.HEAD_CHECK_ARBITRATION, "");
2865
+            }
2866
+        }else{
2867
+            throw new ServiceException("这个批号没有批量核验裁决书的案件");
2868
+        }
2869
+
2870
+        return rows;
2871
+    }
2872
+
2873
+    @Override
2874
+    @Transactional
2875
+    public AjaxResult arbitratorCheckArbitrateRecordBatch(CaseApplication caseApplication) {
2876
+        int rows = 0;
2877
+        Integer agreeOrNotCheck = caseApplication.getAgreeOrNotCheck();
2878
+
2879
+        CaseApplication caseApplicationsel = new CaseApplication();
2880
+        caseApplicationsel.setBatchNumber(caseApplication.getBatchNumber());
2881
+        caseApplicationsel.setCaseStatus(CaseApplicationConstants.HEAD_CHECK_ARBITRATION);
2882
+        List<CaseApplication> caseApplications1 = caseApplicationMapper.listCaseApplicationByBatchNumber(caseApplicationsel);
2883
+        if (caseApplications1 != null && caseApplications1.size() > 0) {
2884
+            for(CaseApplication caseApplicationse:caseApplications1){
2885
+                if (agreeOrNotCheck.intValue() == 1) {
2886
+                    caseApplicationse.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION);
2887
+
2888
+                    rows += caseApplicationMapper.submitCaseApplication(caseApplicationse);
2889
+                    // 新增日志
2890
+                    insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CHECK_ARBITRATION, "");
2891
+                } else if (agreeOrNotCheck.intValue() == 2) {//拒绝审核
2892
+                    ArbitrateRecord arbitrateRecord = caseApplication.getArbitrateRecord();
2893
+                    ArbitrateRecord arbitrateRecordnew = caseApplicationse.getArbitrateRecord();
2894
+                    if(arbitrateRecordnew!=null){
2895
+                        arbitrateRecordnew.setCheckOpinion(arbitrateRecord.getCheckOpinion());
2896
+                        arbitrateRecordnew.setArbitrateReject(arbitrateRecord.getArbitrateReject());
2897
+                        arbitrateRecordnew.setCaseAppliId(caseApplicationse.getId());
2898
+                        arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecordnew);
2899
+                    }else {
2900
+                        ArbitrateRecord arbitrateRecordnew1 = new ArbitrateRecord();
2901
+                        arbitrateRecordnew1.setCheckOpinion(arbitrateRecord.getCheckOpinion());
2902
+                        arbitrateRecordnew1.setArbitrateReject(arbitrateRecord.getArbitrateReject());
2903
+                        arbitrateRecordnew1.setCaseAppliId(caseApplicationse.getId());
2904
+                        arbitrateRecordMapper.insertArbitrateRecord(arbitrateRecordnew1);
2905
+                    }
2906
+                    caseApplicationse.setCaseStatus(CaseApplicationConstants.VERPRIF_ARBITRATION);
2907
+
2908
+                    rows += caseApplicationMapper.submitCaseApplication(caseApplicationse);
2909
+                    String notes="";
2910
+                    if(caseApplication.getArbitrateRecord()!=null&&StrUtil.isNotEmpty(caseApplication.getArbitrateRecord().getArbitrateReject())){
2911
+                        notes="仲裁员驳回仲裁文书,驳回原因:"+caseApplication.getArbitrateRecord().getArbitrateReject();
2912
+                    }
2913
+                    // 新增日志
2914
+                    insertCaseLog(caseApplication.getId(), CaseApplicationConstants.VERPRIF_ARBITRATION, notes);
2915
+                }
2916
+            }
2917
+
2918
+        }else{
2919
+            throw new ServiceException("这个批号没有批量仲裁员审核裁决书的案件");
2920
+        }
2921
+
2922
+        return success(rows);
2923
+    }
2924
+
2925
+    @Override
2926
+    @Transactional
2927
+    public AjaxResult checkArbitrateRecordBatch(CaseApplication caseApplication) {
2928
+        Integer agreeOrNotCheck = caseApplication.getAgreeOrNotCheck();
2929
+        int rows = 0;
2930
+        CaseApplication caseApplicationsel = new CaseApplication();
2931
+        caseApplicationsel.setBatchNumber(caseApplication.getBatchNumber());
2932
+        caseApplicationsel.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION);
2933
+        List<CaseApplication> caseApplications1 = caseApplicationMapper.listCaseApplicationByBatchNumber(caseApplicationsel);
2934
+        if (caseApplications1 != null && caseApplications1.size() > 0) {
2935
+            for(CaseApplication caseApplicationse:caseApplications1){
2936
+                if (agreeOrNotCheck.intValue() == 1) {
2937
+                    try {
2938
+                        //获取当前案件的裁决书
2939
+                        CaseApplication caseApplication2 = caseApplicationService.selectCaseApplication(caseApplicationse);
2940
+                        List<CaseAttach> caseAttachList = caseApplication2.getCaseAttachList();
2941
+                        if (caseAttachList != null && caseAttachList.size() > 0) {
2942
+                            for (CaseAttach caseAttach : caseAttachList) {
2943
+                                if (caseAttach.getAnnexType() == 3) {
2944
+                                    String annexPath = caseAttach.getAnnexPath();
2945
+                                    String path = "/home/ruoyi" + annexPath;
2946
+                                    // System.out.println("这是查询到的裁决书路径" + path);
2947
+                                    // String path = "D:\\home\\新裁决书模板.docx";
2948
+                                    //获取文件上传地址
2949
+                                    EsignHttpResponse response = SaaSAPIFileUtils.getUploadUrl(path);
2950
+                                    String body = response.getBody();
2951
+                                    if (body != null) {
2952
+                                        JSONObject jsonObject = JSONObject.parseObject(body);
2953
+                                        String fileId = jsonObject.getJSONObject("data").getString("fileId");
2954
+                                        String fileUploadUrl = jsonObject.getJSONObject("data").getString("fileUploadUrl");
2955
+                                        //上传文件流
2956
+                                        EsignHttpResponse response1 = SaaSAPIFileUtils.uploadFile(fileUploadUrl, path);
2957
+                                        JSONObject jsonObject1 = JSONObject.parseObject(response1.getBody());
2958
+                                        if (jsonObject1.getIntValue("errCode") == 0) {
2959
+                                            //查看文件上传状态
2960
+                                            Thread.sleep(3000);
2961
+                                            EsignHttpResponse response2 = SaaSAPIFileUtils.getFileStatus(fileId);
2962
+                                            JSONObject jsonObject2 = JSONObject.parseObject(response2.getBody());
2963
+                                            JSONObject data = jsonObject2.getJSONObject("data");
2964
+                                            int fileStatus = data.getIntValue("fileStatus");
2965
+                                            if (fileStatus == 2 || fileStatus == 5) {
2966
+                                                String fileName = data.getString("fileName");
2967
+                                                //上传成功,获取文件签名印章位置
2968
+                                                SealSignRecord sealSignRecord = new SealSignRecord();
2969
+                                                sealSignRecord.setFileid(fileId);
2970
+                                                EsignHttpResponse positions = SignAward.getPositions(sealSignRecord);
2971
+                                                Gson gson = new Gson();
2972
+                                                JsonObject positionsJsonObject = gson.fromJson(positions.getBody(), JsonObject.class);
2973
+                                                JsonObject positionsData = positionsJsonObject.getAsJsonObject("data");
2974
+                                                String keywordPositions = positionsData.get("keywordPositions").toString();
2975
+                                                //发起签署
2976
+                                                sealSignRecord.setFilename(fileName);
2977
+                                                String arbitratorId = caseApplication2.getArbitratorId();
2978
+                                                if (arbitratorId != null) {
2979
+                                                    SysUser sysUser = sysUserMapper.selectUserById(Long.valueOf(arbitratorId));
2980
+                                                    if (sysUser == null) {
2981
+                                                        return AjaxResult.error();
2982
+                                                    }
2983
+                                                    sealSignRecord.setPensonAccount(sysUser.getPhonenumber());
2984
+                                                    sealSignRecord.setPensonName(sysUser.getNickName());
2985
+                                                }
2986
+
2987
+                                                DeptIdentify deptIdentify = new DeptIdentify();
2988
+                                                deptIdentify.setIsUse(1);
2989
+                                                DeptIdentify deptIdentifyselect = new DeptIdentify();
2990
+                                                List<DeptIdentify> deptIdentifysnew = deptIdentifyMapper.selectDeptIdentify(deptIdentify);
2991
+                                                if (deptIdentifysnew != null && deptIdentifysnew.size() > 0) {
2992
+                                                    deptIdentifyselect = deptIdentifysnew.get(0);
2993
+                                                    sealSignRecord.setOrgnizeName(deptIdentifyselect.getIdentifyName());
2994
+                                                    sealSignRecord.setOrgnizeNamePsnAccount(deptIdentifyselect.getOperPhone());
2995
+                                                    sealSignRecord.setOrgnizeNamepsnName(deptIdentifyselect.getOperName());
2996
+                                                } else {
2997
+                                                    return AjaxResult.error("没有用印时的机构名称及经办人信息");
2998
+                                                }
2999
+
3000
+                                                //解析文件签名印章位置
3001
+                                                JSONArray jsonArray = JSONArray.parseArray(keywordPositions);
3002
+                                                for (int i = 0; i < jsonArray.size(); i++) {
3003
+                                                    JSONObject jsonObject3 = jsonArray.getJSONObject(i);
3004
+                                                    String keyword = jsonObject3.getString("keyword");
3005
+                                                    if (keyword.equals("仲裁员:")) {
3006
+                                                        //签名
3007
+                                                        JSONArray positionsArray = jsonObject3.getJSONArray("positions");
3008
+                                                        // 遍历 positionsArray 中的每个元素
3009
+                                                        for (int j = 0; j < positionsArray.size(); j++) {
3010
+                                                            JSONObject positionObj = positionsArray.getJSONObject(j);
3011
+                                                            int pageNum = positionObj.getIntValue("pageNum");
3012
+                                                            sealSignRecord.setPositionPagepsn(String.valueOf(pageNum));
3013
+                                                            JSONArray coordinatesArray = positionObj.getJSONArray("coordinates");
3014
+                                                            JSONObject coordinateObj = coordinatesArray.getJSONObject(0);
3015
+                                                            double positionX = coordinateObj.getDoubleValue("positionX");
3016
+                                                            double positionY = coordinateObj.getDoubleValue("positionY");
3017
+                                                            sealSignRecord.setPositionXpsn(positionX + 90);
3018
+                                                            sealSignRecord.setPositionYpsn(positionY);
3019
+                                                        }
3020
+                                                    } else {
3021
+                                                        //用印
3022
+                                                        JSONArray positionsArray = jsonObject3.getJSONArray("positions");
3023
+                                                        // 遍历 positionsArray 中的每个元素
3024
+                                                        for (int j = 0; j < positionsArray.size(); j++) {
3025
+                                                            JSONObject positionObj = positionsArray.getJSONObject(j);
3026
+                                                            int pageNum = positionObj.getIntValue("pageNum");
3027
+                                                            sealSignRecord.setPositionPageorg(String.valueOf(pageNum));
3028
+                                                            JSONArray coordinatesArray = positionObj.getJSONArray("coordinates");
3029
+                                                            JSONObject coordinateObj = coordinatesArray.getJSONObject(0);
3030
+                                                            double positionX = coordinateObj.getDoubleValue("positionX");
3031
+                                                            double positionY = coordinateObj.getDoubleValue("positionY");
3032
+                                                            sealSignRecord.setPositionXorg(positionX + 90);
3033
+                                                            sealSignRecord.setPositionYorg(positionY);
3034
+                                                        }
3035
+                                                    }
3036
+                                                }
3037
+                                        /*DeptIdentify deptIdentify1 = new DeptIdentify();
3038
+                                        deptIdentify1.setSealStatus(1); // 印章状态为启用
3039
+                                        //根据机构名称查询部门id
3040
+                                        SysDept sysDept = new SysDept();
3041
+                                        sysDept.setDeptName(sealSignRecord.getOrgnizeName());
3042
+                                        List<SysDept> sysDepts = deptMapper.selectDeptList(sysDept);
3043
+                                        if (sysDepts != null && sysDepts.size() > 0) {
3044
+                                            Long deptId = sysDepts.get(0).getDeptId();
3045
+                                            deptIdentify1.setDeptId(deptId);
3046
+                                        }
3047
+                                        List<DeptIdentify> deptIdentifies = deptIdentifyMapper.selectDeptIdentifylistother(deptIdentify1);
3048
+                                        List<String> sealIds = new ArrayList<>();
3049
+                                        if (deptIdentifies != null && deptIdentifies.size() > 0) {
3050
+                                            for (DeptIdentify identify : deptIdentifies) {
3051
+                                                String sealId = identify.getSealId();
3052
+                                                sealIds.add(sealId);
3053
+                                            }
3054
+                                        }*/
3055
+                                                String orgnizeName = sealSignRecord.getOrgnizeName(); //机构名称
3056
+                                                String orgnizeNamepsnName = sealSignRecord.getOrgnizeNamepsnName(); //机构经办人姓名
3057
+                                                String orgnizeNamePsnAccount = sealSignRecord.getOrgnizeNamePsnAccount(); //机构经办人联系方式
3058
+                                                //查询机构信息
3059
+                                                DeptIdentify deptIdentify1 = new DeptIdentify();
3060
+                                                deptIdentify1.setIdentifyName(orgnizeName);
3061
+                                                deptIdentify1.setOperName(orgnizeNamepsnName);
3062
+                                                deptIdentify1.setOperPhone(orgnizeNamePsnAccount);
3063
+                                                List<DeptIdentify> deptIdentifies = deptIdentifyMapper.selectDeptIdentify(deptIdentify1);
3064
+                                                if (deptIdentifies != null && deptIdentifies.size() > 0) {
3065
+                                                    Long id = deptIdentifies.get(0).getId();
3066
+                                                    SealManage sealManage = new SealManage();
3067
+                                                    sealManage.setIdentifyId(id);
3068
+                                                    List<String> sealIdList = new ArrayList<>();
3069
+                                                    List<SealManage> selectSealList = sealManageMapper.selectSealList(sealManage);
3070
+                                                    if (selectSealList != null && selectSealList.size() > 0) {
3071
+                                                        for (SealManage manage : selectSealList) {
3072
+                                                            Integer sealStatus = manage.getSealStatus();
3073
+                                                            Integer isUse = manage.getIsUse();
3074
+                                                            if (sealStatus == 1 && isUse ==1) {
3075
+                                                                sealIdList.add(manage.getSealId());
3076
+                                                            }
3077
+                                                        }
3078
+                                                        EsignHttpResponse response3 = SignAward.createByFile(sealSignRecord, sealIdList);
3079
+
3080
+                                                        JSONObject jsonObject3 = JSONObject.parseObject(response3.getBody());
3081
+                                                        if (jsonObject3 != null) {
3082
+                                                            if (jsonObject3.getIntValue("code") == 0) {
3083
+                                                                //获取签署流程ID
3084
+                                                                JSONObject data1 = jsonObject3.getJSONObject("data");
3085
+                                                                String signFlowId = data1.getString("signFlowId");
3086
+                                                                //保存案件id,文件id,文件名称.流程id到签署用印记录表里
3087
+                                                                sealSignRecord.setCaseAppliId(caseApplicationse.getId());
3088
+                                                                sealSignRecord.setSignFlowid(signFlowId);
3089
+                                                                sealSignRecord.setSignFlowStatus(1);//待签名
3090
+                                                                sealSignRecordMapper.insertSealSignRecord(sealSignRecord);
3091
+                                                            } else {
3092
+                                                                throw new ServiceException(jsonObject3.getString("message"));
3093
+                                                            }
3094
+                                                        } else {
3095
+                                                            return AjaxResult.error();
3096
+                                                        }
3097
+
3098
+                                                    }
3099
+
3100
+
3101
+                                                } else {
3102
+                                                    return AjaxResult.error();
3103
+                                                }
3104
+                                            }
3105
+                                        }
3106
+                                    }
3107
+                                    break;
3108
+                                }
3109
+                            }
3110
+                        }
3111
+                    } catch (EsignDemoException e) {
3112
+                        e.printStackTrace();
3113
+                    } catch (InterruptedException e) {
3114
+                        e.printStackTrace();
3115
+                    }
3116
+                    caseApplicationse.setCaseStatus(CaseApplicationConstants.SIGN_ARBITRATION);
3117
+                    // 新增日志
3118
+                    insertCaseLog(caseApplicationse.getId(), CaseApplicationConstants.SIGN_ARBITRATION, "");
3119
+                    rows += caseApplicationMapper.submitCaseApplication(caseApplicationse);
3120
+                } else if (agreeOrNotCheck.intValue() == 2) {
3121
+                    caseApplicationse.setCaseStatus(CaseApplicationConstants.HEAD_CHECK_ARBITRATION);
3122
+                    String notes="";
3123
+                    if(caseApplication.getArbitrateRecord()!=null&&StrUtil.isNotEmpty(caseApplication.getArbitrateRecord().getDeptorReject())){
3124
+                        notes="部门长驳回仲裁文书,驳回原因:"+caseApplication.getArbitrateRecord().getDeptorReject();
3125
+                    }
3126
+                    // 新增日志
3127
+                    insertCaseLog(caseApplicationse.getId(), CaseApplicationConstants.HEAD_CHECK_ARBITRATION, notes);
3128
+
3129
+                    rows = caseApplicationMapper.submitCaseApplication(caseApplicationse);
3130
+
3131
+                }
3132
+
3133
+            }
3134
+
3135
+        }
3136
+        return success(rows);
3137
+
3138
+    }
3139
+
2800 3140
     private String getColumnstr(String columnname) {
2801 3141
         String columnstr  = "";
2802 3142
         switch (columnname) {

+ 4
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CasePaymentServiceImpl.java Vedi File

@@ -320,6 +320,8 @@ public class CasePaymentServiceImpl implements ICasePaymentService {
320 320
 
321 321
             }
322 322
 
323
+        }else{
324
+            throw new ServiceException("这个批号没有批量缴费的案件");
323 325
         }
324 326
 
325 327
         return AjaxResult.success("确认缴费成功");
@@ -440,6 +442,8 @@ public class CasePaymentServiceImpl implements ICasePaymentService {
440 442
                 }
441 443
 
442 444
             }
445
+        }else{
446
+            throw new ServiceException("这个批号没有批量缴费确认的案件");
443 447
         }
444 448
         return AjaxResult.success();
445 449
     }