Просмотр исходного кода

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

hejinbo 2 лет назад
Родитель
Сommit
d31d363c44

+ 51
- 49
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/AdjudicationServiceImpl.java Просмотреть файл

74
             CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
74
             CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
75
             //生成编码
75
             //生成编码
76
             String equipmentNo = getNewEquipmentNo();
76
             String equipmentNo = getNewEquipmentNo();
77
-            datas.put("num",equipmentNo);
77
+            datas.put("num", equipmentNo);
78
             //获取仲裁记录表里的相关信息
78
             //获取仲裁记录表里的相关信息
79
             ArbitrateRecord arbitrateRecord = new ArbitrateRecord();
79
             ArbitrateRecord arbitrateRecord = new ArbitrateRecord();
80
             arbitrateRecord.setCaseAppliId(id);
80
             arbitrateRecord.setCaseAppliId(id);
102
                         datas.put("resAddress", affiliate.getResidenAffili());
102
                         datas.put("resAddress", affiliate.getResidenAffili());
103
                         datas.put("resSex", affiliate.getResponSex());
103
                         datas.put("resSex", affiliate.getResponSex());
104
                         Date responBirth = affiliate.getResponBirth();
104
                         Date responBirth = affiliate.getResponBirth();
105
-                        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
106
-                        String responBirthStr = sdf.format(responBirth);
107
-                        datas.put("resDateOfBirth",responBirthStr);
105
+                        if (responBirth != null) {
106
+                            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
107
+                            String responBirthStr = sdf.format(responBirth);
108
+                            datas.put("resDateOfBirth", responBirthStr);
109
+
110
+                        }
111
+
108
                         datas.put("resContactAddress", affiliate.getContactAddress());
112
                         datas.put("resContactAddress", affiliate.getContactAddress());
109
                         nameAgentList.add(affiliate.getNameAgent());
113
                         nameAgentList.add(affiliate.getNameAgent());
110
                     }
114
                     }
117
             datas.put("submissionDate", createTimeStr);
121
             datas.put("submissionDate", createTimeStr);
118
             Date registerDate = caseApplication1.getRegisterDate();
122
             Date registerDate = caseApplication1.getRegisterDate();
119
             String registerDateStr = sdf.format(registerDate);
123
             String registerDateStr = sdf.format(registerDate);
120
-            datas.put("acceptDate",registerDateStr);
124
+            datas.put("acceptDate", registerDateStr);
121
             //反请求
125
             //反请求
122
             Integer adjudicaCounter = caseApplication1.getAdjudicaCounter();
126
             Integer adjudicaCounter = caseApplication1.getAdjudicaCounter();
123
             String counterclaim = "在《2022年版仲裁规则》第十八条第(一)项规定的期限内,被申请人向秘书处提交了" +
127
             String counterclaim = "在《2022年版仲裁规则》第十八条第(一)项规定的期限内,被申请人向秘书处提交了" +
124
                     "《仲裁反请求申请书》及证据材料。仲裁委依据《2022年版仲裁规则》第十八条的规定受理了该仲裁反请求案申请。" +
128
                     "《仲裁反请求申请书》及证据材料。仲裁委依据《2022年版仲裁规则》第十八条的规定受理了该仲裁反请求案申请。" +
125
                     "仲裁反请求案件受理后,秘书处向被申请人发送了仲裁反请求通知书及附件,向申请人发送了仲裁反请求通知书及附件、仲裁反请求申请书及附件。";
129
                     "仲裁反请求案件受理后,秘书处向被申请人发送了仲裁反请求通知书及附件,向申请人发送了仲裁反请求通知书及附件、仲裁反请求申请书及附件。";
