1.代客下单先付款后付款操作

This commit is contained in:
2024-08-21 14:56:08 +08:00
parent b7708d82e1
commit fbea2c6670
6 changed files with 61 additions and 7 deletions

View File

@@ -229,8 +229,9 @@
</select>
<select id="selectTableInfo" resultType="com.chaozhanggui.system.cashierservice.entity.vo.TbShopTableVO">
select a.*, b.user_id from tb_shop_table a
select a.*, b.user_id, c.master_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
left join tb_order_info c on a.qrcode=c.table_id and (c.`status`='unpaid' or c.`status`='paying') and c.master_id is not null
where a.shop_id=#{shopId}
<if test="areaId != null and areaId !=''">
and a.area_id = #{areaId}