1.排队取号 列表查询sql修复
This commit is contained in:
@@ -164,7 +164,7 @@ public class TbCallServiceImpl implements TbCallService {
|
|||||||
throw new MsgException("您未排号请先排号");
|
throw new MsgException("您未排号请先排号");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (queue.getOpenId().equals(subMsgDTO.getOpenId()) && queue.getSubState() == 1) {
|
if (queue.getOpenId() != null && queue.getOpenId().equals(subMsgDTO.getOpenId()) && queue.getSubState() == 1) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
a.shop_id = #{shopId}
|
a.shop_id = #{shopId}
|
||||||
AND a.create_day = #{today} -- 替换为目标日期
|
AND a.create_day = #{today} -- 替换为目标日期
|
||||||
<if test="openId != null and openId != ''">
|
<if test="openId != null and openId != ''">
|
||||||
and a.open_id = #{openId} or a.open_id is null -- 替换为目标用户的 open_id
|
and (a.open_id = #{openId} or a.open_id is null) -- 替换为目标用户的 open_id
|
||||||
</if>
|
</if>
|
||||||
<if test="queueId != null">
|
<if test="queueId != null">
|
||||||
and a.id = #{queueId} -- 替换为目标用户的 open_id
|
and a.id = #{queueId} -- 替换为目标用户的 open_id
|
||||||
|
|||||||
Reference in New Issue
Block a user