package com.yeshi.fanli.entity.order;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
import org.yeshi.utils.mybatis.Column;
|
import org.yeshi.utils.mybatis.Table;
|
|
import com.google.gson.annotations.Expose;
|
import com.yeshi.fanli.entity.bus.user.UserInfo;
|
|
/**
|
* 订单-简版
|
*
|
* @author yj
|
*
|
* @date 2018年12月23日
|
*/
|
|
@Table("yeshi_ec_common_order")
|
public class CommonOrder {
|
|
// 订单状态 1-付款,成功 2-结算(已收货) 3-维权 4-失效
|
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;
|
|
// 整个订单状态 1-有效 2-部分有效/失效 3-失效
|
public final static int STATE_WHOLE_ORDER_YOUXIAO = 1;
|
public final static int STATE_WHOLE_ORDER_BUFENYOUXIAO = 2;
|
public final static int STATE_WHOLE_ORDER_SHIXIAO = 3;
|
|
// 订单红包类型图片
|
public final static String TYPE_FANLI = "http://ec-1255749512.file.myqcloud.com/resource/order/icon_fanli.png";
|
public final static String TYPE_INVITE = "http://ec-1255749512.file.myqcloud.com/resource/order/icon_invite.png";
|
public final static String TYPE_SHARE = "http://ec-1255749512.file.myqcloud.com/resource/order/icon_share.png";
|
|
public final static int ORDER_TYPE_ZIGOU = 1;// 自购
|
public final static int ORDER_TYPE_SHARE = 20;// 分享
|
|
@Column(name = "co_id")
|
private Long id;
|
|
// 用户id
|
@Column(name = "co_uid")
|
private UserInfo userInfo;
|
|
// 订单号
|
@Expose
|
@Column(name = "co_order_no")
|
private String orderNo;
|
|
// 类型:淘宝/京东
|
@Expose
|
@Column(name = "co_source_type")
|
private Integer sourceType;
|
|
// 组合来源
|
@Column(name = "co_source_position")
|
private String sourcePosition;
|
|
// 商品
|
@Expose
|
@Column(name = "co_order_goods_id")
|
private CommonOrderGoods commonOrderGoods;
|
|
// 商品数
|
@Column(name = "co_count")
|
private Integer count;
|
|
// 状态:订单付款、订单失效、订单结算
|
@Expose
|
@Column(name = "co_state")
|
private Integer state;
|
|
// 整个订单状态:有效 、 部分有效/失效 、 失效
|
@Expose
|
@Column(name = "co_state_whole_order")
|
private Integer stateWholeOrder;
|
|
// 效果预估
|
@Column(name = "co_estimate")
|
private BigDecimal estimate;
|
|
// 预估收入
|
@Column(name = "co_eIncome")
|
private BigDecimal eIncome;
|
|
// 付款金额
|
@Column(name = "co_payment")
|
private BigDecimal payment;
|
|
// 结算金额
|
@Column(name = "co_settlement")
|
private BigDecimal settlement;
|
|
// 下单时间-第三方创建时间
|
@Column(name = "co_third_create_time")
|
private Date thirdCreateTime;
|
|
// 收货时间-结算时间
|
@Column(name = "co_settle_time")
|
private Date settleTime;
|
|
@Column(name = "co_order_by")
|
private Integer orderBy;// 子订单的排序值
|
|
@Column(name = "co_trade_id")
|
private String tradeId;
|
|
// 状态说明
|
@Column(name = "co_state_desc")
|
private String stateDesc;
|
|
// 创建时间
|
@Column(name = "co_create_time")
|
private Date createTime;
|
|
// 更新时间
|
@Column(name = "co_update_time")
|
private Date updateTime;
|
|
@Column(name = "co_urank")
|
private Integer urank;// 用户等级 100-为超级会员
|
|
public Integer getUrank() {
|
return urank;
|
}
|
|
public void setUrank(Integer urank) {
|
this.urank = urank;
|
}
|
|
public CommonOrder() {
|
|
}
|
|
public CommonOrder(Long id) {
|
this.id = id;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public UserInfo getUserInfo() {
|
return userInfo;
|
}
|
|
public void setUserInfo(UserInfo userInfo) {
|
this.userInfo = userInfo;
|
}
|
|
public String getOrderNo() {
|
return orderNo;
|
}
|
|
public void setOrderNo(String orderNo) {
|
this.orderNo = orderNo;
|
}
|
|
public Integer getSourceType() {
|
return sourceType;
|
}
|
|
public void setSourceType(Integer sourceType) {
|
this.sourceType = sourceType;
|
}
|
|
public String getSourcePosition() {
|
return sourcePosition;
|
}
|
|
public void setSourcePosition(String sourcePosition) {
|
this.sourcePosition = sourcePosition;
|
}
|
|
public CommonOrderGoods getCommonOrderGoods() {
|
return commonOrderGoods;
|
}
|
|
public void setCommonOrderGoods(CommonOrderGoods commonOrderGoods) {
|
this.commonOrderGoods = commonOrderGoods;
|
}
|
|
public Integer getCount() {
|
return count;
|
}
|
|
public void setCount(Integer count) {
|
this.count = count;
|
}
|
|
public Integer getState() {
|
return state;
|
}
|
|
public void setState(Integer state) {
|
this.state = state;
|
}
|
|
public BigDecimal getEstimate() {
|
return estimate;
|
}
|
|
public void setEstimate(BigDecimal estimate) {
|
this.estimate = estimate;
|
}
|
|
public BigDecimal geteIncome() {
|
return eIncome;
|
}
|
|
public void seteIncome(BigDecimal eIncome) {
|
this.eIncome = eIncome;
|
}
|
|
public BigDecimal getPayment() {
|
return payment;
|
}
|
|
public void setPayment(BigDecimal payment) {
|
this.payment = payment;
|
}
|
|
public BigDecimal getSettlement() {
|
return settlement;
|
}
|
|
public void setSettlement(BigDecimal settlement) {
|
this.settlement = settlement;
|
}
|
|
public Date getThirdCreateTime() {
|
return thirdCreateTime;
|
}
|
|
public void setThirdCreateTime(Date thirdCreateTime) {
|
this.thirdCreateTime = thirdCreateTime;
|
}
|
|
public Date getSettleTime() {
|
return settleTime;
|
}
|
|
public void setSettleTime(Date settleTime) {
|
this.settleTime = settleTime;
|
}
|
|
public Integer getOrderBy() {
|
return orderBy;
|
}
|
|
public void setOrderBy(Integer orderBy) {
|
this.orderBy = orderBy;
|
}
|
|
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;
|
}
|
|
public Integer getStateWholeOrder() {
|
return stateWholeOrder;
|
}
|
|
public void setStateWholeOrder(Integer stateWholeOrder) {
|
this.stateWholeOrder = stateWholeOrder;
|
}
|
|
public String getTradeId() {
|
return tradeId;
|
}
|
|
public void setTradeId(String tradeId) {
|
this.tradeId = tradeId;
|
}
|
|
public String getStateDesc() {
|
return stateDesc;
|
}
|
|
public void setStateDesc(String stateDesc) {
|
this.stateDesc = stateDesc;
|
}
|
|
}
|