|
|
@@ -110,7 +110,6 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
|
110
|
110
|
datas.put("resDateOfBirth", responBirthStr);
|
|
111
|
111
|
|
|
112
|
112
|
}
|
|
113
|
|
-
|
|
114
|
113
|
datas.put("resContactAddress", affiliate.getContactAddress());
|
|
115
|
114
|
nameAgentList.add(affiliate.getNameAgent());
|
|
116
|
115
|
}
|
|
|
@@ -266,10 +265,10 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
|
266
|
265
|
datas.put("year", year);
|
|
267
|
266
|
String month = String.format("%02d", now.getMonthValue());
|
|
268
|
267
|
String day = String.format("%02d", now.getDayOfMonth());
|
|
269
|
|
- //String modalFilePath = "/data/arbitrate-document/template/新裁决书模板.docx";
|
|
270
|
|
- String modalFilePath = "D:/develop/新裁决书模板.docx";
|
|
271
|
|
- //String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
|
|
272
|
|
- String saveFolderPath = "D:/data/" + year + "/" + month + "/" + day;
|
|
|
268
|
+ String modalFilePath = "/data/arbitrate-document/template/新裁决书模板.docx";
|
|
|
269
|
+ //String modalFilePath = "D:/develop/新裁决书模板.docx";
|
|
|
270
|
+ String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
|
|
|
271
|
+ //String saveFolderPath = "D:/data/" + year + "/" + month + "/" + day;
|
|
273
|
272
|
String fileName = UUID.randomUUID().toString().replace("-", "") + ".docx";
|
|
274
|
273
|
String saveName = "/profile/upload/" + year + "/" + month + "/" + day + "/" + fileName;
|
|
275
|
274
|
String resultFilePath = saveFolderPath + "/" + fileName;
|
|
|
@@ -297,9 +296,9 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
|
297
|
296
|
.build();
|
|
298
|
297
|
//保存到附件表里,先判断之前有没有,有的话更新,没有的话新增
|
|
299
|
298
|
List<CaseAttach> caseAttachList = caseAttachMapper.getCaseAttachByCaseIdAndType(caseAttach);
|
|
300
|
|
- if (caseAttachList != null ) {
|
|
|
299
|
+ if (caseAttachList != null && caseAttachList.size()>0) {
|
|
301
|
300
|
//之前已经生成过了,更新
|
|
302
|
|
- caseAttachMapper.updateCaseAttachBycaseid(caseAttach);
|
|
|
301
|
+ int i = caseAttachMapper.updateCaseAttachBycaseid(caseAttach);
|
|
303
|
302
|
}else {
|
|
304
|
303
|
//之前没生成过,新增
|
|
305
|
304
|
int i = caseAttachMapper.save(caseAttach);
|
|
|
@@ -312,6 +311,9 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
|
312
|
311
|
}
|
|
313
|
312
|
}
|
|
314
|
313
|
}
|
|
|
314
|
+ //修改案件状态
|
|
|
315
|
+ caseApplication1.setCaseStatus(CaseApplicationConstants.VERPRIF_ARBITRATION);
|
|
|
316
|
+ caseApplicationMapper.submitCaseApplication(caseApplication1);
|
|
315
|
317
|
return AjaxResult.success("裁决书已生成");
|
|
316
|
318
|
} catch (IOException e) {
|
|
317
|
319
|
return AjaxResult.error(e + "请检查文件路径是否有误");
|