退菜单 播放 云想印
This commit is contained in:
@@ -208,6 +208,9 @@ public class YxyPrinter extends PrinterHandler implements PrinterImpl {
|
|||||||
String voiceJson = "{\"bizType\":\"2\",\"content\":\"\"}";
|
String voiceJson = "{\"bizType\":\"2\",\"content\":\"\"}";
|
||||||
if (1 == machine.getVolumeSwitch()) {
|
if (1 == machine.getVolumeSwitch()) {
|
||||||
voiceJson = "{\"bizType\":\"2\",\"content\":\"您有一笔新的订单,请及时处理\"}";
|
voiceJson = "{\"bizType\":\"2\",\"content\":\"您有一笔新的订单,请及时处理\"}";
|
||||||
|
if ("退菜单".equals(bizType) || "退款单".equals(bizType)) {
|
||||||
|
voiceJson = "{\"bizType\":\"2\",\"content\":\"有客人退菜了,请注意查看\"}";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
String resp = sendPrintRequest(machine.getAddress(), data, voiceJson, machine.getPrintNum() == null ? "1" : machine.getPrintNum().toString());
|
String resp = sendPrintRequest(machine.getAddress(), data, voiceJson, machine.getPrintNum() == null ? "1" : machine.getPrintNum().toString());
|
||||||
printMachineLogService.save(orderId, machine, bizType, data, resp);
|
printMachineLogService.save(orderId, machine, bizType, data, resp);
|
||||||
|
|||||||
Reference in New Issue
Block a user