1.排队取号 状态接口修改
This commit is contained in:
@@ -22,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.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.atomic.AtomicReference;
|
import java.util.concurrent.atomic.AtomicReference;
|
||||||
|
|
||||||
@@ -121,6 +122,10 @@ public class TbCallServiceImpl implements TbCallService {
|
|||||||
@Override
|
@Override
|
||||||
public Object getState(String openId, Integer shopId) {
|
public Object getState(String openId, Integer shopId) {
|
||||||
List<CallQueueInfoVO> callQueueInfoVOS = callQueueMapper.selectInfoByOpenId(shopId, openId, DateUtil.today());
|
List<CallQueueInfoVO> callQueueInfoVOS = callQueueMapper.selectInfoByOpenId(shopId, openId, DateUtil.today());
|
||||||
return callQueueInfoVOS.isEmpty() ? null : callQueueInfoVOS.get(0);
|
TbShopInfo shopInfo = shopInfoMapper.selectByPrimaryKey(shopId);
|
||||||
|
HashMap<String, Object> data = new HashMap<>();
|
||||||
|
data.put("shopInfo", shopInfo);
|
||||||
|
data.put("queueInfo", callQueueInfoVOS.isEmpty() ? null : callQueueInfoVOS.get(0));
|
||||||
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user