排队桌型列表修改

This commit is contained in:
SongZhang 2024-09-14 16:40:28 +08:00
parent 2ff0216f68
commit 14352a6d7b
1 changed files with 7 additions and 4 deletions

View File

@ -307,11 +307,14 @@ public class TbCallServiceImpl implements TbCallService {
Page<TbCallTable> pageInfo = callTableService.page(new Page<>(page, size), query);
ArrayList<Map<String, Object>> info = new ArrayList<>();
pageInfo.getRecords().forEach(item -> {
Long count = callQueueService.lambdaQuery()
.eq(TbCallQueue::getCallTableId, item.getId())
LambdaQueryChainWrapper<TbCallQueue> q = callQueueService.lambdaQuery()
.eq(TbCallQueue::getCreateDay, DateUtil.today())
.in(TbCallQueue::getState, 0, 1)
.count();
.in(TbCallQueue::getState, 0, 1);
if (state == null) {
q.eq(TbCallQueue::getCallTableId, item.getId());
}
Long count = q.count();
Map<String, Object> map = BeanUtil.beanToMap(item, false, false);
map.put("totalCount", count);