From 7a55f0301908689cbe15e0cafe08b2a3a3821558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B7=AF=E6=98=8E=E6=85=A7?= <1191093413@qq.com> Date: Tue, 28 Nov 2023 12:56:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=9D=9Esap=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E4=BF=A1=E6=81=AF=E9=94=99=E8=AF=AF=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=8E=A8=E9=80=81=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manager/service/impl/PushInvoiceServiceImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/manager/service/impl/PushInvoiceServiceImpl.java b/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/manager/service/impl/PushInvoiceServiceImpl.java index 8ed70820..03ce40b5 100644 --- a/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/manager/service/impl/PushInvoiceServiceImpl.java +++ b/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/manager/service/impl/PushInvoiceServiceImpl.java @@ -513,6 +513,11 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { // if (param.length() > 500) { // param = param.substring(0, 400); // } + + if (!"SAP".equalsIgnoreCase(pushInfo.getByzd1())){ + log.debug("************非sap推送信息跳过************"); + continue; + } log.info("{}推送企业开始,推送企业url:{},用户:{},密码:{},推送参数:{}", LOGGER_MSG, pushInfo.getPushUrl(),baseServiceConfig.getPoUserName(),baseServiceConfig.getPoPassword(), fptsParam); long startTime = System.currentTimeMillis(); String result = ""; @@ -617,6 +622,7 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { processPushSuccess(fpTsMqData, s, pushInfo.getVersionIdent()); successPush(null,JsonUtils.getInstance().toJsonString(fpTsMqData),s,pushInfo,fpTsMqData.getPushType()); + sendPushDelay = false; } else { String error=String.format("推送数据返回的状态结果为失败,信息为:%s",dxhyInterfaceResponse.getReturnMessage()); log.error(error); @@ -753,6 +759,7 @@ public class PushInvoiceServiceImpl implements PushInvoiceService { } catch (Exception e) { String error=String.format("影像系统推送数据异常,%s ,推送类型为%s",e.getMessage(),pushType); log.error(error); + log.error("打印堆栈信息{}",e); e.printStackTrace(); failPush(id,content,error,e.getMessage(),pushInfo1,pushType); return;