同一次下单的菜品,只播报一次
This commit is contained in:
@@ -141,9 +141,13 @@ public class PrintConfig implements ApplicationRunner {
|
||||
}
|
||||
log.info("准备开始打印菜品单");
|
||||
//后厨单菜品
|
||||
boolean isNotice = true;
|
||||
tbOrderDetailList.forEach(item -> {
|
||||
Boolean b = redisService.hasKey(RedisCst.kitchenOnly(orderInfo.getId(), machine.getId(), item.getId()));
|
||||
if (!b) {
|
||||
if (!isNotice) {
|
||||
machine.setVolumeSwitch(0);
|
||||
}
|
||||
FunUtils.safeRunVoid(() -> printer.onlyKitchenPrint(orderInfo, item, machine),
|
||||
"订单id:{} ,后厨分单打印失败", orderInfo.getId());
|
||||
// 保存已打印信息
|
||||
|
||||
Reference in New Issue
Block a user