1.排队取号 取消接口修改

This commit is contained in:
2024-09-14 17:28:26 +08:00
parent 7e408d7281
commit 17d8dd01ca

View File

@@ -9,6 +9,7 @@ import com.chaozhanggui.system.cashierservice.entity.TbCallTable;
import com.chaozhanggui.system.cashierservice.entity.TbShopInfo;
import com.chaozhanggui.system.cashierservice.entity.dto.CancelCallQueueDTO;
import com.chaozhanggui.system.cashierservice.entity.dto.TakeNumberDTO;
import com.chaozhanggui.system.cashierservice.entity.vo.CallQueueInfoVO;
import com.chaozhanggui.system.cashierservice.exception.MsgException;
import com.chaozhanggui.system.cashierservice.mapper.TbCallQueueMapper;
import com.chaozhanggui.system.cashierservice.redis.RedisCst;
@@ -21,6 +22,7 @@ import org.springframework.context.annotation.Primary;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.concurrent.atomic.AtomicReference;
@Service
@@ -118,10 +120,7 @@ public class TbCallServiceImpl implements TbCallService {
@Override
public Object getState(String openId, Integer shopId) {
return callQueueService.lambdaQuery()
.eq(TbCallQueue::getOpenId, openId)
.eq(TbCallQueue::getCreateDay, DateUtil.today())
.eq(TbCallQueue::getShopId, shopId)
.one();
List<CallQueueInfoVO> callQueueInfoVOS = callQueueMapper.selectInfoByOpenId(shopId, openId, DateUtil.today());
return callQueueInfoVOS.isEmpty() ? null : callQueueInfoVOS.get(0);
}
}