排队桌型列表修改
This commit is contained in:
parent
2ff0216f68
commit
14352a6d7b
|
|
@ -307,11 +307,14 @@ public class TbCallServiceImpl implements TbCallService {
|
||||||
Page<TbCallTable> pageInfo = callTableService.page(new Page<>(page, size), query);
|
Page<TbCallTable> pageInfo = callTableService.page(new Page<>(page, size), query);
|
||||||
ArrayList<Map<String, Object>> info = new ArrayList<>();
|
ArrayList<Map<String, Object>> info = new ArrayList<>();
|
||||||
pageInfo.getRecords().forEach(item -> {
|
pageInfo.getRecords().forEach(item -> {
|
||||||
Long count = callQueueService.lambdaQuery()
|
LambdaQueryChainWrapper<TbCallQueue> q = callQueueService.lambdaQuery()
|
||||||
.eq(TbCallQueue::getCallTableId, item.getId())
|
|
||||||
.eq(TbCallQueue::getCreateDay, DateUtil.today())
|
.eq(TbCallQueue::getCreateDay, DateUtil.today())
|
||||||
.in(TbCallQueue::getState, 0, 1)
|
.in(TbCallQueue::getState, 0, 1);
|
||||||
.count();
|
if (state == null) {
|
||||||
|
q.eq(TbCallQueue::getCallTableId, item.getId());
|
||||||
|
|
||||||
|
}
|
||||||
|
Long count = q.count();
|
||||||
|
|
||||||
Map<String, Object> map = BeanUtil.beanToMap(item, false, false);
|
Map<String, Object> map = BeanUtil.beanToMap(item, false, false);
|
||||||
map.put("totalCount", count);
|
map.put("totalCount", count);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue