结算单问题

This commit is contained in:
2026-04-17 15:28:20 +08:00
parent f14dd5ed4e
commit 6d2227df57
2 changed files with 2 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ public class PrintMqListener {
//该字段表示 网络打印机是否打印订单 本地传参来的
Boolean printOrder = jsonObject.getBoolean("printOrder");
redisService.runFunAndCheckKey(() -> {
if (printOrder) {
if (printOrder && orderStatus == 1) {
printConfig.orderHandler(orderId, PrinterHandler.PrintTypeEnum.ORDER, null);
}
if (payType == 1 || orderStatus == 0) {

View File

@@ -61,7 +61,7 @@ public class RabbitPublisher {
*/
public void sendOrderPrintMsg(Long orderId, Integer before, Integer status, Integer placeNum, boolean printOrder, String source) {
log.info("开始发送订单打印消息, orderId: {}, {}, : {}, 第: {}次下单, 通知本地: {}, source: {}",
orderId, before==0?"后付":"先付", status==0?"未完成":"完成", placeNum, printOrder, source);
orderId, before == 0 ? "后付" : "先付", status == 0 ? "未完成" : "完成", placeNum, printOrder, source);
log.info("订单打印消息, orderId: {}, printOrder: {}, source: {}", orderId, printOrder, source);
String sendOrderId = orderId + "_" + before + "_" + status + "_" + placeNum;
//本地打印机 消息通知