126
-            if (adjudicaCounter == null){
130
+            if (adjudicaCounter == null) {
127
                 datas.put("counterclaim", null);
131
                 datas.put("counterclaim", null);
128
-            }else if (adjudicaCounter == 1){
132
+            } else if (adjudicaCounter == 1) {
129
                 datas.put("counterclaim", counterclaim);
133
                 datas.put("counterclaim", counterclaim);
130
             } else {
134
             } else {
131
                 datas.put("counterclaim", null);
135
                 datas.put("counterclaim", null);
133
             //财产保全
137
             //财产保全
134
             Integer properPreser = caseApplication1.getProperPreser();
138
             Integer properPreser = caseApplication1.getProperPreser();
135
             String preservation = "本案受理后,申请人向仲裁委提交了财产保全申请,仲裁委根据《中华人民共和国仲裁法》" +
139
             String preservation = "本案受理后,申请人向仲裁委提交了财产保全申请,仲裁委根据《中华人民共和国仲裁法》" +
136
-                    "第二十八条之规定,将该申请提交至XXX市XXX区法院。";
140
+                    "第二十八条之规定,将该申请提交至法院。";
137
             if (properPreser == null) {
141
             if (properPreser == null) {
138
                 datas.put("preservation", null);
142
                 datas.put("preservation", null);
139
-            } else if(properPreser == 1) {
143
+            } else if (properPreser == 1) {
140
                 datas.put("preservation", preservation);
144
                 datas.put("preservation", preservation);
141
             } else {
145
             } else {
142
                 datas.put("preservation", null);
146
                 datas.put("preservation", null);
145
             Integer objectiJuris = caseApplication1.getObjectiJuris();
149
             Integer objectiJuris = caseApplication1.getObjectiJuris();
146
             String jurisdictionalObjection = "本案受理后,被申请人向仲裁委提交了《XX管辖异议申请书》,认为XXXXXX" +
150
             String jurisdictionalObjection = "本案受理后,被申请人向仲裁委提交了《XX管辖异议申请书》,认为XXXXXX" +
147
                     ",仲裁委经审理,当庭驳回了被申请人的管辖异议申请,并告知被申请人具体的事实和理由将在裁决书中一并列明。";
151
                     ",仲裁委经审理,当庭驳回了被申请人的管辖异议申请,并告知被申请人具体的事实和理由将在裁决书中一并列明。";
148
-            if (objectiJuris == null){
152
+            if (objectiJuris == null) {
149
                 datas.put("jurisdictionalObjection", null);
153
                 datas.put("jurisdictionalObjection", null);
150
-            }
151
-            else if (objectiJuris == 1) {
154
+            } else if (objectiJuris == 1) {
152
                 datas.put("jurisdictionalObjection", jurisdictionalObjection);
155
                 datas.put("jurisdictionalObjection", jurisdictionalObjection);
153
             } else {
156
             } else {
154
                 datas.put("jurisdictionalObjection", null);
157
                 datas.put("jurisdictionalObjection", null);
157
             datas.put("arbitratorName", arbitratorName);
160
             datas.put("arbitratorName", arbitratorName);
158
             Integer arbitratMethod = caseApplication1.getArbitratMethod();
161
             Integer arbitratMethod = caseApplication1.getArbitratMethod();
159
             Date hearDate = caseApplication1.getHearDate();
162
             Date hearDate = caseApplication1.getHearDate();
160
-            String hearDateStr = sdf.format(hearDate);
161
-            //线上开庭时
162
-            if (arbitratMethod == 1) {
163
-                String onLine1 = "仲裁庭审阅了申请人提交的仲裁申请书、证据材料后,于";
164
-                String onLine2 = "通过仲裁委智慧仲裁平台开庭审理了本案。";
165
-                datas.put("onLine1", onLine1);
166
-                datas.put("hearDate", hearDateStr);
167
-                datas.put("onLine2", onLine2);
168
-            } else {
169
-                //书面仲裁时
170
-                String written1 = "仲裁庭审阅了申请人提交的仲裁申请书、证据材料后,于";
171
-                String written2 = "在仲裁委所在地开庭审理了本案。";
172
-                datas.put("written1", written1);
173
-                datas.put("hearDate1", hearDateStr);
174
-                datas.put("written2", written2);
163
+            if (hearDate!=null){
164
+                String hearDateStr = sdf.format(hearDate);
165
+                //线上开庭时
166
+                if (arbitratMethod == 1) {
167
+                    String onLine1 = "仲裁庭审阅了申请人提交的仲裁申请书、证据材料后,于";
168
+                    String onLine2 = "通过仲裁委智慧仲裁平台开庭审理了本案。";
169
+                    datas.put("onLine1", onLine1);
170
+                    datas.put("hearDate", hearDateStr);
171
+                    datas.put("onLine2", onLine2);
172
+                } else {
173
+                    //书面仲裁时
174
+                    String written1 = "仲裁庭审阅了申请人提交的仲裁申请书、证据材料后,于";
175
+                    String written2 = "在仲裁委所在地开庭审理了本案。";
176
+                    datas.put("written1", written1);
177
+                    datas.put("hearDate1", hearDateStr);
178
+                    datas.put("written2", written2);
179
+                }
175
             }
180
             }
176
             Integer isAbsence = caseApplication1.getIsAbsence();
181
             Integer isAbsence = caseApplication1.getIsAbsence();
177
-            if (isAbsence==null){
182
+            if (isAbsence == null) {
178
                 datas.put("absent1", null);
183
                 datas.put("absent1", null);
179
                 datas.put("absent2", null);
184
                 datas.put("absent2", null);
180
                 datas.put("absent3", null);
185
                 datas.put("absent3", null);
190
                 datas.put("appAgentName1", null);
195
                 datas.put("appAgentName1", null);
191
                 datas.put("appAgentName2", null);
196
                 datas.put("appAgentName2", null);
192
                 datas.put("resAgentName", null);
197
                 datas.put("resAgentName", null);
193
-            }
194
-           else if (isAbsence == 1) {
198
+            } else if (isAbsence == 1) {
195
                 //缺席审理
199
                 //缺席审理
196
                 String absent1 = "申请人的特别授权委托代理人";
200
                 String absent1 = "申请人的特别授权委托代理人";
197
                 String absent2 = "出席了庭审。被申请人经依法送达开庭通知,无正当理由未出席庭审,故仲裁庭依据" +
201
                 String absent2 = "出席了庭审。被申请人经依法送达开庭通知,无正当理由未出席庭审,故仲裁庭依据" +
298
             }
302
             }
299
             return AjaxResult.success("裁决书已生成");
303
             return AjaxResult.success("裁决书已生成");
300
         } catch (IOException e) {
304
         } catch (IOException e) {
301
-            return AjaxResult.error(e+"请检查文件路径是否有误");
305
+            return AjaxResult.error(e + "请检查文件路径是否有误");
302
         }
306
         }
303
     }
307
     }
304
 
308
 
444
     }
448
     }
