|
|
|
|
|
|
50
|
private IAdjudicationService adjudicationService;
|
50
|
private IAdjudicationService adjudicationService;
|
|
51
|
@Autowired
|
51
|
@Autowired
|
|
52
|
private RedisCache redisCache;
|
52
|
private RedisCache redisCache;
|
|
|
|
53
|
+
|
|
53
|
@Override
|
54
|
@Override
|
|
54
|
@Transactional
|
55
|
@Transactional
|
|
55
|
public AjaxResult examineArbitrateMethod(CaseApplication caseApplication, Integer opinion) {
|
56
|
public AjaxResult examineArbitrateMethod(CaseApplication caseApplication, Integer opinion) {
|
|
|
|
|
|
|
185
|
//开庭审理,需要生成裁决书和庭审笔录
|
186
|
//开庭审理,需要生成裁决书和庭审笔录
|
|
186
|
Boolean aBoolean = generateTrialTranscripts(arbitrateRecord);
|
187
|
Boolean aBoolean = generateTrialTranscripts(arbitrateRecord);
|
|
187
|
Boolean aBoolean1 = generateAward(arbitrateRecord);
|
188
|
Boolean aBoolean1 = generateAward(arbitrateRecord);
|
|
188
|
- if (aBoolean && aBoolean1){
|
|
|
|
|
|
189
|
+ if (aBoolean && aBoolean1) {
|
|
189
|
//修改案件状态
|
190
|
//修改案件状态
|
|
190
|
caseApplication1.setCaseStatus(CaseApplicationConstants.VERPRIF_ARBITRATION);
|
191
|
caseApplication1.setCaseStatus(CaseApplicationConstants.VERPRIF_ARBITRATION);
|
|
191
|
int i = caseApplicationMapper.submitCaseApplication(caseApplication1);
|
192
|
int i = caseApplicationMapper.submitCaseApplication(caseApplication1);
|
|
|
|
|
|
|
196
|
} else if (arbitratMethod == 2) {
|
197
|
} else if (arbitratMethod == 2) {
|
|
197
|
//书面审理,只生成裁决书
|
198
|
//书面审理,只生成裁决书
|
|
198
|
Boolean aBoolean = generateAward(arbitrateRecord);
|
199
|
Boolean aBoolean = generateAward(arbitrateRecord);
|
|
199
|
- if (aBoolean){
|
|
|
|
|
|
200
|
+ if (aBoolean) {
|
|
200
|
//修改案件状态
|
201
|
//修改案件状态
|
|
201
|
caseApplication1.setCaseStatus(CaseApplicationConstants.VERPRIF_ARBITRATION);
|
202
|
caseApplication1.setCaseStatus(CaseApplicationConstants.VERPRIF_ARBITRATION);
|
|
202
|
int i = caseApplicationMapper.submitCaseApplication(caseApplication1);
|
203
|
int i = caseApplicationMapper.submitCaseApplication(caseApplication1);
|
|
|
|
|
|
|
272
|
datas.put("year", year);
|
273
|
datas.put("year", year);
|
|
273
|
datas.put("months", month);
|
274
|
datas.put("months", month);
|
|
274
|
datas.put("day", day);
|
275
|
datas.put("day", day);
|
|
275
|
- // String modalFilePath = "/data/arbitrate-document/template/仲裁裁决书模板.docx";
|
|
|
|
276
|
- String modalFilePath = "D:/develop/仲裁裁决书模板 (2).docx";
|
|
|
|
277
|
- // String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
|
|
|
|
278
|
- String saveFolderPath = "D:/data/" + now.getYear() + "/" + now.getMonthValue() + "/" + now.getDayOfMonth();
|
|
|
|
|
|
276
|
+ String modalFilePath = "/data/arbitrate-document/template/仲裁裁决书模板.docx";
|
|
|
|
277
|
+ //String modalFilePath = "D:/develop/仲裁裁决书模板 (2).docx";
|
|
|
|
278
|
+ String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
|
|
|
|
279
|
+ //String saveFolderPath = "D:/data/" + now.getYear() + "/" + now.getMonthValue() + "/" + now.getDayOfMonth();
|
|
279
|
String fileName = UUID.randomUUID().toString().replace("-", "") + ".docx";
|
280
|
String fileName = UUID.randomUUID().toString().replace("-", "") + ".docx";
|
|
280
|
String saveName = "/profile/upload/" + year + "/" + month + "/" + day + "/" + fileName;
|
281
|
String saveName = "/profile/upload/" + year + "/" + month + "/" + day + "/" + fileName;
|
|
281
|
String resultFilePath = saveFolderPath + "/" + fileName;
|
282
|
String resultFilePath = saveFolderPath + "/" + fileName;
|
|
|
|
|
|
|
296
|
.annexType(7)
|
297
|
.annexType(7)
|
|
297
|
.build();
|
298
|
.build();
|
|
298
|
//保存到附件表里,先判断之前有没有,有的话更新,没有的话新增
|
299
|
//保存到附件表里,先判断之前有没有,有的话更新,没有的话新增
|
|
299
|
- Long caseAppliId = id;
|
|
|
|
300
|
- Integer annexType = 7;
|
|
|
|
301
|
- List<CaseAttach> caseAttach1 = caseAttachMapper.getCaseAttachByCaseIdAndType(caseAttach);
|
|
|
|
302
|
- if (caseAttach1 != null ) {
|
|
|
|
|
|
300
|
+ CaseAttach caseAttach1 = new CaseAttach();
|
|
|
|
301
|
+ caseAttach1.setAnnexType(7);
|
|
|
|
302
|
+ caseAttach1.setCaseAppliId(id);
|
|
|
|
303
|
+ List<CaseAttach> caseAttachList = caseAttachMapper.getCaseAttachByCaseIdAndType(caseAttach1);
|
|
|
|
304
|
+ if (caseAttachList != null && caseAttachList.size() > 0) {
|
|
303
|
//之前已经生成过了,更新
|
305
|
//之前已经生成过了,更新
|
|
304
|
caseAttachMapper.updateCaseAttachBycaseid(caseAttach);
|
306
|
caseAttachMapper.updateCaseAttachBycaseid(caseAttach);
|
|
305
|
- }else {
|
|
|
|
|
|
307
|
+ } else {
|
|
306
|
//之前没生成过,新增
|
308
|
//之前没生成过,新增
|
|
307
|
int i = caseAttachMapper.save(caseAttach);
|
309
|
int i = caseAttachMapper.save(caseAttach);
|
|
308
|
ArbitrateRecord arbitrateRecord1 = arbitrateRecordMapper.selectArbitrateRecord(arbitrateRecord);
|
310
|
ArbitrateRecord arbitrateRecord1 = arbitrateRecordMapper.selectArbitrateRecord(arbitrateRecord);
|
|
|
|
|
|
|
322
|
return Boolean.FALSE;
|
324
|
return Boolean.FALSE;
|
|
323
|
}
|
325
|
}
|
|
324
|
}
|
326
|
}
|
|
|
|
327
|
+
|
|
325
|
//生成仲裁文书
|
328
|
//生成仲裁文书
|
|
326
|
- private Boolean generateAward(ArbitrateRecord arbitrateRecord){
|
|
|
|
|
|
329
|
+ private Boolean generateAward(ArbitrateRecord arbitrateRecord) {
|
|
327
|
try {
|
330
|
try {
|
|
328
|
Map<String, Object> datas = new HashMap<>();
|
331
|
Map<String, Object> datas = new HashMap<>();
|
|
329
|
- Long id = arbitrateRecord.getId();
|
|
|
|
|
|
332
|
+ Long id = arbitrateRecord.getCaseAppliId();
|
|
330
|
if (id == null) {
|
333
|
if (id == null) {
|
|
331
|
return null;
|
334
|
return null;
|
|
332
|
}
|
335
|
}
|
|
|
|
|
|
|
524
|
datas.put("year", year);
|
527
|
datas.put("year", year);
|
|
525
|
String month = String.format("%02d", now.getMonthValue());
|
528
|
String month = String.format("%02d", now.getMonthValue());
|
|
526
|
String day = String.format("%02d", now.getDayOfMonth());
|
529
|
String day = String.format("%02d", now.getDayOfMonth());
|
|
527
|
- //String modalFilePath = "/data/arbitrate-document/template/新裁决书模板.docx";
|
|
|
|
528
|
- String modalFilePath = "D:/develop/新裁决书模板.docx";
|
|
|
|
529
|
- //String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
|
|
|
|
530
|
- String saveFolderPath = "D:/data/" + year + "/" + month + "/" + day;
|
|
|
|
|
|
530
|
+ String modalFilePath = "/data/arbitrate-document/template/新裁决书模板.docx";
|
|
|
|
531
|
+ //String modalFilePath = "D:/develop/新裁决书模板.docx";
|
|
|
|
532
|
+ String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
|
|
|
|
533
|
+ //String saveFolderPath = "D:/data/" + year + "/" + month + "/" + day;
|
|
531
|
String fileName = UUID.randomUUID().toString().replace("-", "") + ".docx";
|
534
|
String fileName = UUID.randomUUID().toString().replace("-", "") + ".docx";
|
|
532
|
String saveName = "/profile/upload/" + year + "/" + month + "/" + day + "/" + fileName;
|
535
|
String saveName = "/profile/upload/" + year + "/" + month + "/" + day + "/" + fileName;
|
|
533
|
String resultFilePath = saveFolderPath + "/" + fileName;
|
536
|
String resultFilePath = saveFolderPath + "/" + fileName;
|
|
|
|
|
|
|
554
|
.annexType(3)
|
557
|
.annexType(3)
|
|
555
|
.build();
|
558
|
.build();
|
|
556
|
//保存到附件表里,先判断之前有没有,有的话更新,没有的话新增
|
559
|
//保存到附件表里,先判断之前有没有,有的话更新,没有的话新增
|
|
557
|
- List<CaseAttach> caseAttachList = caseAttachMapper.getCaseAttachByCaseIdAndType(caseAttach);
|
|
|
|
558
|
- if (caseAttachList != null ) {
|
|
|
|
|
|
560
|
+ CaseAttach caseAttach1 = new CaseAttach();
|
|
|
|
561
|
+ caseAttach1.setAnnexType(3);
|
|
|
|
562
|
+ caseAttach1.setCaseAppliId(id);
|
|
|
|
563
|
+ List<CaseAttach> caseAttachList = caseAttachMapper.getCaseAttachByCaseIdAndType(caseAttach1);
|
|
|
|
564
|
+ if (caseAttachList != null && caseAttachList.size() > 0) {
|
|
559
|
//之前已经生成过了,更新
|
565
|
//之前已经生成过了,更新
|
|
560
|
caseAttachMapper.updateCaseAttachBycaseid(caseAttach);
|
566
|
caseAttachMapper.updateCaseAttachBycaseid(caseAttach);
|
|
561
|
- }else {
|
|
|
|
|
|
567
|
+ } else {
|
|
562
|
//之前没生成过,新增
|
568
|
//之前没生成过,新增
|
|
563
|
int i = caseAttachMapper.save(caseAttach);
|
569
|
int i = caseAttachMapper.save(caseAttach);
|
|
564
|
if (i > 0) {
|
570
|
if (i > 0) {
|
|
|
|
|
|
|
575
|
return Boolean.FALSE;
|
581
|
return Boolean.FALSE;
|
|
576
|
}
|
582
|
}
|
|
577
|
}
|
583
|
}
|
|
|
|
584
|
+
|
|
578
|
public String getNewEquipmentNo() {
|
585
|
public String getNewEquipmentNo() {
|
|
579
|
Object awardNum = redisCache.getCacheObject("awardNum");
|
586
|
Object awardNum = redisCache.getCacheObject("awardNum");
|
|
580
|
if (awardNum == null) {
|
587
|
if (awardNum == null) {
|