台桌添加订单字段
This commit is contained in:
@@ -21,7 +21,16 @@ import java.util.Date;
|
||||
public class ShopTableVO extends ShopTable {
|
||||
private Long orderId;
|
||||
private Long userId;
|
||||
/**
|
||||
* 订单金额
|
||||
*/
|
||||
private BigDecimal orderAmount;
|
||||
/**
|
||||
* 人数
|
||||
*/
|
||||
private Integer personNum;
|
||||
/**
|
||||
* 订单创建时间
|
||||
*/
|
||||
private Date orderCreateTime;
|
||||
}
|
||||
|
||||
@@ -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, 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
|
||||
left join tb_order_info as b
|
||||
on a.table_code = b.table_code and b.`status` = 'unpaid' and b.table_code != '' and
|
||||
|
||||
Reference in New Issue
Block a user