台桌添加订单字段

This commit is contained in:
gong
2026-03-28 14:09:34 +08:00
parent 1ae849d24c
commit 7d6086311a
2 changed files with 10 additions and 1 deletions

View File

@@ -21,7 +21,16 @@ import java.util.Date;
public class ShopTableVO extends ShopTable { public class ShopTableVO extends ShopTable {
private Long orderId; private Long orderId;
private Long userId; private Long userId;
/**
* 订单金额
*/
private BigDecimal orderAmount; private BigDecimal orderAmount;
/**
* 人数
*/
private Integer personNum; private Integer personNum;
/**
* 订单创建时间
*/
private Date orderCreateTime; private Date orderCreateTime;
} }

View File

@@ -5,7 +5,7 @@
<mapper namespace="com.czg.service.account.mapper.ShopTableMapper"> <mapper namespace="com.czg.service.account.mapper.ShopTableMapper">
<select id="pageInfo" resultType="com.czg.account.vo.ShopTableVO"> <select id="pageInfo" resultType="com.czg.account.vo.ShopTableVO">
select a.*, b.id orderId, b.user_id, b.origin_amount as orderAmount, b.person_num as personNum, b.create_time as orderCreateTime select a.*, b.id orderId, b.user_id, b.origin_amount as orderAmount, b.seat_num as personNum, b.create_time as orderCreateTime
from tb_shop_table as a from tb_shop_table as a
left join tb_order_info as b left join tb_order_info as b
on a.table_code = b.table_code and b.`status` = 'unpaid' and b.table_code != '' and on a.table_code = b.table_code and b.`status` = 'unpaid' and b.table_code != '' and