package com.yeshi.fanli.entity.taobao;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
import javax.persistence.Entity;
|
import javax.persistence.FetchType;
|
import javax.persistence.GeneratedValue;
|
import javax.persistence.GenerationType;
|
import javax.persistence.Id;
|
import javax.persistence.JoinColumn;
|
import javax.persistence.ManyToOne;
|
import javax.persistence.Table;
|
|
import com.yeshi.fanli.entity.bus.user.HongBao;
|
import com.yeshi.fanli.entity.bus.user.UserInfo;
|
import org.yeshi.utils.mybatis.Column;
|
|
//由PID产生的订单
|
@Entity
|
@org.yeshi.utils.mybatis.Table("yeshi_ec_pid_order")
|
@Table(name = "yeshi_ec_pid_order")
|
public class PidOrder {
|
|
@javax.persistence.Column(name = "po_id")
|
@Column(name = "po_id")
|
@Id
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
private Long id;//
|
|
@javax.persistence.Column(name = "po_order_createtime")
|
@Column(name = "po_order_createtime")
|
private Date orderCreateTime;// 创建时间
|
|
@javax.persistence.Column(name = "po_goods_title")
|
@Column(name = "po_goods_title")
|
private String goodsTitle;// 商品信息
|
|
@javax.persistence.Column(name = "po_auction_id")
|
@Column(name = "po_auction_id")
|
private Long auctionId;// 商品ID
|
|
@javax.persistence.Column(name = "po_goods_num")
|
@Column(name = "po_goods_num")
|
private Integer goodsNum;// 商品数
|
|
@javax.persistence.Column(name = "po_price")
|
@Column(name = "po_price")
|
private BigDecimal price;// 商品单价
|
|
@javax.persistence.Column(name = "po_state")
|
@Column(name = "po_state")
|
private String state;// 订单状态
|
|
@javax.persistence.Column(name = "po_order_type")
|
@Column(name = "po_order_type")
|
private String orderType;// 订单类型
|
|
@javax.persistence.Column(name = "po_rate")
|
@Column(name = "po_rate")
|
private BigDecimal rate;// 收入比率
|
|
@javax.persistence.Column(name = "po_pay_money")
|
@Column(name = "po_pay_money")
|
private BigDecimal payMoney;// 付款金额
|
|
@javax.persistence.Column(name = "po_pre_money")
|
@Column(name = "po_pre_money")
|
private BigDecimal preMoney;// 效果预估*50% = 提成
|
|
@javax.persistence.Column(name = "po_final_money")
|
@Column(name = "po_final_money")
|
private BigDecimal finalMoney;// 预估收入
|
|
@javax.persistence.Column(name = "po_balance_time")
|
@Column(name = "po_balance_time")
|
private Date balanceTime;// 结算时间
|
|
@javax.persistence.Column(name = "po_order_id")
|
@Column(name = "po_order_id")
|
private String orderId;// 订单编号
|
|
@javax.persistence.Column(name = "po_type_name")
|
@Column(name = "po_type_name")
|
private String typeName;// 类目名称
|
|
@javax.persistence.Column(name = "po_src_media_id")
|
@Column(name = "po_src_media_id")
|
private String srcMediaId;// 来源媒体ID
|
|
@javax.persistence.Column(name = "po_adzone_id")
|
@Column(name = "po_adzone_id")
|
private String adzoneId;// 广告位ID
|
|
@javax.persistence.Column(name = "po_createtime")
|
@Column(name = "po_createtime")
|
private Date createTime;// 本地创建时间
|
|
@Column(name = "po_uid")
|
@JoinColumn(name = "po_uid")
|
@ManyToOne(fetch = FetchType.EAGER)
|
private UserInfo userInfo;// 用户信息
|
|
@javax.persistence.Column(name = "po_order_update_time")
|
@Column(name = "po_order_update_time")
|
private Date orderUpdateTime;// 更新淘宝联盟订单的更新时间 只有当首次插入,订单状态和预估效果更新后才会改变
|
|
@javax.persistence.Column(name = "po_local_update_time")
|
@Column(name = "po_local_update_time")
|
private Date localUpdateTime;// 本地订单更新时间
|
|
@javax.persistence.Column(name = "po_account_balance")
|
@Column(name = "po_account_balance")
|
private Boolean accountBalance;// 红包是否结算
|
|
@javax.persistence.Column(name = "po_account_balance_time")
|
@Column(name = "po_account_balance_time")
|
private Date accountBalanceTime;//红包到账时间
|
|
@javax.persistence.Column(name="po_beizhu")
|
@Column(name = "po_beizhu")
|
private String beizhu;
|
|
@Column(name = "po_hongbao_id")
|
@JoinColumn(name="po_hongbao_id")
|
@ManyToOne(fetch = FetchType.EAGER)
|
private HongBao hongBao;
|
|
public String getBeizhu() {
|
return beizhu;
|
}
|
|
public void setBeizhu(String beizhu) {
|
this.beizhu = beizhu;
|
}
|
|
public HongBao getHongBao() {
|
return hongBao;
|
}
|
|
public void setHongBao(HongBao hongBao) {
|
this.hongBao = hongBao;
|
}
|
|
public Date getAccountBalanceTime() {
|
return accountBalanceTime;
|
}
|
|
public void setAccountBalanceTime(Date accountBalanceTime) {
|
this.accountBalanceTime = accountBalanceTime;
|
}
|
|
public UserInfo getUserInfo() {
|
return userInfo;
|
}
|
|
public void setUserInfo(UserInfo userInfo) {
|
this.userInfo = userInfo;
|
}
|
|
public Date getOrderUpdateTime() {
|
return orderUpdateTime;
|
}
|
|
public void setOrderUpdateTime(Date orderUpdateTime) {
|
this.orderUpdateTime = orderUpdateTime;
|
}
|
|
public Date getLocalUpdateTime() {
|
return localUpdateTime;
|
}
|
|
public void setLocalUpdateTime(Date localUpdateTime) {
|
this.localUpdateTime = localUpdateTime;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Date getOrderCreateTime() {
|
return orderCreateTime;
|
}
|
|
public void setOrderCreateTime(Date orderCreateTime) {
|
this.orderCreateTime = orderCreateTime;
|
}
|
|
public String getGoodsTitle() {
|
return goodsTitle;
|
}
|
|
public void setGoodsTitle(String goodsTitle) {
|
this.goodsTitle = goodsTitle;
|
}
|
|
public Long getAuctionId() {
|
return auctionId;
|
}
|
|
public void setAuctionId(Long auctionId) {
|
this.auctionId = auctionId;
|
}
|
|
public Integer getGoodsNum() {
|
return goodsNum;
|
}
|
|
public void setGoodsNum(Integer goodsNum) {
|
this.goodsNum = goodsNum;
|
}
|
|
public BigDecimal getPrice() {
|
return price;
|
}
|
|
public void setPrice(BigDecimal price) {
|
this.price = price;
|
}
|
|
public String getState() {
|
return state;
|
}
|
|
public void setState(String state) {
|
this.state = state;
|
}
|
|
public String getOrderType() {
|
return orderType;
|
}
|
|
public void setOrderType(String orderType) {
|
this.orderType = orderType;
|
}
|
|
public BigDecimal getRate() {
|
return rate;
|
}
|
|
public void setRate(BigDecimal rate) {
|
this.rate = rate;
|
}
|
|
public BigDecimal getPayMoney() {
|
return payMoney;
|
}
|
|
public void setPayMoney(BigDecimal payMoney) {
|
this.payMoney = payMoney;
|
}
|
|
public BigDecimal getPreMoney() {
|
return preMoney;
|
}
|
|
public void setPreMoney(BigDecimal preMoney) {
|
this.preMoney = preMoney;
|
}
|
|
public BigDecimal getFinalMoney() {
|
return finalMoney;
|
}
|
|
public void setFinalMoney(BigDecimal finalMoney) {
|
this.finalMoney = finalMoney;
|
}
|
|
public Date getBalanceTime() {
|
return balanceTime;
|
}
|
|
public void setBalanceTime(Date balanceTime) {
|
this.balanceTime = balanceTime;
|
}
|
|
public String getOrderId() {
|
return orderId;
|
}
|
|
public void setOrderId(String orderId) {
|
this.orderId = orderId;
|
}
|
|
public String getTypeName() {
|
return typeName;
|
}
|
|
public void setTypeName(String typeName) {
|
this.typeName = typeName;
|
}
|
|
public String getSrcMediaId() {
|
return srcMediaId;
|
}
|
|
public void setSrcMediaId(String srcMediaId) {
|
this.srcMediaId = srcMediaId;
|
}
|
|
public String getAdzoneId() {
|
return adzoneId;
|
}
|
|
public void setAdzoneId(String adzoneId) {
|
this.adzoneId = adzoneId;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public Boolean getAccountBalance() {
|
return accountBalance;
|
}
|
|
public void setAccountBalance(Boolean accountBalance) {
|
this.accountBalance = accountBalance;
|
}
|
|
}
|