台桌添加订单字段
This commit is contained in:
@@ -8,6 +8,7 @@ import lombok.*;
|
|||||||
import java.io.Serial;
|
import java.io.Serial;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 台桌配置 实体类。
|
* 台桌配置 实体类。
|
||||||
@@ -20,4 +21,7 @@ import java.math.BigDecimal;
|
|||||||
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 Integer personNum;
|
||||||
|
private Date orderCreateTime;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user