台桌添加订单字段

This commit is contained in:
gong
2026-03-28 14:06:18 +08:00
parent a67354343c
commit 1ae849d24c
2 changed files with 5 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ import lombok.*;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 台桌配置 实体类。
@@ -20,4 +21,7 @@ import java.math.BigDecimal;
public class ShopTableVO extends ShopTable {
private Long orderId;
private Long userId;
private BigDecimal orderAmount;
private Integer personNum;
private Date orderCreateTime;
}

View File

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