|
|
@@ -411,7 +411,7 @@ public class MsSignSealServiceImpl implements MsSignSealService {
|
|
411
|
411
|
application.setCaseFlowId(nextFlow.getId());
|
|
412
|
412
|
application.setCaseStatusName(nextFlow.getCaseStatusName());
|
|
413
|
413
|
caseApplicationMapper.updateByPrimaryKeySelective(application);
|
|
414
|
|
- CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"用印申请");
|
|
|
414
|
+ CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),null);
|
|
415
|
415
|
}
|
|
416
|
416
|
} else {
|
|
417
|
417
|
// 单独
|
|
|
@@ -421,7 +421,7 @@ public class MsSignSealServiceImpl implements MsSignSealService {
|
|
421
|
421
|
application.setCaseFlowId(nextFlow.getId());
|
|
422
|
422
|
application.setCaseStatusName(nextFlow.getCaseStatusName());
|
|
423
|
423
|
caseApplicationMapper.updateByPrimaryKeySelective(application);
|
|
424
|
|
- CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"用印申请");
|
|
|
424
|
+ CaseLogUtils.insertCaseLog(application.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),null);
|
|
425
|
425
|
}
|
|
426
|
426
|
return AjaxResult.success("用印申请成功");
|
|
427
|
427
|
|
|
|
@@ -786,7 +786,7 @@ public class MsSignSealServiceImpl implements MsSignSealService {
|
|
786
|
786
|
caseApplicationselect.setCaseFlowId(nextFlow.getId());
|
|
787
|
787
|
caseApplicationselect.setCaseStatusName(nextFlow.getCaseStatusName());
|
|
788
|
788
|
caseApplicationMapper.updateByPrimaryKeySelective(caseApplicationselect);
|
|
789
|
|
- CaseLogUtils.insertCaseLog(caseApplicationselect.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"签收");
|
|
|
789
|
+ CaseLogUtils.insertCaseLog(caseApplicationselect.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),null);
|
|
790
|
790
|
}
|
|
791
|
791
|
// if (dto.getIsSignRespon() != null && dto.getIsSignRespon().intValue() == 1) {
|
|
792
|
792
|
// caseAffiliate.setIsSignRespon(1);
|
|
|
@@ -810,7 +810,7 @@ public class MsSignSealServiceImpl implements MsSignSealService {
|
|
810
|
810
|
caseApplicationselect.setCaseFlowId(nextFlow.getId());
|
|
811
|
811
|
caseApplicationselect.setCaseStatusName(nextFlow.getCaseStatusName());
|
|
812
|
812
|
caseApplicationMapper.updateByPrimaryKeySelective(caseApplicationselect);
|
|
813
|
|
- CaseLogUtils.insertCaseLog(caseApplicationselect.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"签收");
|
|
|
813
|
+ CaseLogUtils.insertCaseLog(caseApplicationselect.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),null);
|
|
814
|
814
|
}
|
|
815
|
815
|
|
|
816
|
816
|
return AjaxResult.success("签收成功");
|
|
|
@@ -1056,8 +1056,6 @@ public class MsSignSealServiceImpl implements MsSignSealService {
|
|
1056
|
1056
|
MsCaseFlow currentFlow = caseFlowMapper.selectByPrimaryKey(caseApplicationselect.getCaseFlowId());
|
|
1057
|
1057
|
Integer caseNode = currentFlow.getNodeId();
|
|
1058
|
1058
|
String caseStatusName = currentFlow.getCaseStatusName();
|
|
1059
|
|
-
|
|
1060
|
|
-
|
|
1061
|
1059
|
if("SIGN_MISSON_COMPLETE".equals(action) && signResult==2){
|
|
1062
|
1060
|
if(mediaResult.intValue()==1){
|
|
1063
|
1061
|
//调解
|
|
|
@@ -1344,6 +1342,86 @@ public class MsSignSealServiceImpl implements MsSignSealService {
|
|
1344
|
1342
|
return AjaxResult.success("success");
|
|
1345
|
1343
|
}
|
|
1346
|
1344
|
|
|
|
1345
|
+ @Override
|
|
|
1346
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
1347
|
+ public AjaxResult sealCheckCallback(String reqbodystr) throws EsignDemoException, IOException {
|
|
|
1348
|
+ JSONObject jsonObjectCallback = JSONObject.parseObject(reqbodystr);
|
|
|
1349
|
+ Gson gson = new Gson();
|
|
|
1350
|
+ if (jsonObjectCallback != null) {
|
|
|
1351
|
+ int auditStatus = jsonObjectCallback.getIntValue("auditStatus");
|
|
|
1352
|
+ String action = jsonObjectCallback.getString("action");
|
|
|
1353
|
+ String orgId = jsonObjectCallback.getString("orgId");
|
|
|
1354
|
+ String sealId = jsonObjectCallback.getString("sealId");
|
|
|
1355
|
+
|
|
|
1356
|
+ SealManage sealManage = new SealManage();
|
|
|
1357
|
+ DeptIdentify deptIdentify1 = new DeptIdentify();
|
|
|
1358
|
+ deptIdentify1.setOrgId(orgId);
|
|
|
1359
|
+ List<DeptIdentify> deptIdentifies = deptIdentifyMapper.selectDeptIdentify(deptIdentify1);
|
|
|
1360
|
+ if (deptIdentifies != null && deptIdentifies.size() > 0) {
|
|
|
1361
|
+ Long iddeptIdent = deptIdentifies.get(0).getId();
|
|
|
1362
|
+ SealManage sealManageSel = new SealManage();
|
|
|
1363
|
+ sealManageSel.setIdentifyId(iddeptIdent);
|
|
|
1364
|
+ sealManageSel.setSealId(sealId);
|
|
|
1365
|
+ List<String> sealIdList = new ArrayList<>();
|
|
|
1366
|
+ List<SealManage> selectSealList = sealManageMapper.selectSealList(sealManageSel);
|
|
|
1367
|
+ if (selectSealList != null && selectSealList.size() > 0) {
|
|
|
1368
|
+ sealManage = selectSealList.get(0);
|
|
|
1369
|
+ }
|
|
|
1370
|
+ }
|
|
|
1371
|
+
|
|
|
1372
|
+ if("SEAL_AUDIT".equals(action) && auditStatus==1){
|
|
|
1373
|
+ EsignHttpResponse response = SignAward.getOrgSeal(orgId, sealId);
|
|
|
1374
|
+ JSONObject jsonObject = JSONObject.parseObject(response.getBody());
|
|
|
1375
|
+ int code = jsonObject.getIntValue("code");
|
|
|
1376
|
+ if (code == 0) {
|
|
|
1377
|
+ JSONObject data = jsonObject.getJSONObject("data");
|
|
|
1378
|
+ int sealStatus = data.getIntValue("sealStatus");
|
|
|
1379
|
+ if (sealStatus == 1) {//印章状态 1已启用,2待审核,3审核不通过,4 挂起
|
|
|
1380
|
+ //已启用证明审核通过,下载到数据库
|
|
|
1381
|
+ String sealImageDownloadUrl = data.getString("sealImageDownloadUrl");
|
|
|
1382
|
+ LocalDate now = LocalDate.now();
|
|
|
1383
|
+ String year = Integer.toString(now.getYear());
|
|
|
1384
|
+ String month = String.format("%02d", now.getMonthValue());
|
|
|
1385
|
+ String day = String.format("%02d", now.getDayOfMonth());
|
|
|
1386
|
+ String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
|
|
|
1387
|
+ String fileName = UUID.randomUUID().toString().replace("-", "") + ".jpg";
|
|
|
1388
|
+ String saveName = "/profile/upload/" + year + "/" + month + "/" + day + "/" + fileName;
|
|
|
1389
|
+ String savePath = "/home/ruoyi/uploadPath/upload/";
|
|
|
1390
|
+ // 创建日期目录
|
|
|
1391
|
+ File saveFolder = new File(saveFolderPath);
|
|
|
1392
|
+ if (!saveFolder.exists()) {
|
|
|
1393
|
+ saveFolder.mkdirs();
|
|
|
1394
|
+ }
|
|
|
1395
|
+ String resultFilePath = saveFolderPath + "/" + fileName;
|
|
|
1396
|
+ File resultFilePathFile = new File(resultFilePath);
|
|
|
1397
|
+ if (!resultFilePathFile.exists()) {
|
|
|
1398
|
+ resultFilePathFile.createNewFile();
|
|
|
1399
|
+ }
|
|
|
1400
|
+ boolean downLoadFile = FileTransformation.downLoadFileByUrl(sealImageDownloadUrl, resultFilePath);
|
|
|
1401
|
+ if (downLoadFile) {
|
|
|
1402
|
+ MsCaseAttach caseAttach = new MsCaseAttach();
|
|
|
1403
|
+ caseAttach.setAnnexType(AnnexTypeEnum.SEAL_PICTURE.getCode()); //10代表印章图片
|
|
|
1404
|
+ caseAttach.setAnnexPath(savePath);
|
|
|
1405
|
+ caseAttach.setAnnexName(saveName);
|
|
|
1406
|
+ int i1 = caseAttachMapper.save(caseAttach);
|
|
|
1407
|
+ if (i1 > 0) {
|
|
|
1408
|
+ //将附件id保存到公章管理表里
|
|
|
1409
|
+ Long annexId1 = caseAttach.getAnnexId();
|
|
|
1410
|
+ sealManage.setAnnexId(annexId1);
|
|
|
1411
|
+ sealManage.setSealStatus(1);
|
|
|
1412
|
+ sealManage.setIsUse(0);
|
|
|
1413
|
+ sealManageMapper.updateSealManage(sealManage);
|
|
|
1414
|
+ }
|
|
|
1415
|
+ }
|
|
|
1416
|
+ }
|
|
|
1417
|
+ }
|
|
|
1418
|
+ }
|
|
|
1419
|
+ }else{
|
|
|
1420
|
+ return AjaxResult.error("error");
|
|
|
1421
|
+ }
|
|
|
1422
|
+ return AjaxResult.success("success");
|
|
|
1423
|
+ }
|
|
|
1424
|
+
|
|
1347
|
1425
|
/**
|
|
1348
|
1426
|
* 通过邮件发送裁决书文件
|
|
1349
|
1427
|
*
|