|
@@ -525,7 +525,7 @@ public class ReceiveNoticeServiceImpl implements ReceiveNoticeService {
|
525
|
525
|
receiveNotice.setLdshr(userId+"");
|
526
|
526
|
businessApproval.setTaskName("库领导审批");//任务名称
|
527
|
527
|
}
|
528
|
|
-
|
|
528
|
+
|
529
|
529
|
//修改本条数据
|
530
|
530
|
businessNoticeReceiveMapper.updateByPrimaryKeySelective(receiveNotice);
|
531
|
531
|
|
|
@@ -533,14 +533,38 @@ public class ReceiveNoticeServiceImpl implements ReceiveNoticeService {
|
533
|
533
|
//增加审批表数据
|
534
|
534
|
businessApprovalService.add(businessApproval);
|
535
|
535
|
|
536
|
|
- System.out.println("5".equals(receiveNotice.getAuditState().toString()));
|
537
|
|
- System.out.println("1".equals(receiveNotice.getIsNotice().toString()));
|
538
|
|
- System.out.println("0".equals(receiveNotice.getIsSheet().toString()));
|
539
|
|
- System.out.println("1".equals(receiveNotice.getCrktype()));
|
540
|
536
|
//必须是入库,库级和市级都审批完成,并且不是通知单,只是性质转变单
|
541
|
537
|
if ("5".equals(receiveNotice.getAuditState().toString()) && "1".equals(receiveNotice.getIsNotice().toString()) && "0".equals(receiveNotice.getIsSheet().toString()) && "1".equals(receiveNotice.getCrktype())) {
|
542
|
538
|
//转储成功后把信息给市平台
|
543
|
|
- retSptMeagess(receiveNotice);
|
|
539
|
+ //retSptMeagess(receiveNotice);
|
|
540
|
+ try {
|
|
541
|
+ Map<String, Object> sysCodeMap = new HashMap<>();
|
|
542
|
+ sysCodeMap.put("orgId", 10);
|
|
543
|
+ sysCodeMap.put("sCode", "xzzzxxts");
|
|
544
|
+ Map<String, Object> resultMap = businessNoticeReceiveMapper.getSysCodeUrl(sysCodeMap);
|
|
545
|
+ String path = "";
|
|
546
|
+ if (null != resultMap) {
|
|
547
|
+ path = resultMap.get("s_val").toString();
|
|
548
|
+ }
|
|
549
|
+ if (null != receiveNotice.getCblx() && null != receiveNotice.getYsid()) {
|
|
550
|
+
|
|
551
|
+ //组装请求参数
|
|
552
|
+ Map<String, String> params = new HashMap<>();
|
|
553
|
+ params.put("crklx", receiveNotice.getCblx());
|
|
554
|
+ params.put("ysid", receiveNotice.getYsid());
|
|
555
|
+
|
|
556
|
+ logger.info("给给市平台发送性质转变成功通知信息:"+params.toString());
|
|
557
|
+ logger.info("给给市平台发送性质转变成功通知信息地址是:"+path);
|
|
558
|
+
|
|
559
|
+ //给市平台发送请求
|
|
560
|
+ String result = HTTPUtils.doPost(path, params);
|
|
561
|
+
|
|
562
|
+ //保存推送合同引用状态的消息和返回结果
|
|
563
|
+ systemOutsideDataService.addlogger("xzzzxx_result", params.toString(), result);
|
|
564
|
+ }
|
|
565
|
+ } catch (Exception e) {
|
|
566
|
+ e.printStackTrace();
|
|
567
|
+ }
|
544
|
568
|
}
|
545
|
569
|
}
|
546
|
570
|
|
|
@@ -560,21 +584,28 @@ public class ReceiveNoticeServiceImpl implements ReceiveNoticeService {
|
560
|
584
|
String result = "";
|
561
|
585
|
|
562
|
586
|
//获取请求的URL地址
|
563
|
|
- String path;
|
564
|
587
|
try {
|
565
|
|
- path = sysCodeService.getSVal(10, "xzzzxxts");
|
|
588
|
+ Map<String, Object> sysCodeMap = new HashMap<>();
|
|
589
|
+ sysCodeMap.put("orgId", 10);
|
|
590
|
+ sysCodeMap.put("sCode", "xzzzxxts");
|
|
591
|
+ Map<String, Object> resultMap = businessNoticeReceiveMapper.getSysCodeUrl(sysCodeMap);
|
|
592
|
+ String path = "";
|
|
593
|
+ if (null != resultMap) {
|
|
594
|
+ path = resultMap.get("s_val").toString();
|
|
595
|
+ }
|
566
|
596
|
if (null != receiveNotice.getCblx() && null != receiveNotice.getYsid()) {
|
567
|
|
-
|
|
597
|
+
|
568
|
598
|
//组装请求参数
|
569
|
599
|
Map<String, String> params = new HashMap<>();
|
570
|
600
|
params.put("crklx", receiveNotice.getCblx());
|
571
|
601
|
params.put("ysid", receiveNotice.getYsid());
|
572
|
|
-
|
|
602
|
+
|
573
|
603
|
logger.info("给给市平台发送性质转变成功通知信息:"+params.toString());
|
574
|
|
-
|
|
604
|
+ logger.info("给给市平台发送性质转变成功通知信息地址是:"+path);
|
|
605
|
+
|
575
|
606
|
//给市平台发送请求
|
576
|
607
|
result = HTTPUtils.doPost(path, params);
|
577
|
|
-
|
|
608
|
+
|
578
|
609
|
//保存推送合同引用状态的消息和返回结果
|
579
|
610
|
systemOutsideDataService.addlogger("xzzzxx_result", params.toString(), result);
|
580
|
611
|
}
|