bacn scan 打印两次问题
This commit is contained in:
@@ -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, "非事务环境打印");
|
||||
|
||||
Reference in New Issue
Block a user