1.排队取号 取消接口修改
This commit is contained in:
@@ -9,6 +9,7 @@ import com.chaozhanggui.system.cashierservice.entity.TbCallTable;
|
|||||||
import com.chaozhanggui.system.cashierservice.entity.TbShopInfo;
|
import com.chaozhanggui.system.cashierservice.entity.TbShopInfo;
|
||||||
import com.chaozhanggui.system.cashierservice.entity.dto.CancelCallQueueDTO;
|
import com.chaozhanggui.system.cashierservice.entity.dto.CancelCallQueueDTO;
|
||||||
import com.chaozhanggui.system.cashierservice.entity.dto.TakeNumberDTO;
|
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.exception.MsgException;
|
||||||
import com.chaozhanggui.system.cashierservice.mapper.TbCallQueueMapper;
|
import com.chaozhanggui.system.cashierservice.mapper.TbCallQueueMapper;
|
||||||
import com.chaozhanggui.system.cashierservice.redis.RedisCst;
|
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.data.redis.core.StringRedisTemplate;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
import java.util.concurrent.atomic.AtomicReference;
|
import java.util.concurrent.atomic.AtomicReference;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@@ -118,10 +120,7 @@ public class TbCallServiceImpl implements TbCallService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object getState(String openId, Integer shopId) {
|
public Object getState(String openId, Integer shopId) {
|
||||||
return callQueueService.lambdaQuery()
|
List<CallQueueInfoVO> callQueueInfoVOS = callQueueMapper.selectInfoByOpenId(shopId, openId, DateUtil.today());
|
||||||
.eq(TbCallQueue::getOpenId, openId)
|
return callQueueInfoVOS.isEmpty() ? null : callQueueInfoVOS.get(0);
|
||||||
.eq(TbCallQueue::getCreateDay, DateUtil.today())
|
|
||||||
.eq(TbCallQueue::getShopId, shopId)
|
|
||||||
.one();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user