|
|
|
|
|
|
1858
|
String annexPath = caseAttach.getAnnexPath();
|
1858
|
String annexPath = caseAttach.getAnnexPath();
|
|
1859
|
String path = "/home/ruoyi" + annexPath;
|
1859
|
String path = "/home/ruoyi" + annexPath;
|
|
1860
|
// System.out.println("这是查询到的裁决书路径" + path);
|
1860
|
// System.out.println("这是查询到的裁决书路径" + path);
|
|
1861
|
- //String path = "D:\\home\\仲裁裁决书模板.docx";
|
|
|
|
|
|
1861
|
+ // String path = "D:\\home\\新裁决书模板.docx";
|
|
1862
|
//获取文件上传地址
|
1862
|
//获取文件上传地址
|
|
1863
|
EsignHttpResponse response = SaaSAPIFileUtils.getUploadUrl(path);
|
1863
|
EsignHttpResponse response = SaaSAPIFileUtils.getUploadUrl(path);
|
|
1864
|
String body = response.getBody();
|
1864
|
String body = response.getBody();
|
|
|
|
|
|
|
1984
|
if (selectSealList != null && selectSealList.size() > 0) {
|
1984
|
if (selectSealList != null && selectSealList.size() > 0) {
|
|
1985
|
for (SealManage manage : selectSealList) {
|
1985
|
for (SealManage manage : selectSealList) {
|
|
1986
|
Integer sealStatus = manage.getSealStatus();
|
1986
|
Integer sealStatus = manage.getSealStatus();
|
|
1987
|
- if (sealStatus == 1) {
|
|
|
|
|
|
1987
|
+ Integer isUse = manage.getIsUse();
|
|
|
|
1988
|
+ if (sealStatus == 1 && isUse ==1) {
|
|
1988
|
sealIdList.add(manage.getSealId());
|
1989
|
sealIdList.add(manage.getSealId());
|
|
1989
|
}
|
1990
|
}
|
|
1990
|
}
|
1991
|
}
|
|
|
|
|
|
|
2846
|
}
|
2847
|
}
|
|
2847
|
UUID uuid = UUID.randomUUID();
|
2848
|
UUID uuid = UUID.randomUUID();
|
|
2848
|
String targetPath = "/home/ruoyi/uploadPath/upload/unzipFile/"+uuid+ "/";
|
2849
|
String targetPath = "/home/ruoyi/uploadPath/upload/unzipFile/"+uuid+ "/";
|
|
2849
|
- // String targetPath = "D:/home/unzip/" + uuid + "/";
|
|
|
|
|
|
2850
|
+ //String targetPath = "D:/home/unzip/" + uuid + "/";
|
|
2850
|
File zipFile = null;
|
2851
|
File zipFile = null;
|
|
2851
|
InputStream ins = null;
|
2852
|
InputStream ins = null;
|
|
2852
|
try {
|
2853
|
try {
|
|
2853
|
ins = file.getInputStream();
|
2854
|
ins = file.getInputStream();
|
|
2854
|
//上传的压缩包保存的路径
|
2855
|
//上传的压缩包保存的路径
|
|
2855
|
String savePath = "/home/ruoyi/uploadPath/upload/zipFile/";
|
2856
|
String savePath = "/home/ruoyi/uploadPath/upload/zipFile/";
|
|
2856
|
- // String savePath = "D:/home/zipFile/";
|
|
|
|
|
|
2857
|
+ //String savePath = "D:/home/zipFile/";
|
|
2857
|
String saveName = uuid + "_" + file.getOriginalFilename();
|
2858
|
String saveName = uuid + "_" + file.getOriginalFilename();
|
|
2858
|
zipFile = new File(savePath + saveName);
|
2859
|
zipFile = new File(savePath + saveName);
|
|
2859
|
inputChangeToFile(ins, zipFile);
|
2860
|
inputChangeToFile(ins, zipFile);
|
|
|
|
|
|
|
2913
|
//默认案件标的
|
2914
|
//默认案件标的
|
|
2914
|
caseApplication.setCaseSubjectAmount(new BigDecimal(1));
|
2915
|
caseApplication.setCaseSubjectAmount(new BigDecimal(1));
|
|
2915
|
caseApplication.setApplicationOrganId(map.get("统一社会信用代码").get(0));
|
2916
|
caseApplication.setApplicationOrganId(map.get("统一社会信用代码").get(0));
|
|
2916
|
- caseApplication.setCompLegalPerson(map.get("负责人").get(0));
|
|
|
|
2917
|
- caseApplication.setNameAgent(map.get("委托代理人").get(0));
|
|
|
|
2918
|
caseApplication.setArbitratClaims(map.get("仲裁请求").get(0));
|
2917
|
caseApplication.setArbitratClaims(map.get("仲裁请求").get(0));
|
|
2919
|
List<CaseAffiliate> caseAffiliates = new ArrayList<>();
|
2918
|
List<CaseAffiliate> caseAffiliates = new ArrayList<>();
|
|
2920
|
CaseAffiliate caseAffiliate = new CaseAffiliate();
|
2919
|
CaseAffiliate caseAffiliate = new CaseAffiliate();
|
|
2921
|
caseAffiliate.setIdentityType(1);
|
2920
|
caseAffiliate.setIdentityType(1);
|
|
2922
|
caseAffiliate.setName(map.get("申请人").get(0));
|
2921
|
caseAffiliate.setName(map.get("申请人").get(0));
|
|
2923
|
caseAffiliate.setIdentityNum(map.get("统一社会信用代码").get(0));
|
2922
|
caseAffiliate.setIdentityNum(map.get("统一社会信用代码").get(0));
|
|
|
|
2923
|
+ caseAffiliate.setCompLegalPerson(map.get("负责人").get(0));
|
|
|
|
2924
|
+ caseAffiliate.setNameAgent(map.get("委托代理人").get(0));
|
|
2924
|
caseAffiliate.setContactTelphone(map.get("联系电话").get(0));
|
2925
|
caseAffiliate.setContactTelphone(map.get("联系电话").get(0));
|
|
2925
|
caseAffiliate.setResidenAffili(map.get("住所").get(0));
|
2926
|
caseAffiliate.setResidenAffili(map.get("住所").get(0));
|
|
2926
|
caseAffiliate.setContactAddress(map.get("联系地址").get(0));
|
2927
|
caseAffiliate.setContactAddress(map.get("联系地址").get(0));
|
|
2927
|
- caseAffiliate.setSendEmail(map.get("电子邮件").get(0));
|
|
|
|
|
|
2928
|
+ caseAffiliate.setEmail(map.get("电子邮件").get(0));
|
|
|
|
2929
|
+ //设置默认代理人的身份证号码,暂时写死 要不然新增方法报错
|
|
|
|
2930
|
+ caseAffiliate.setIdentityNumAgent("610528199901013612");
|
|
2928
|
caseAffiliates.add(caseAffiliate);
|
2931
|
caseAffiliates.add(caseAffiliate);
|
|
2929
|
CaseAffiliate caseAffiliate1 = new CaseAffiliate();
|
2932
|
CaseAffiliate caseAffiliate1 = new CaseAffiliate();
|
|
2930
|
caseAffiliate1.setIdentityType(2);
|
2933
|
caseAffiliate1.setIdentityType(2);
|