package com.yeshi.fanli.entity.bus.msg; import java.math.BigDecimal; import java.util.Date; import org.yeshi.utils.mybatis.Column; import org.yeshi.utils.mybatis.Table; import com.yeshi.fanli.entity.bus.user.UserInfo; /*** * 订单类型的消息 * * @author Administrator * */ @Table("yeshi_ec_msg_order") public class MsgOrderDetail { public final static int STATE_FK = 1;// 已付款 public final static int STATE_JS = 2;// 已收货 public final static int STATE_WQ = 3;// 已维权 public final static int STATE_SX = 4;// 未付款/已退款 public enum MsgTypeOrderTypeEnum { fanli("返利订单"), share("分享订单"), invite("邀请订单"); private final String desc; private MsgTypeOrderTypeEnum(String desc) { this.desc = desc; } public String getDesc() { return desc; } } @Column(name = "mo_id") private Long id; @Column(name = "mo_uid") private UserInfo user; @Column(name = "mo_type") private MsgTypeOrderTypeEnum type;// 消息类型 @Column(name = "mo_order_id") private String orderId;// 订单号 @Column(name = "mo_state") private Integer state;// 状态 @Column(name = "mo_goods_count") private Integer goodsCount;// 商品数量 @Column(name = "mo_pay_money") private BigDecimal payMoney;// 付款金额 @Column(name = "mo_hongbao_money") private BigDecimal hongBaoMoney;// 佣金 @Column(name = "mo_beizhu") private String beiZhu; @Column(name = "mo_read") private Boolean read;// 是否已读 @Column(name = "mo_create_time") private Date createTime; @Column(name = "mo_update_time") private Date updateTime; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public UserInfo getUser() { return user; } public void setUser(UserInfo user) { this.user = user; } public MsgTypeOrderTypeEnum getType() { return type; } public void setType(MsgTypeOrderTypeEnum type) { this.type = type; } public String getOrderId() { return orderId; } public void setOrderId(String orderId) { this.orderId = orderId; } public Integer getState() { return state; } public void setState(Integer state) { this.state = state; } public Integer getGoodsCount() { return goodsCount; } public void setGoodsCount(Integer goodsCount) { this.goodsCount = goodsCount; } public BigDecimal getPayMoney() { return payMoney; } public void setPayMoney(BigDecimal payMoney) { this.payMoney = payMoney; } public BigDecimal getHongBaoMoney() { return hongBaoMoney; } public void setHongBaoMoney(BigDecimal hongBaoMoney) { this.hongBaoMoney = hongBaoMoney; } public String getBeiZhu() { return beiZhu; } public void setBeiZhu(String beiZhu) { this.beiZhu = beiZhu; } public Boolean getRead() { return read; } public void setRead(Boolean read) { this.read = read; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Date getUpdateTime() { return updateTime; } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } }