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