打印查询修改

This commit is contained in:
张松 2025-03-26 12:54:14 +08:00
parent d3a27a8b76
commit d0b932616f
1 changed files with 11 additions and 1 deletions

View File

@ -149,8 +149,18 @@ public abstract class PrinterHandler {
.eq(PrintMachine::getShopId, shopId)
.eq(PrintMachine::getSubType, subType)
.eq(PrintMachine::getConnectionType, "网络");
if (StrUtil.isNotEmpty(printMethod)) {
wrapper.in(PrintMachine::getPrintMethod, Arrays.asList(printMethod, "all"));
if ("one".equals(printMethod)) {
wrapper.in(PrintMachine::getPrintMethod, Arrays.asList("one", "all"));
}
if ("all".equals(printMethod)) {
wrapper.in(PrintMachine::getPrintMethod, Arrays.asList("one", "normal", "all"));
}
if ("normal".equals(printMethod)) {
wrapper.in(PrintMachine::getPrintMethod, Arrays.asList("normal", "all"));
}
}
if ("callTicket".equals(printType)) {
printType = "queue";