|
|
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
5
|
5
|
import com.ruoyi.common.constant.CaseApplicationConstants;
|
|
6
|
6
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
7
|
7
|
import com.ruoyi.common.core.redis.RedisCache;
|
|
|
8
|
+import com.ruoyi.common.utils.DateUtils;
|
|
8
|
9
|
import com.ruoyi.wisdomarbitrate.mapper.*;
|
|
9
|
10
|
import com.ruoyi.wisdomarbitrate.utils.CaseLogUtils;
|
|
10
|
11
|
import com.ruoyi.common.utils.EmailOutUtil;
|
|
|
@@ -77,24 +78,30 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
|
77
|
78
|
CaseAffiliate caseAffiliate = new CaseAffiliate();
|
|
78
|
79
|
caseAffiliate.setCaseAppliId(id);
|
|
79
|
80
|
List<CaseAffiliate> caseAffiliates = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
|
|
|
81
|
+ List<String> nameAgentList = new ArrayList<>();
|
|
80
|
82
|
if (caseAffiliates != null && caseAffiliates.size() > 0) {
|
|
81
|
83
|
for (CaseAffiliate affiliate : caseAffiliates) {
|
|
82
|
84
|
//获取身份类型
|
|
83
|
85
|
int identityType = affiliate.getIdentityType();
|
|
84
|
86
|
if (identityType == 1) { //申请人
|
|
85
|
87
|
datas.put("appName", affiliate.getName());
|
|
86
|
|
- datas.put("appAddress", affiliate.getContactAddress());
|
|
87
|
|
- datas.put("appContactAddress", null);
|
|
|
88
|
+ datas.put("appAddress", affiliate.getResidenAffili());
|
|
|
89
|
+ datas.put("appContactAddress", affiliate.getContactAddress());
|
|
88
|
90
|
datas.put("appLegalPerson", affiliate.getCompLegalPerson());
|
|
89
|
91
|
datas.put("appLegalPersonTitle", affiliate.getCompLegalperPost());
|
|
90
|
92
|
datas.put("appAgentName", affiliate.getNameAgent());
|
|
91
|
|
- datas.put("appAgentTitle", null);
|
|
|
93
|
+ datas.put("appAgentTitle", affiliate.getAppliAgentTitle());
|
|
|
94
|
+ nameAgentList.add(affiliate.getNameAgent());
|
|
92
|
95
|
} else if (identityType == 2) { //被申请人
|
|
93
|
96
|
datas.put("resName", affiliate.getName());
|
|
94
|
|
- datas.put("resAddress", affiliate.getContactAddress());
|
|
|
97
|
+ datas.put("resAddress", affiliate.getResidenAffili());
|
|
95
|
98
|
datas.put("resSex", affiliate.getResponSex());
|
|
96
|
|
- datas.put("resDateOfBirth", affiliate.getResponBirth());
|
|
97
|
|
- datas.put("resContactAddress", null);
|
|
|
99
|
+ Date responBirth = affiliate.getResponBirth();
|
|
|
100
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
101
|
+ String responBirthStr = sdf.format(responBirth);
|
|
|
102
|
+ datas.put("resDateOfBirth",responBirthStr);
|
|
|
103
|
+ datas.put("resContactAddress", affiliate.getContactAddress());
|
|
|
104
|
+ nameAgentList.add(affiliate.getNameAgent());
|
|
98
|
105
|
}
|
|
99
|
106
|
}
|
|
100
|
107
|
}
|
|
|
@@ -163,7 +170,7 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
|
163
|
170
|
}
|
|
164
|
171
|
Integer isAbsence = caseApplication1.getIsAbsence();
|
|
165
|
172
|
if (isAbsence==null){
|
|
166
|
|
- datas.put("onLine1", null);
|
|
|
173
|
+ datas.put("absent1", null);
|
|
167
|
174
|
datas.put("absent2", null);
|
|
168
|
175
|
datas.put("absent3", null);
|
|
169
|
176
|
datas.put("absent4", null);
|
|
|
@@ -175,7 +182,9 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
|
175
|
182
|
datas.put("attend5", null);
|
|
176
|
183
|
datas.put("attend6", null);
|
|
177
|
184
|
datas.put("attend7", null);
|
|
178
|
|
- datas.put("responCrossOpin", null);
|
|
|
185
|
+ datas.put("appAgentName1", null);
|
|
|
186
|
+ datas.put("appAgentName2", null);
|
|
|
187
|
+ datas.put("resAgentName", null);
|
|
179
|
188
|
}
|
|
180
|
189
|
else if (isAbsence == 1) {
|
|
181
|
190
|
//缺席审理
|
|
|
@@ -188,11 +197,12 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
|
188
|
197
|
"申请人为证明其主张的事实和理由,向仲裁庭提交了如下证据材料:";
|
|
189
|
198
|
String absent5 = "综上,仲裁庭依据《上海仲裁委员会仲裁规则》(2022年7月1日起施行的版本)" +
|
|
190
|
199
|
"第四十条第(二)项、第五十一条的规定,缺席裁决如下:";
|
|
191
|
|
- datas.put("onLine1", absent1);
|
|
|
200
|
+ datas.put("absent1", absent1);
|
|
192
|
201
|
datas.put("absent2", absent2);
|
|
193
|
202
|
datas.put("absent3", absent3);
|
|
194
|
203
|
datas.put("absent4", absent4);
|
|
195
|
204
|
datas.put("absent5", absent5);
|
|
|
205
|
+ datas.put("appAgentName1", nameAgentList.get(0));
|
|
196
|
206
|
} else {
|
|
197
|
207
|
//出席审理
|
|
198
|
208
|
String attend1 = "申请人的特别授权委托代理人";
|
|
|
@@ -214,6 +224,8 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
|
214
|
224
|
datas.put("attend6", attend6);
|
|
215
|
225
|
datas.put("attend7", attend7);
|
|
216
|
226
|
datas.put("responCrossOpin", caseApplication1.getResponCrossOpin());
|
|
|
227
|
+ datas.put("appAgentName2", nameAgentList.get(0));
|
|
|
228
|
+ datas.put("resAgentName", nameAgentList.get(1));
|
|
217
|
229
|
if (arbitratMethod == 1) {
|
|
218
|
230
|
//被申出席+开庭
|
|
219
|
231
|
String attend8 = "综上,仲裁庭依据《上海仲裁委员会仲裁规则》(2022年7月1日起施行的版本)" +
|
|
|
@@ -243,7 +255,7 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
|
243
|
255
|
datas.put("year", year);
|
|
244
|
256
|
String month = String.format("%02d", now.getMonthValue());
|
|
245
|
257
|
String day = String.format("%02d", now.getDayOfMonth());
|
|
246
|
|
- String modalFilePath = "/data/arbitrate-document/template/新裁决书模板.docx";
|
|
|
258
|
+ String modalFilePath = "/data/arbitrate-document/template/新裁决书模板.docx";
|
|
247
|
259
|
//String modalFilePath = "D:/develop/新裁决书模板.docx";
|
|
248
|
260
|
String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
|
|
249
|
261
|
//String saveFolderPath = "D:/data/" + year + "/" + month + "/" + day;
|