提交 | 用户 | age
|
9e1c8d
|
1 |
package com.hx.other.service.model; |
G |
2 |
|
|
3 |
import com.gitee.sunchenbin.mybatis.actable.annotation.Column; |
|
4 |
import com.gitee.sunchenbin.mybatis.actable.annotation.Index; |
|
5 |
import com.gitee.sunchenbin.mybatis.actable.annotation.Table; |
|
6 |
import com.gitee.sunchenbin.mybatis.actable.annotation.Unique; |
|
7 |
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant; |
|
8 |
import lombok.Data; |
|
9 |
|
|
10 |
import java.math.BigDecimal; |
|
11 |
|
|
12 |
/** |
|
13 |
* 订单总表 |
|
14 |
* @Author: cmg |
|
15 |
* @Date: 2023/4/19 16:36 |
|
16 |
*/ |
|
17 |
@Table(name = "orders_total") |
|
18 |
@Data |
|
19 |
public class OrdersTotal extends BaseEntity { |
|
20 |
|
|
21 |
@Index |
|
22 |
@Column(comment = "用户id", length = 64, type = MySqlTypeConstant.VARCHAR, isNull = false) |
|
23 |
private String userId; |
|
24 |
|
|
25 |
@Column(comment = "用户名称", length = 50, type = MySqlTypeConstant.VARCHAR) |
|
26 |
private String userName; |
|
27 |
|
|
28 |
@Unique |
|
29 |
@Column(comment = "订单编号,以S开头, SyyyyMMdd0000000(前缀从字典获取)", length = 32, type = MySqlTypeConstant.VARCHAR,isNull = false) |
|
30 |
private String orderNo; |
|
31 |
|
|
32 |
@Index |
|
33 |
@Column(comment = "所属门店标识(Shop)(操作人的门店名称)", length = 64, type = MySqlTypeConstant.VARCHAR) |
|
34 |
private String shopId; |
|
35 |
|
|
36 |
@Column(comment = "所属门店名称(操作人的门店名称)", length = 64, type = MySqlTypeConstant.VARCHAR) |
|
37 |
private String shopName; |
|
38 |
|
|
39 |
@Column(comment = "已支付总金额,以元为存储(payTotal+其他支付模式)",length = 28, type = MySqlTypeConstant.DECIMAL,isNull = false) |
|
40 |
private BigDecimal actualTotal = BigDecimal.ZERO; |
|
41 |
|
|
42 |
} |