调解系统后端服务

FixSelectFlowDetailUtils.java 29KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453
  1. package com.ruoyi.wisdomarbitrate.utils;
  2. import cn.hutool.core.bean.BeanUtil;
  3. import com.alibaba.fastjson.JSONObject;
  4. import com.google.gson.Gson;
  5. import com.google.gson.JsonArray;
  6. import com.google.gson.JsonObject;
  7. import com.ruoyi.common.constant.FileTransformation;
  8. import com.ruoyi.common.core.domain.entity.EsignHttpResponse;
  9. import com.ruoyi.common.enums.AnnexTypeEnum;
  10. import com.ruoyi.common.exception.EsignDemoException;
  11. import com.ruoyi.common.utils.file.SaaSAPIFileUtils;
  12. import com.ruoyi.system.domain.entity.flow.MsCaseFlow;
  13. import com.ruoyi.system.mapper.flow.MsCaseFlowMapper;
  14. import com.ruoyi.wisdomarbitrate.domain.dto.dept.DeptIdentify;
  15. import com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage;
  16. import com.ruoyi.wisdomarbitrate.domain.dto.mscase.SealSignRecord;
  17. import com.ruoyi.wisdomarbitrate.domain.entity.dept.MsSealSignRecord;
  18. import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseApplication;
  19. import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseAttach;
  20. import com.ruoyi.wisdomarbitrate.mapper.dept.DeptIdentifyMapper;
  21. import com.ruoyi.wisdomarbitrate.mapper.dept.MsSealSignRecordMapper;
  22. import com.ruoyi.wisdomarbitrate.mapper.dept.SealManageMapper;
  23. import com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseApplicationMapper;
  24. import com.ruoyi.wisdomarbitrate.mapper.mscase.MsCaseAttachMapper;
  25. import org.springframework.beans.factory.annotation.Autowired;
  26. import org.springframework.scheduling.annotation.Scheduled;
  27. import org.springframework.stereotype.Component;
  28. import org.springframework.transaction.annotation.Transactional;
  29. import java.io.File;
  30. import java.io.IOException;
  31. import java.time.LocalDate;
  32. import java.util.ArrayList;
  33. import java.util.List;
  34. import java.util.UUID;
  35. import java.util.stream.Collectors;
  36. @Component
  37. public class FixSelectFlowDetailUtils {
  38. @Autowired
  39. private MsCaseAttachMapper caseAttachMapper;
  40. @Autowired
  41. private DeptIdentifyMapper deptIdentifyMapper;
  42. @Autowired
  43. private SealManageMapper sealManageMapper;
  44. @Autowired
  45. private MsSealSignRecordMapper sealSignRecordMapper;
  46. @Autowired
  47. MsCaseApplicationMapper msCaseApplicationMapper;
  48. @Autowired
  49. MsCaseFlowMapper caseFlowMapper;
  50. @Autowired
  51. private MsCaseApplicationMapper caseApplicationMapper;
  52. /**
  53. * 定时查询企业认证状态
  54. *
  55. * @throws Exception
  56. */
  57. @Scheduled(cron = "*/30 * * * * *")
  58. @Transactional
  59. public void fixExecuteSelectDeptIndentifyUtils() throws Exception {
  60. Gson gson = new Gson();
  61. DeptIdentify deptIdentify = new DeptIdentify();
  62. List<DeptIdentify> deptIdentifysnew = deptIdentifyMapper.selectDeptIdentify(deptIdentify);
  63. if (deptIdentifysnew != null && deptIdentifysnew.size() > 0) {
  64. for (int i = 0; i < deptIdentifysnew.size(); i++) {
  65. DeptIdentify deptIdentify1 = deptIdentifysnew.get(i);
  66. Integer identifyStatus = deptIdentify1.getIdentifyStatus();
  67. if (identifyStatus!=1){
  68. String authFlowId = deptIdentify1.getAuthFlowId();
  69. if (authFlowId != null) {
  70. EsignHttpResponse identifyInfo = SignAward.getDeptIdentifyInfo(deptIdentify1);
  71. JsonObject identifyInfoJsonObject = gson.fromJson(identifyInfo.getBody(), JsonObject.class);
  72. int code = identifyInfoJsonObject.get("code").getAsInt();
  73. if (code == 0) {
  74. JsonObject identifyInfoData = identifyInfoJsonObject.getAsJsonObject("data");
  75. int realnameStatus = identifyInfoData.get("realnameStatus").getAsInt();
  76. if (realnameStatus == 1) {
  77. String orgId = identifyInfoData.get("orgId").getAsString();
  78. //查询企业内部印章
  79. EsignHttpResponse response = SignAward.deptIdentifySealList(orgId);
  80. JsonObject jsonObject = gson.fromJson(response.getBody(), JsonObject.class);
  81. int code1 = jsonObject.get("code").getAsInt();
  82. if (code1 == 0) {
  83. JsonObject data = jsonObject.getAsJsonObject("data");
  84. JsonArray seals = data.get("seals").getAsJsonArray();
  85. if (seals.size() > 0) {
  86. for (int j = 0; j < seals.size(); j++) {
  87. //保存印章信息到数据库
  88. JsonObject asJsonObject = seals.get(j).getAsJsonObject();
  89. SealManage sealManage = new SealManage();
  90. String sealName = asJsonObject.get("sealName").toString();
  91. String sealId = asJsonObject.get("sealId").toString();
  92. String url = asJsonObject.get("sealImageDownloadUrl").toString();
  93. LocalDate now = LocalDate.now();
  94. String year = Integer.toString(now.getYear());
  95. String month = String.format("%02d", now.getMonthValue());
  96. String day = String.format("%02d", now.getDayOfMonth());
  97. String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
  98. String fileName = UUID.randomUUID().toString().replace("-", "") + ".jpg";
  99. String saveName = "/profile/upload/" + year + "/" + month + "/" + day + "/" + fileName;
  100. String savePath = "/home/ruoyi/uploadPath/upload/";
  101. // 创建日期目录
  102. File saveFolder = new File(saveFolderPath);
  103. if (!saveFolder.exists()) {
  104. saveFolder.mkdirs();
  105. }
  106. String resultFilePath = saveFolderPath + "/" + fileName;
  107. File resultFilePathFile = new File(resultFilePath);
  108. if (!resultFilePathFile.exists()) {
  109. resultFilePathFile.createNewFile();
  110. }
  111. String fileDownloadUrlnew = url.substring(1, url.length() - 1);
  112. boolean downLoadFile = FileTransformation.downLoadFileByUrl(fileDownloadUrlnew, resultFilePath);
  113. if (downLoadFile) {
  114. MsCaseAttach caseAttach = new MsCaseAttach();
  115. caseAttach.setAnnexType(AnnexTypeEnum.SEAL_PICTURE.getCode()); //10代表印章图片
  116. caseAttach.setAnnexPath(savePath);
  117. caseAttach.setAnnexName(saveName);
  118. int i1 = caseAttachMapper.save(caseAttach);
  119. if (i1 > 0) {
  120. //将印章信息保存到公章管理表里
  121. String sealName1 = sealName.substring(1, sealName.length() - 1);
  122. String sealId1 = sealId.substring(1, sealId.length() - 1);
  123. Long annexId1 = caseAttach.getAnnexId();
  124. sealManage.setAnnexId(annexId1);
  125. sealManage.setSealId(sealId1);
  126. sealManage.setSealName(sealName1);
  127. sealManage.setIdentifyId(deptIdentify1.getId());
  128. sealManage.setSealStatus(1);
  129. sealManage.setIsUse(1);
  130. sealManageMapper.insertSealManage(sealManage);
  131. }
  132. }
  133. }
  134. }
  135. }
  136. //将orgId保存到数据库里
  137. deptIdentify1.setOrgId(orgId);
  138. deptIdentify1.setIdentifyStatus(1);
  139. deptIdentify1.setIsUse(0); //默认机构为未启用
  140. int row = deptIdentifyMapper.updateDeptIdentify(deptIdentify1);
  141. }
  142. }else {
  143. deptIdentify1.setIdentifyStatus(2);
  144. deptIdentifyMapper.updateDeptIdentify(deptIdentify1);
  145. }
  146. }
  147. }
  148. }
  149. }
  150. }
  151. /**
  152. * 定时查询印章审核状态
  153. */
  154. @Scheduled(cron = "0/30 * * * * ?")
  155. @Transactional
  156. public void searchForInstitutionalSeal() {
  157. try {
  158. SealManage sealManage = new SealManage();
  159. sealManage.setSealStatus(0);
  160. List<SealManage> sealManageList = sealManageMapper.selectSealList(sealManage);
  161. if (sealManageList != null && sealManageList.size() > 0) {
  162. for (SealManage sealManage1 : sealManageList) {
  163. //查询企业内部印章
  164. Long annexId = sealManage1.getAnnexId();
  165. String sealId = sealManage1.getSealId();
  166. DeptIdentify deptIdentify = new DeptIdentify();
  167. deptIdentify.setId(sealManage1.getIdentifyId());
  168. List<DeptIdentify> deptIdentifies = deptIdentifyMapper.selectDeptIdentify(deptIdentify);
  169. if (deptIdentifies != null && deptIdentifies.size() > 0) {
  170. DeptIdentify deptIdentify1 = deptIdentifies.get(0);
  171. String orgId = deptIdentify1.getOrgId();
  172. if (orgId == null) {
  173. continue;
  174. }
  175. if (annexId == null) {
  176. //说明之前没有下载过
  177. EsignHttpResponse response = SignAward.getOrgSeal(orgId, sealId);
  178. JSONObject jsonObject = JSONObject.parseObject(response.getBody());
  179. int code = jsonObject.getIntValue("code");
  180. if (code == 0) {
  181. JSONObject data = jsonObject.getJSONObject("data");
  182. int sealStatus = data.getIntValue("sealStatus");
  183. if (sealStatus == 1) {//印章状态 1已启用,2待审核,3审核不通过,4 挂起
  184. //已启用证明审核通过,下载到数据库
  185. String sealImageDownloadUrl = data.getString("sealImageDownloadUrl");
  186. LocalDate now = LocalDate.now();
  187. String year = Integer.toString(now.getYear());
  188. String month = String.format("%02d", now.getMonthValue());
  189. String day = String.format("%02d", now.getDayOfMonth());
  190. String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
  191. String fileName = UUID.randomUUID().toString().replace("-", "") + ".jpg";
  192. String saveName = "/profile/upload/" + year + "/" + month + "/" + day + "/" + fileName;
  193. String savePath = "/home/ruoyi/uploadPath/upload/";
  194. // 创建日期目录
  195. File saveFolder = new File(saveFolderPath);
  196. if (!saveFolder.exists()) {
  197. saveFolder.mkdirs();
  198. }
  199. String resultFilePath = saveFolderPath + "/" + fileName;
  200. File resultFilePathFile = new File(resultFilePath);
  201. if (!resultFilePathFile.exists()) {
  202. resultFilePathFile.createNewFile();
  203. }
  204. boolean downLoadFile = FileTransformation.downLoadFileByUrl(sealImageDownloadUrl, resultFilePath);
  205. if (downLoadFile) {
  206. MsCaseAttach caseAttach = new MsCaseAttach();
  207. caseAttach.setAnnexType(AnnexTypeEnum.SEAL_PICTURE.getCode()); //10代表印章图片
  208. caseAttach.setAnnexPath(savePath);
  209. caseAttach.setAnnexName(saveName);
  210. int i1 = caseAttachMapper.save(caseAttach);
  211. if (i1 > 0) {
  212. //将附件id保存到公章管理表里
  213. Long annexId1 = caseAttach.getAnnexId();
  214. sealManage1.setAnnexId(annexId1);
  215. sealManage1.setSealStatus(1);
  216. sealManage1.setIsUse(0);
  217. sealManageMapper.updateSealManage(sealManage1);
  218. }
  219. }
  220. }
  221. }
  222. }
  223. }
  224. }
  225. }
  226. } catch (EsignDemoException e) {
  227. e.printStackTrace();
  228. } catch (IOException e) {
  229. e.printStackTrace();
  230. }
  231. }
  232. /*
  233. 定时查询签署流程详情
  234. */
  235. // @Scheduled(cron = "0/10 * * * * ?")
  236. @Transactional
  237. public void fixExecuteSelectFlowDetailUtils() {
  238. Gson gson = new Gson();
  239. List<MsSealSignRecord> sealSignRecords = sealSignRecordMapper.selectSealSignRecordbyStat();
  240. try {
  241. if (sealSignRecords != null && sealSignRecords.size() > 0) {
  242. for (int i = 0; i < sealSignRecords.size(); i++) {
  243. MsSealSignRecord mssealSignRecord = sealSignRecords.get(i);
  244. SealSignRecord sealSignRecord = new SealSignRecord();
  245. BeanUtil.copyProperties(mssealSignRecord, sealSignRecord);
  246. sealSignRecord.setSignFlowid(mssealSignRecord.getSignFlowId());
  247. EsignHttpResponse signFlowDetail = SignAward.signFlowDetail(sealSignRecord);
  248. JsonObject signFlowDetailJsonObject = gson.fromJson(signFlowDetail.getBody(), JsonObject.class);
  249. JsonObject flowDetailData = signFlowDetailJsonObject.getAsJsonObject("data");
  250. JsonArray signersArray = flowDetailData.get("signers").getAsJsonArray();
  251. List<Integer> psnsignStatusList = new ArrayList<>();
  252. Integer psnsignStatus = null;
  253. Integer orgsignStatus = null;
  254. for (int j = 0; j < signersArray.size(); j++) {
  255. JsonObject signerObject = (JsonObject) signersArray.get(j);
  256. if (!(signerObject.get("psnSigner").toString()).equals("null")) {
  257. JsonObject psnSignerData = signerObject.getAsJsonObject("psnSigner");
  258. if (psnSignerData != null) {
  259. psnsignStatus = signerObject.get("signStatus").getAsInt();
  260. psnsignStatusList.add(psnsignStatus);
  261. }
  262. }
  263. if (!(signerObject.get("orgSigner").toString()).equals("null")) {
  264. JsonObject orgSignerData = signerObject.getAsJsonObject("orgSigner");
  265. if (orgSignerData != null) {
  266. orgsignStatus = signerObject.get("signStatus").getAsInt();
  267. }
  268. }
  269. }
  270. List<Integer> psnsignStatusListnew = psnsignStatusList.stream().distinct().collect(Collectors.toList());
  271. MsCaseApplication caseApplicationselect = msCaseApplicationMapper.selectByPrimaryKey(sealSignRecord.getCaseAppliId());
  272. // Integer isReconci = caseApplicationselect.getIsReconci();
  273. Integer mediaResult = caseApplicationselect.getMediaResult();
  274. if(mediaResult!=null){
  275. if(mediaResult.intValue()==5){
  276. if (( psnsignStatusListnew.size()==1 && (psnsignStatusListnew.get(0).intValue() == 2))) {
  277. //更新立案申请状态为待送达
  278. // MsCaseApplication caseApplicationselect = msCaseApplicationMapper.selectByPrimaryKey(sealSignRecord.getCaseAppliId());
  279. if ((mssealSignRecord.getSignFlowStatus() != null) && (mssealSignRecord.getSignFlowStatus().intValue() == 1)) {
  280. MsCaseFlow nextFlow = caseFlowMapper.nextFlow1(caseApplicationselect.getCaseFlowId().intValue());
  281. MsCaseApplication application = new MsCaseApplication();
  282. application.setId(caseApplicationselect.getId());
  283. application.setCaseFlowId(nextFlow.getId());
  284. application.setCaseStatusName(nextFlow.getCaseStatusName());
  285. caseApplicationMapper.updateByPrimaryKeySelective(application);
  286. //修改"签署用印记录表"的状态为完成
  287. mssealSignRecord.setSignFlowStatus(3);
  288. sealSignRecordMapper.updateByPrimaryKeySelective(mssealSignRecord);
  289. //下载审核完成的调解书
  290. String signFlowId = sealSignRecord.getSignFlowid();
  291. EsignHttpResponse fileDownload = SaaSAPIFileUtils.fileDownloadUrl(signFlowId);
  292. JsonObject fileDownloadJsonObject = gson.fromJson(fileDownload.getBody(), JsonObject.class);
  293. JsonObject fileDownloadData = fileDownloadJsonObject.getAsJsonObject("data");
  294. JsonArray filesArray = fileDownloadData.get("files").getAsJsonArray();
  295. if (filesArray != null && filesArray.size() > 0) {
  296. JsonObject fileObject = (JsonObject) filesArray.get(0);
  297. String fileDownloadUrl = fileObject.get("downloadUrl").toString();
  298. LocalDate now = LocalDate.now();
  299. String year = Integer.toString(now.getYear());
  300. String month = String.format("%02d", now.getMonthValue());
  301. String day = String.format("%02d", now.getDayOfMonth());
  302. String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
  303. String fileName = UUID.randomUUID().toString().replace("-", "") + ".pdf";
  304. // String saveName = "/profile/upload/" + year + "/" + month + "/" + day + "/" + fileName;
  305. // String savePath = "/home/ruoyi/uploadPath/upload/";
  306. String saveName = fileName;
  307. String savePath = "/profile/upload/" + year + "/" + month + "/" + day + "/" + fileName;
  308. // 创建日期目录
  309. File saveFolder = new File(saveFolderPath);
  310. if (!saveFolder.exists()) {
  311. saveFolder.mkdirs();
  312. }
  313. String resultFilePath = saveFolderPath + "/" + fileName;
  314. File resultFilePathFile = new File(resultFilePath);
  315. if (!resultFilePathFile.exists()) {
  316. resultFilePathFile.createNewFile();
  317. }
  318. String fileDownloadUrlnew = fileDownloadUrl.substring(1, fileDownloadUrl.length() - 1);
  319. boolean downLoadFile = FileTransformation.downLoadFileByUrl(fileDownloadUrlnew, resultFilePath);
  320. if (downLoadFile) {
  321. Long caseAppliId = sealSignRecord.getCaseAppliId();
  322. MsCaseAttach caseAttach = new MsCaseAttach();
  323. caseAttach.setCaseAppliId(caseAppliId);
  324. caseAttach.setAnnexType(7);
  325. caseAttach.setAnnexPath(savePath);
  326. caseAttach.setAnnexName(saveName);
  327. caseAttachMapper.updateCaseAttachBycaseid(caseAttach);
  328. }
  329. }
  330. }
  331. }
  332. }else if(mediaResult.intValue()==1){
  333. if (( psnsignStatusListnew.size()==1 && (psnsignStatusListnew.get(0).intValue() == 2)) && (orgsignStatus.intValue() == 1)) {
  334. //更新立案申请状态为待用印
  335. // MsCaseApplication caseApplicationselect = msCaseApplicationMapper.selectByPrimaryKey(sealSignRecord.getCaseAppliId());
  336. if ((mssealSignRecord.getSignFlowStatus() != null) && (mssealSignRecord.getSignFlowStatus().intValue() == 1)) {
  337. // 根据流程id查找下一个流程节点
  338. MsCaseFlow nextFlow = caseFlowMapper.nextFlow(caseApplicationselect.getCaseFlowId().intValue());
  339. MsCaseApplication application = new MsCaseApplication();
  340. application.setId(caseApplicationselect.getId());
  341. application.setCaseFlowId(nextFlow.getId());
  342. application.setCaseStatusName(nextFlow.getCaseStatusName());
  343. caseApplicationMapper.updateByPrimaryKeySelective(application);
  344. //修改"签署用印记录表"的状态为待用印
  345. mssealSignRecord.setSignFlowStatus(2);
  346. sealSignRecordMapper.updateByPrimaryKeySelective(mssealSignRecord);
  347. }
  348. }
  349. if (( psnsignStatusListnew.size()==1 && (psnsignStatusListnew.get(0).intValue() == 2)) && (orgsignStatus.intValue() == 2)) {
  350. //更新立案申请状态为待送达
  351. // MsCaseApplication caseApplicationselect = msCaseApplicationMapper.selectByPrimaryKey(sealSignRecord.getCaseAppliId());
  352. if ((mssealSignRecord.getSignFlowStatus() != null) && (mssealSignRecord.getSignFlowStatus().intValue() == 2)) {
  353. //修改"签署用印记录表"的状态为签署完成
  354. mssealSignRecord.setSignFlowStatus(3);
  355. sealSignRecordMapper.updateByPrimaryKeySelective(mssealSignRecord);
  356. // 根据流程id查找下一个流程节点
  357. MsCaseFlow nextFlow = caseFlowMapper.nextFlow(caseApplicationselect.getCaseFlowId().intValue());
  358. MsCaseApplication application = new MsCaseApplication();
  359. application.setId(caseApplicationselect.getId());
  360. application.setCaseFlowId(nextFlow.getId());
  361. application.setCaseStatusName(nextFlow.getCaseStatusName());
  362. caseApplicationMapper.updateByPrimaryKeySelective(application);
  363. //下载审核完成的调解书
  364. String signFlowId = sealSignRecord.getSignFlowid();
  365. EsignHttpResponse fileDownload = SaaSAPIFileUtils.fileDownloadUrl(signFlowId);
  366. JsonObject fileDownloadJsonObject = gson.fromJson(fileDownload.getBody(), JsonObject.class);
  367. JsonObject fileDownloadData = fileDownloadJsonObject.getAsJsonObject("data");
  368. JsonArray filesArray = fileDownloadData.get("files").getAsJsonArray();
  369. if (filesArray != null && filesArray.size() > 0) {
  370. JsonObject fileObject = (JsonObject) filesArray.get(0);
  371. String fileDownloadUrl = fileObject.get("downloadUrl").toString();
  372. LocalDate now = LocalDate.now();
  373. String year = Integer.toString(now.getYear());
  374. String month = String.format("%02d", now.getMonthValue());
  375. String day = String.format("%02d", now.getDayOfMonth());
  376. String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
  377. String fileName = UUID.randomUUID().toString().replace("-", "") + ".pdf";
  378. // String saveName = "/profile/upload/" + year + "/" + month + "/" + day + "/" + fileName;
  379. // String savePath = "/home/ruoyi/uploadPath/upload/";
  380. String saveName = fileName;
  381. String savePath = "/profile/upload/" + year + "/" + month + "/" + day + "/" + fileName;
  382. // 创建日期目录
  383. File saveFolder = new File(saveFolderPath);
  384. if (!saveFolder.exists()) {
  385. saveFolder.mkdirs();
  386. }
  387. String resultFilePath = saveFolderPath + "/" + fileName;
  388. File resultFilePathFile = new File(resultFilePath);
  389. if (!resultFilePathFile.exists()) {
  390. resultFilePathFile.createNewFile();
  391. }
  392. String fileDownloadUrlnew = fileDownloadUrl.substring(1, fileDownloadUrl.length() - 1);
  393. boolean downLoadFile = FileTransformation.downLoadFileByUrl(fileDownloadUrlnew, resultFilePath);
  394. if (downLoadFile) {
  395. Long caseAppliId = sealSignRecord.getCaseAppliId();
  396. MsCaseAttach caseAttach = new MsCaseAttach();
  397. caseAttach.setCaseAppliId(caseAppliId);
  398. caseAttach.setAnnexType(7);
  399. caseAttach.setAnnexPath(savePath);
  400. caseAttach.setAnnexName(saveName);
  401. caseAttachMapper.updateCaseAttachBycaseid(caseAttach);
  402. }
  403. }
  404. }
  405. }
  406. }
  407. }
  408. }
  409. }
  410. } catch (EsignDemoException | IOException e) {
  411. e.printStackTrace();
  412. }
  413. }
  414. }