1.增加台桌会员id
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user