1.排队取号 取消接口修改
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
<select id="selectInfoByOpenId"
|
||||
resultType="com.chaozhanggui.system.cashierservice.entity.vo.CallQueueInfoVO">
|
||||
SELECT
|
||||
d.shop_name, d.logo, d.status as shop_state,
|
||||
a.call_num,
|
||||
a.id, -- 用户的排队记录ID
|
||||
a.state,
|
||||
@@ -49,10 +50,11 @@
|
||||
tb_call_table b ON a.call_table_id = b.id
|
||||
LEFT JOIN
|
||||
tb_call_queue c ON c.call_table_id = a.call_table_id
|
||||
left join tb_shop_info d on a.shop_id=d.id
|
||||
AND c.create_time < a.create_time
|
||||
AND c.state IN (0, 1) -- 前面的人
|
||||
WHERE
|
||||
a.open_id=#{openId} and a.shop_id=#{shopId} -- 替换为目标用户的user_id
|
||||
a.open_id=#{openId} and a.shop_id=#{shopId} and a.create_day=#{today} -- 替换为目标用户的user_id
|
||||
GROUP BY
|
||||
a.id, a.user_id, b.name, b.note, b.wait_time
|
||||
ORDER BY
|
||||
|
||||
Reference in New Issue
Block a user