1.增加台桌会员id

This commit is contained in:
2024-08-21 09:49:24 +08:00
parent 2b7ca62abf
commit e04c3ee084
3 changed files with 22 additions and 3 deletions

View File

@@ -228,4 +228,19 @@
</select>
<select id="selectTableInfo" resultType="com.chaozhanggui.system.cashierservice.entity.vo.TbShopTableVO">
select a.*, b.user_id from tb_shop_table a
left join tb_order_info b on a.qrcode=b.table_id and (b.`status`='unpaid' or b.`status`='paying') and b.user_id is not null
where a.shop_id=#{shopId}
<if test="areaId != null and areaId !=''">
and a.area_id = #{areaId}
</if>
<if test="status != null and status !=''">
and a.status = #{status}
</if>
order by a.`sort` asc
</select>
</mapper>