排队取号保存号码

This commit is contained in:
SongZhang 2024-09-13 15:24:11 +08:00
parent a73530df84
commit 67af4f1463
1 changed files with 1 additions and 0 deletions

View File

@ -140,6 +140,7 @@ public class TbCallServiceImpl implements TbCallService {
callQueue = callQueueService.lambdaQuery()
.eq(TbCallQueue::getUserId, shopUser.getId())
.eq(TbCallQueue::getShopId, takeNumberDTO.getShopId())
.in(TbCallQueue::getState, 0, 1)
.eq(TbCallQueue::getCallTableId, takeNumberDTO.getCallTableId()).one();
if (callQueue != null) {
throw new BadRequestException("当前用户已取号");