Explorar el Código

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

hejinbo hace 2 años
padre
commit
d31d363c44

+ 51
- 49
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/AdjudicationServiceImpl.java Ver fichero

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

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

@@ -192,7 +192,8 @@ public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
192 192
         if (caseApplication1 != null) {
193 193
             int caseStatus = caseApplication1.getCaseStatus();
194 194
             caseApplication1.setObjectionAddEviden(caseEvidenceDTO.getObjectionAddEviden());
195
-            caseApplication1.setOpenCourtHear(caseEvidenceDTO.getOpenCourtHear());
195
+            //默认书面审理
196
+            caseApplication1.setOpenCourtHear(0);
196 197
             caseApplication1.setPendingAppointArbotrar(caseEvidenceDTO.getPendingAppointArbotrar());
197 198
             caseApplication1.setAdjudicaCounter(caseEvidenceDTO.getAdjudicaCounter());
198 199
             caseApplication1.setObjectiJuris(caseEvidenceDTO.getObjectiJuris());
@@ -208,7 +209,10 @@ public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
208 209
             //修改案件状态
209 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 216
                 caseApplication1.setArbitratMethod(1);
213 217
             } else {
214 218
                 caseApplication1.setArbitratMethod(2);  //书面审理