|
|
@@ -3,6 +3,8 @@ package com.ruoyi.wisdomarbitrate.service.mscase.impl;
|
|
3
|
3
|
import cn.hutool.core.bean.BeanUtil;
|
|
4
|
4
|
import cn.hutool.core.collection.CollectionUtil;
|
|
5
|
5
|
import cn.hutool.core.util.StrUtil;
|
|
|
6
|
+import cn.hutool.http.HttpRequest;
|
|
|
7
|
+import cn.hutool.json.JSONUtil;
|
|
6
|
8
|
import com.alibaba.fastjson.JSONArray;
|
|
7
|
9
|
import com.alibaba.fastjson.JSONObject;
|
|
8
|
10
|
import com.google.gson.Gson;
|
|
|
@@ -46,12 +48,11 @@ import com.ruoyi.wisdomarbitrate.mapper.sendrecord.SmsRecordMapper;
|
|
46
|
48
|
import com.ruoyi.wisdomarbitrate.mapper.template.FatchRuleMapper;
|
|
47
|
49
|
import com.ruoyi.wisdomarbitrate.mapper.template.TemplateManageMapper;
|
|
48
|
50
|
import com.ruoyi.wisdomarbitrate.service.mscase.MsCaseApplicationService;
|
|
49
|
|
-import com.ruoyi.wisdomarbitrate.utils.CaseLogUtils;
|
|
50
|
|
-import com.ruoyi.wisdomarbitrate.utils.OCRUtils;
|
|
51
|
|
-import com.ruoyi.wisdomarbitrate.utils.SignAward;
|
|
52
|
|
-import com.ruoyi.wisdomarbitrate.utils.UnZipFileUtils;
|
|
|
51
|
+import com.ruoyi.wisdomarbitrate.utils.*;
|
|
|
52
|
+import org.apache.http.HttpResponse;
|
|
53
|
53
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
|
54
|
54
|
import org.apache.poi.xwpf.usermodel.XWPFDocument;
|
|
|
55
|
+import org.springframework.beans.BeanUtils;
|
|
55
|
56
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
56
|
57
|
import org.springframework.stereotype.Service;
|
|
57
|
58
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
@@ -1705,8 +1706,27 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
1705
|
1706
|
return AjaxResult.success();
|
|
1706
|
1707
|
}else if(mediaResult.intValue()==4){
|
|
1707
|
1708
|
//未达成调解但同意引入仲裁
|
|
1708
|
|
-
|
|
1709
|
|
-
|
|
|
1709
|
+ String accessSec = "mCFMA6ffe938v79m";
|
|
|
1710
|
+ MsCaseApplicationVO applicationVO = new MsCaseApplicationVO();
|
|
|
1711
|
+ BeanUtils.copyProperties(application,applicationVO);
|
|
|
1712
|
+
|
|
|
1713
|
+ CaseApplicationVO caseApplicationVO = new CaseApplicationVO();
|
|
|
1714
|
+ BeanUtils.copyProperties(applicationVO,caseApplicationVO);
|
|
|
1715
|
+ boolean importFlag = applicationVO.isImportFlag();
|
|
|
1716
|
+ if(importFlag==true){
|
|
|
1717
|
+ caseApplicationVO.setImportFlag(1);
|
|
|
1718
|
+ }else {
|
|
|
1719
|
+ caseApplicationVO.setImportFlag(0);
|
|
|
1720
|
+ }
|
|
|
1721
|
+ String paramsbody = JSONUtil.toJsonStr(caseApplicationVO);
|
|
|
1722
|
+ long timestamp = System.currentTimeMillis();
|
|
|
1723
|
+ String signStr = SignCheckUtils.getSign(paramsbody, accessSec, timestamp);
|
|
|
1724
|
+ String urlstr = "http://localhost:8001/callArbitrateCaseApplication/generateCaseApplication";
|
|
|
1725
|
+ HttpResponse httpResponse = (HttpResponse) HttpRequest.post(urlstr)
|
|
|
1726
|
+ .header("timestampstr", String.valueOf(timestamp))
|
|
|
1727
|
+ .header("signstr", signStr)
|
|
|
1728
|
+ .body(paramsbody)
|
|
|
1729
|
+ .execute();
|
|
1710
|
1730
|
}
|
|
1711
|
1731
|
}
|
|
1712
|
1732
|
} else {
|