后厨单

This commit is contained in:
2026-05-13 09:02:15 +08:00
parent 976f4ad1c4
commit 451c880d71
2 changed files with 5 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ public class OrderInfoPrintDTO implements Serializable {
/**
* 1 预结算单
* 2 结算单
* 3 后厨单
*/
@NotNull(message = "打印类型不为空")
private Integer type;

View File

@@ -1605,6 +1605,10 @@ public class OrderInfoCustomServiceImpl implements OrderInfoCustomService {
case 2://结算单
printConfig.orderHandler(orderInfo.getId(), PrinterHandler.PrintTypeEnum.ORDER, null);
break;
case 3://后厨单
printConfig.orderHandler(orderInfo.getId(), PrinterHandler.PrintTypeEnum.ALL_KITCHEN, null);
printConfig.orderHandler(orderInfo.getId(), PrinterHandler.PrintTypeEnum.ONLY_KITCHEN, null);
break;
}
return true;
}