From f1e9d0f4cf051b4f9b8d0ec4ea17de162fe299a4 Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Sat, 17 Jan 2026 15:25:05 +0800 Subject: [PATCH] =?UTF-8?q?bacn=20scan=20=E6=89=93=E5=8D=B0=E4=B8=A4?= =?UTF-8?q?=E6=AC=A1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../order/service/impl/OrderInfoCustomServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/OrderInfoCustomServiceImpl.java b/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/OrderInfoCustomServiceImpl.java index aa12839b6..d2582f862 100644 --- a/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/OrderInfoCustomServiceImpl.java +++ b/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/OrderInfoCustomServiceImpl.java @@ -1227,7 +1227,7 @@ public class OrderInfoCustomServiceImpl implements OrderInfoCustomService { if (StrUtil.isNotBlank(orderInfo.getTableCode())) { ThreadUtil.execAsync(() -> exTable(orderInfo)); } - if (payType == PayEnums.BACK_SCAN) { + if (payType != PayEnums.BACK_SCAN) { // 事务成功提交后执行消息发送 String printParam = orderId + "_" + (!"after-pay".equals(payMode) ? 1 : 0) + "_1"; rabbitPublisher.sendOrderPrintMsg(printParam, isPrint, "事务环境打印"); @@ -1236,7 +1236,7 @@ public class OrderInfoCustomServiceImpl implements OrderInfoCustomService { } }); } else { - if (payType == PayEnums.BACK_SCAN) { + if (payType != PayEnums.BACK_SCAN) { // 非事务环境下直接发送(兼容无事务场景) String printParam = orderId + "_" + (!"after-pay".equals(payMode) ? 1 : 0) + "_1"; rabbitPublisher.sendOrderPrintMsg(printParam, isPrint, "非事务环境打印");