消息日志

结算单打印 不管前端打不打
This commit is contained in:
2026-04-17 15:35:35 +08:00
parent 6d2227df57
commit 328821e5b8
2 changed files with 3 additions and 5 deletions

View File

@@ -66,7 +66,6 @@ public class PrintMqListener {
if (StrUtil.isBlank(orderIdStr)) {
throw new RuntimeException("订单打印失败未传递orderId");
}
String[] split = orderIdStr.split("_");
if (split.length < 3) {
throw new CzgException("订单ID格式不正确" + orderIdStr);
@@ -78,9 +77,9 @@ public class PrintMqListener {
//订单状态 0未完成/1完成
Integer orderStatus = Integer.parseInt(split[2]);
//该字段表示 网络打印机是否打印订单 本地传参来的
Boolean printOrder = jsonObject.getBoolean("printOrder");
// Boolean printOrder = jsonObject.getBoolean("printOrder");
redisService.runFunAndCheckKey(() -> {
if (printOrder && orderStatus == 1) {
if (orderStatus == 1) {
printConfig.orderHandler(orderId, PrinterHandler.PrintTypeEnum.ORDER, null);
}
if (payType == 1 || orderStatus == 0) {