叫号列表查询条件修改,取消顺延功能
This commit is contained in:
parent
1e09c75ea0
commit
0a14ecdf16
|
|
@ -263,7 +263,7 @@ public class TbCallServiceImpl implements TbCallService {
|
|||
|
||||
wxMiniUtils.sendCurrentOrNearCallMsg(shopInfo.getShopName(), getStrByState(Integer.valueOf(callQueue.getState())),
|
||||
callQueue.getCallNum(), current.isEmpty() ? "" : current.get(0).getCallNum(), "排号信息", callQueue.getOpenId(), false);
|
||||
boolean flag = callQueueService.updateById(callQueue);
|
||||
callQueueService.updateById(callQueue);
|
||||
|
||||
TbCallConfig config = getConfig(callQueueDTO.getShopId());
|
||||
// 临近用户提醒
|
||||
|
|
@ -346,8 +346,8 @@ public class TbCallServiceImpl implements TbCallService {
|
|||
Byte isPostpone = callTable.getIsPostpone();
|
||||
Integer postponeNum = callTable.getPostponeNum();
|
||||
|
||||
// 判断是否需要顺延
|
||||
if (callQueue.getIsPostpone() == 0 && isPostpone != null && isPostpone == 1 && postponeNum != null && postponeNum > 0) {
|
||||
// 判断是否需要顺延, 暂时注释
|
||||
if (false && callQueue.getIsPostpone() == 0 && isPostpone != null && isPostpone == 1 && postponeNum != null && postponeNum > 0) {
|
||||
// 查询当前桌以及顺延桌数
|
||||
List<TbCallQueue> current = callQueueService.lambdaQuery()
|
||||
.eq(TbCallQueue::getCallTableId, callQueue.getCallTableId())
|
||||
|
|
@ -435,7 +435,7 @@ public class TbCallServiceImpl implements TbCallService {
|
|||
LambdaQueryChainWrapper<TbCallQueue> q = callQueueService.lambdaQuery()
|
||||
.eq(TbCallQueue::getCallTableId, item.getId())
|
||||
.eq(TbCallQueue::getShopId, shopId)
|
||||
.ne(TbCallQueue::getIsPostpone, 2)
|
||||
.notIn(TbCallQueue::getIsPostpone, 1, 2)
|
||||
.eq(TbCallQueue::getCreateDay, DateUtil.today())
|
||||
.in(TbCallQueue::getState, 0, 1, 3);
|
||||
Long count = q.count();
|
||||
|
|
@ -563,4 +563,5 @@ public class TbCallServiceImpl implements TbCallService {
|
|||
tbCallConfig.setUpdateTime(DateUtil.date().toInstant());
|
||||
return tbCallConfigService.updateById(tbCallConfig);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue