排队等待数量统计有误修复

This commit is contained in:
2024-10-24 10:37:14 +08:00
parent ec33f869e2
commit 60e4a223cf

View File

@@ -136,6 +136,7 @@ public class TbCallServiceImpl implements TbCallService {
Integer count = callQueueService.lambdaQuery()
.eq(TbCallQueue::getCallTableId, item.getId())
.eq(TbCallQueue::getShopId, shopId)
.eq(TbCallQueue::getCreateDay, DateUtil.date().toString("yyyy-MM-dd"))
.in(TbCallQueue::getState, 0, 1).count();
map.put("waitingCount", count);
map.put("waitTime", count * item.getWaitTime());