445
 
449
 
446
     @Override
450
     @Override
447
-    public AjaxResult caseFile( List<Long> ids) {
451
+    public AjaxResult caseFile(List<Long> ids) {
448
         try {
452
         try {
449
-            for (Long id :ids) {
453
+            for (Long id : ids) {
450
                 CaseApplication caseApplication = new CaseApplication();
454
                 CaseApplication caseApplication = new CaseApplication();
451
                 caseApplication.setId(id);
455
                 caseApplication.setId(id);
452
                 //更改案件状态(暂时)
456
                 //更改案件状态(暂时)
604
             CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
608
             CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
605
             //生成编码
609
             //生成编码
606
             String equipmentNo = getNewEquipmentNo();
610
             String equipmentNo = getNewEquipmentNo();
607
-            datas.put("num",equipmentNo);
611
+            datas.put("num", equipmentNo);
608
             //获取仲裁记录相关信息
612
             //获取仲裁记录相关信息
609
             ArbitrateRecord arbitrateRecord1 = caseApplication.getArbitrateRecord();
613
             ArbitrateRecord arbitrateRecord1 = caseApplication.getArbitrateRecord();
610
 
614
 
631
                         datas.put("resAddress", affiliate.getResidenAffili());
635
                         datas.put("resAddress", affiliate.getResidenAffili());
632
                         datas.put("resSex", affiliate.getResponSex());
636
                         datas.put("resSex", affiliate.getResponSex());
633
                         Date responBirth = affiliate.getResponBirth();
637
                         Date responBirth = affiliate.getResponBirth();
634
-                        if(responBirth!=null){
638
+                        if (responBirth != null) {
635
                             SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
639
                             SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
636
                             String responBirthStr = sdf.format(responBirth);
640
                             String responBirthStr = sdf.format(responBirth);
637
-                            datas.put("resDateOfBirth",responBirthStr);
641
+                            datas.put("resDateOfBirth", responBirthStr);
638
                         }
642
                         }
639
                         datas.put("resContactAddress", affiliate.getContactAddress());
643
                         datas.put("resContactAddress", affiliate.getContactAddress());
640
                         nameAgentList.add(affiliate.getNameAgent());
644
                         nameAgentList.add(affiliate.getNameAgent());
648
             datas.put("submissionDate", createTimeStr);
652
             datas.put("submissionDate", createTimeStr);
649
             Date registerDate = caseApplication1.getRegisterDate();
653
             Date registerDate = caseApplication1.getRegisterDate();
650
             String registerDateStr = sdf.format(registerDate);
654
             String registerDateStr = sdf.format(registerDate);
651
-            datas.put("acceptDate",registerDateStr);
655
+            datas.put("acceptDate", registerDateStr);
652
             //反请求
656
             //反请求
653
             Integer adjudicaCounter = caseApplication1.getAdjudicaCounter();
657
             Integer adjudicaCounter = caseApplication1.getAdjudicaCounter();
654
             String counterclaim = "在《2022年版仲裁规则》第十八条第(一)项规定的期限内,被申请人向秘书处提交了" +
658
             String counterclaim = "在《2022年版仲裁规则》第十八条第(一)项规定的期限内,被申请人向秘书处提交了" +
655
                     "《仲裁反请求申请书》及证据材料。仲裁委依据《2022年版仲裁规则》第十八条的规定受理了该仲裁反请求案申请。" +
659
                     "《仲裁反请求申请书》及证据材料。仲裁委依据《2022年版仲裁规则》第十八条的规定受理了该仲裁反请求案申请。" +
656
                     "仲裁反请求案件受理后,秘书处向被申请人发送了仲裁反请求通知书及附件,向申请人发送了仲裁反请求通知书及附件、仲裁反请求申请书及附件。";
660
                     "仲裁反请求案件受理后,秘书处向被申请人发送了仲裁反请求通知书及附件,向申请人发送了仲裁反请求通知书及附件、仲裁反请求申请书及附件。";
657
-            if (adjudicaCounter == null){
661
+            if (adjudicaCounter == null) {
658
                 datas.put("counterclaim", null);
662
                 datas.put("counterclaim", null);
659
-            }else if (adjudicaCounter == 1){
663
+            } else if (adjudicaCounter == 1) {
660
                 datas.put("counterclaim", counterclaim);
664
                 datas.put("counterclaim", counterclaim);
661
             } else {
665
             } else {
662
                 datas.put("counterclaim", null);
666
                 datas.put("counterclaim", null);
667
                     "第二十八条之规定,将该申请提交至XXX市XXX区法院。";
671
                     "第二十八条之规定,将该申请提交至XXX市XXX区法院。";
668
             if (properPreser == null) {
672
             if (properPreser == null) {
669
                 datas.put("preservation", null);
673
                 datas.put("preservation", null);
670
-            } else if(properPreser == 1) {
674
+            } else if (properPreser == 1) {
671
                 datas.put("preservation", preservation);
675
                 datas.put("preservation", preservation);
672
             } else {
676
             } else {
673
                 datas.put("preservation", null);
677
                 datas.put("preservation", null);
676
             Integer objectiJuris = caseApplication1.getObjectiJuris();
680
             Integer objectiJuris = caseApplication1.getObjectiJuris();
677
             String jurisdictionalObjection = "本案受理后,被申请人向仲裁委提交了《XX管辖异议申请书》,认为XXXXXX" +
681
             String jurisdictionalObjection = "本案受理后,被申请人向仲裁委提交了《XX管辖异议申请书》,认为XXXXXX" +
678
                     ",仲裁委经审理,当庭驳回了被申请人的管辖异议申请,并告知被申请人具体的事实和理由将在裁决书中一并列明。";
682
                     ",仲裁委经审理,当庭驳回了被申请人的管辖异议申请,并告知被申请人具体的事实和理由将在裁决书中一并列明。";
679
-            if (objectiJuris == null){
683
+            if (objectiJuris == null) {
680
                 datas.put("jurisdictionalObjection", null);
684
                 datas.put("jurisdictionalObjection", null);
681
-            }
682
-            else if (objectiJuris == 1) {
685
+            } else if (objectiJuris == 1) {
683
                 datas.put("jurisdictionalObjection", jurisdictionalObjection);
686
                 datas.put("jurisdictionalObjection", jurisdictionalObjection);
684
             } else {
687
             } else {
685
                 datas.put("jurisdictionalObjection", null);
688
                 datas.put("jurisdictionalObjection", null);
689
             Integer arbitratMethod = caseApplication1.getArbitratMethod();
692
             Integer arbitratMethod = caseApplication1.getArbitratMethod();
690
             Date hearDate = caseApplication1.getHearDate();
693
             Date hearDate = caseApplication1.getHearDate();
691
             String hearDateStr = "";
694
             String hearDateStr = "";
692
-            if(hearDate!=null){
695
+            if (hearDate != null) {
693
                 hearDateStr = sdf.format(hearDate);
696
                 hearDateStr = sdf.format(hearDate);
694
             }
697
             }
695
             //线上开庭时
698
             //线上开庭时
708
                 datas.put("written2", written2);
711
                 datas.put("written2", written2);
709
             }
712
             }
710
             Integer isAbsence = caseApplication1.getIsAbsence();
713
             Integer isAbsence = caseApplication1.getIsAbsence();
711
-            if (isAbsence==null){
714
+            if (isAbsence == null) {
712
                 datas.put("absent1", null);
715
                 datas.put("absent1", null);
713
                 datas.put("absent2", null);
716
                 datas.put("absent2", null);
714
                 datas.put("absent3", null);
717
                 datas.put("absent3", null);
724
                 datas.put("appAgentName1", null);
727
                 datas.put("appAgentName1", null);
725
                 datas.put("appAgentName2", null);
728
                 datas.put("appAgentName2", null);
726
                 datas.put("resAgentName", null);
729
                 datas.put("resAgentName", null);
727
-            }
728
-            else if (isAbsence == 1) {
730
+            } else if (isAbsence == 1) {
729
                 //缺席审理
731
                 //缺席审理
730
                 String absent1 = "申请人的特别授权委托代理人";
732
                 String absent1 = "申请人的特别授权委托代理人";
731
                 String absent2 = "出席了庭审。被申请人经依法送达开庭通知,无正当理由未出席庭审,故仲裁庭依据" +
733
                 String absent2 = "出席了庭审。被申请人经依法送达开庭通知,无正当理由未出席庭审,故仲裁庭依据" +
837
             String annexPath = "/uploadPath" + annexName.substring(startIndex);
839
             String annexPath = "/uploadPath" + annexName.substring(startIndex);
838
             caseAttach.setAnnexPath(annexPath);
840
             caseAttach.setAnnexPath(annexPath);
839
             int startIndexnew = annexName.lastIndexOf("/");
841
             int startIndexnew = annexName.lastIndexOf("/");
840
-            if(startIndexnew!=-1){
841
-                String annexNamenew  = annexName.substring(startIndexnew+1);
842
+            if (startIndexnew != -1) {
843
+                String annexNamenew = annexName.substring(startIndexnew + 1);
842
                 caseAttach.setAnnexName(annexNamenew);
844
                 caseAttach.setAnnexName(annexNamenew);
843
             }
845
             }
844
 
846
 

+ 6
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseEvidenceServiceImpl.java Просмотреть файл

192
         if (caseApplication1 != null) {
192
         if (caseApplication1 != null) {
193
             int caseStatus = caseApplication1.getCaseStatus();
193
             int caseStatus = caseApplication1.getCaseStatus();
194
             caseApplication1.setObjectionAddEviden(caseEvidenceDTO.getObjectionAddEviden());
194
             caseApplication1.setObjectionAddEviden(caseEvidenceDTO.getObjectionAddEviden());
195
-            caseApplication1.setOpenCourtHear(caseEvidenceDTO.getOpenCourtHear());
195
+            //默认书面审理
196
+            caseApplication1.setOpenCourtHear(0);
196
             caseApplication1.setPendingAppointArbotrar(caseEvidenceDTO.getPendingAppointArbotrar());
197
             caseApplication1.setPendingAppointArbotrar(caseEvidenceDTO.getPendingAppointArbotrar());
197
             caseApplication1.setAdjudicaCounter(caseEvidenceDTO.getAdjudicaCounter());
198
             caseApplication1.setAdjudicaCounter(caseEvidenceDTO.getAdjudicaCounter());
198
             caseApplication1.setObjectiJuris(caseEvidenceDTO.getObjectiJuris());
199
             caseApplication1.setObjectiJuris(caseEvidenceDTO.getObjectiJuris());
208
             //修改案件状态
209
             //修改案件状态
209
             caseApplication1.setCaseStatus(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL_SUBMMIT);
210
             caseApplication1.setCaseStatus(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL_SUBMMIT);
210
             //选择仲裁方式
211
             //选择仲裁方式
211
-            if (caseEvidenceDTO.getOpenCourtHear() == 1) {   //开庭审理
212
+            if (caseEvidenceDTO.getOpenCourtHear() == null){
213
+                //没选默认书面审理
214
+                caseApplication1.setArbitratMethod(2);  //书面审理
215
+            }else if (caseEvidenceDTO.getOpenCourtHear() == 1){
212
                 caseApplication1.setArbitratMethod(1);
216
                 caseApplication1.setArbitratMethod(1);
213
             } else {
217
             } else {
214
                 caseApplication1.setArbitratMethod(2);  //书面审理
218
                 caseApplication1.setArbitratMethod(2);  //书面审理