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 = 32, 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;
|
|
}
|