排队桌型列表状态增加筛选

This commit is contained in:
2024-09-14 17:22:09 +08:00
parent 5351be915c
commit 04c83a5213

View File

@@ -368,6 +368,8 @@ public class TbCallServiceImpl implements TbCallService {
.in(TbCallQueue::getCallTableId, tableIds); .in(TbCallQueue::getCallTableId, tableIds);
if (state != null) { if (state != null) {
query.eq(TbCallQueue::getState, state); query.eq(TbCallQueue::getState, state);
}else {
query.in(TbCallQueue::getState, 0, 1);
} }
Page<TbCallQueue> pageInfo = query Page<TbCallQueue> pageInfo = query
.orderByAsc(TbCallQueue::getCreateTime) .orderByAsc(TbCallQueue::getCreateTime)