|
|
@@ -1116,24 +1116,31 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
1116
|
1116
|
// String savePath = saveFolderPath;
|
|
1117
|
1117
|
// saveName = fileName;
|
|
1118
|
1118
|
|
|
1119
|
|
- //将庭审笔录保存到附件表里
|
|
1120
|
|
- CaseAttach caseAttach = CaseAttach.builder()
|
|
1121
|
|
- .caseAppliId(id)
|
|
1122
|
|
- .annexName(saveName)
|
|
1123
|
|
- .annexPath(savePath)
|
|
1124
|
|
- .annexType(7)
|
|
1125
|
|
- .build();
|
|
1126
|
|
- int i = caseAttachMapper.save(caseAttach);
|
|
1127
|
|
- if (i > 0) {
|
|
1128
|
|
- if (arbitrateRecord1 != null) {
|
|
1129
|
|
- Integer annexId = caseAttach.getAnnexId();
|
|
1130
|
|
- //将附件id保存到仲裁记录表里面
|
|
1131
|
|
- arbitrateRecord1.setAnnexId(annexId);
|
|
1132
|
|
- arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord1);
|
|
1133
|
|
- }
|
|
|
1119
|
+ caseApplication.setAnnexType(7);
|
|
|
1120
|
+ List<CaseAttach> caseAttachs = caseAttachMapper.queryCaseAttachList(caseApplication);
|
|
|
1121
|
+ if(caseAttachs!=null&&caseAttachs.size()>0){
|
|
|
1122
|
+ CaseAttach caseAttach = CaseAttach.builder()
|
|
|
1123
|
+ .caseAppliId(id)
|
|
|
1124
|
+ .annexName(saveName)
|
|
|
1125
|
+ .annexPath(savePath)
|
|
|
1126
|
+ .annexType(7)
|
|
|
1127
|
+ .build();
|
|
|
1128
|
+ int i = caseAttachMapper.updateCaseAttachBycaseid(caseAttach);
|
|
|
1129
|
+
|
|
|
1130
|
+ }else {
|
|
|
1131
|
+ //将庭审笔录保存到附件表里
|
|
|
1132
|
+ CaseAttach caseAttach = CaseAttach.builder()
|
|
|
1133
|
+ .caseAppliId(id)
|
|
|
1134
|
+ .annexName(saveName)
|
|
|
1135
|
+ .annexPath(savePath)
|
|
|
1136
|
+ .annexType(7)
|
|
|
1137
|
+ .build();
|
|
|
1138
|
+ int i = caseAttachMapper.save(caseAttach);
|
|
|
1139
|
+
|
|
1134
|
1140
|
}
|
|
|
1141
|
+
|
|
1135
|
1142
|
//获取案件详细信息
|
|
1136
|
|
- CaseApplication caseApplicationSelct = caseApplicationMapper.selectCaseApplication(caseApplication);
|
|
|
1143
|
+ CaseApplication caseApplicationSelct = selectCaseApplication(caseApplication);
|
|
1137
|
1144
|
return AjaxResult.success(caseApplicationSelct);
|
|
1138
|
1145
|
} catch (IOException e) {
|
|
1139
|
1146
|
e.printStackTrace();
|
|
|
@@ -1142,6 +1149,29 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|
1142
|
1149
|
|
|
1143
|
1150
|
}
|
|
1144
|
1151
|
|
|
|
1152
|
+ @Override
|
|
|
1153
|
+ public CaseApplication selectSignSealUrl(CaseApplication caseApplication) throws EsignDemoException {
|
|
|
1154
|
+ Gson gson = new Gson();
|
|
|
1155
|
+ SealSignRecord sealSignRecord = new SealSignRecord();
|
|
|
1156
|
+ sealSignRecord.setCaseAppliId(caseApplication.getId());
|
|
|
1157
|
+ List<SealSignRecord> sealSignRecords = sealSignRecordMapper.selectSealSignRecord(sealSignRecord);
|
|
|
1158
|
+ if(sealSignRecords!=null&&sealSignRecords.size()>0){
|
|
|
1159
|
+ String signFlowid = sealSignRecords.get(0).getSignFlowid();
|
|
|
1160
|
+ EsignHttpResponse fileDownload = SaaSAPIFileUtils.fileDownloadUrl(signFlowid);
|
|
|
1161
|
+ JsonObject fileDownloadJsonObject = gson.fromJson(fileDownload.getBody(),JsonObject.class);
|
|
|
1162
|
+ JsonObject fileDownloadData = fileDownloadJsonObject.getAsJsonObject("data");
|
|
|
1163
|
+ JsonArray filesArray = fileDownloadData.get("files").getAsJsonArray();
|
|
|
1164
|
+ if(filesArray!=null&&filesArray.size()>0){
|
|
|
1165
|
+ JsonObject fileObject = (JsonObject)filesArray.get(0);
|
|
|
1166
|
+ String fileDownloadUrl = fileObject.get("downloadUrl").toString();
|
|
|
1167
|
+ String filearbitraUrl = fileDownloadUrl.substring(1,fileDownloadUrl.length()-1);
|
|
|
1168
|
+ caseApplication.setFilearbitraUrl(filearbitraUrl);
|
|
|
1169
|
+ }
|
|
|
1170
|
+ }
|
|
|
1171
|
+
|
|
|
1172
|
+ return caseApplication;
|
|
|
1173
|
+ }
|
|
|
1174
|
+
|
|
1145
|
1175
|
@Override
|
|
1146
|
1176
|
@Transactional
|
|
1147
|
1177
|
public int pendTralSure(CaseApplication caseApplication) {
|