退菜单 播放
This commit is contained in:
@@ -101,7 +101,7 @@ public class FeiPrinter extends PrinterHandler implements PrinterImpl {
|
||||
OrderInfo orderInfo, PrintMachine machine, List<OrderDetail> detailList) {
|
||||
OrderPrintDTO orderPrintDTO = super.returnOrderPrint(printTitle, operator, refundAmount, refundReason, refundType, orderInfo, machine, detailList);
|
||||
String data = buildRefundOrderPrintData(orderPrintDTO, detailList);
|
||||
sendOrderPrint(data, orderInfo.getId(), machine, "退款单");
|
||||
sendOrderPrint(data, orderInfo.getId(), machine, printTitle);
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -213,6 +213,9 @@ public class FeiPrinter extends PrinterHandler implements PrinterImpl {
|
||||
String voiceJson = "{\"bizType\":\"2\",\"content\":\"\"}";
|
||||
if (1 == machine.getVolumeSwitch()) {
|
||||
voiceJson = "{\"bizType\":\"2\",\"content\":\"您有一笔新的订单,请及时处理\"}";
|
||||
if(bizType.contains("退")){
|
||||
voiceJson = "{\"bizType\":\"2\",\"content\":\"有客人退菜了,请注意查看\"}";
|
||||
}
|
||||
}
|
||||
String resp = sendPrintRequest(machine.getAddress(), data, voiceJson, machine.getPrintNum() == null ? "1" : machine.getPrintNum().toString());
|
||||
printMachineLogService.save(orderId, machine, bizType, data, resp);
|
||||
|
||||
Reference in New Issue
Block a user