package com.yeshi.fanli.entity.taobao;
|
|
import java.math.BigDecimal;
|
|
import javax.persistence.Column;
|
import javax.persistence.Entity;
|
import javax.persistence.GeneratedValue;
|
import javax.persistence.GenerationType;
|
import javax.persistence.Id;
|
import javax.persistence.Table;
|
import javax.persistence.Transient;
|
|
import com.google.gson.annotations.Expose;
|
|
@Table(name = "yeshi_ec_taobao_coupon")
|
@Entity
|
public class TaoBaoCoupon {
|
@Id
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
@Column(name = "id")
|
@Expose
|
private long id;
|
@Expose
|
@Column(name = "auctionId")
|
private String auctionId;
|
@Column(name = "`title`")
|
@Expose
|
private String title;
|
@Expose
|
private String pictUrl;
|
@Expose
|
private String auctionUrl;
|
private String classNames; // 分类名称 多级分类/分开
|
@Column(name = "`taobaokeUrl`", length = 1024)
|
private String taobaokeUrl;
|
@Expose
|
private BigDecimal zkPrice; // 无线价格
|
@Expose
|
private int biz30day;
|
@Expose
|
private double tkRate; // 比例
|
private BigDecimal brokerage; // 佣金
|
private String shopWangWang; // 店铺旺旺
|
private long sellerId;// 卖家Id
|
private String shopTitle; // 店铺名称
|
@Expose
|
private int shopType; // 平台类型 1-淘宝 2-天猫 0-其他
|
private String couponId; // 优惠券ID
|
private int couponSum; // 优惠券总数
|
private int couponCount; // 优惠券剩余量
|
@Expose
|
private String couponinfo; // 优惠券信息
|
private BigDecimal couponStartFee; // 优惠券起始金额
|
private BigDecimal couponAmount; // 优惠券金额
|
@Expose
|
private BigDecimal quanPrice;
|
private String couponBegin;
|
private String couponEnd;
|
@Column(name = "couponLink", length = 1024)
|
private String couponLink;
|
@Column(name = "generalizeUrl", length = 1024)
|
private String generalizeUrl; // 推广URl
|
@Expose
|
private int orderby;
|
@Expose
|
private long createtime;
|
|
@Expose
|
@Transient
|
private BigDecimal hongbao;
|
|
@Expose
|
private int showType; //
|
|
public TaoBaoCoupon() {
|
}
|
|
public TaoBaoCoupon(long id) {
|
super();
|
this.id = id;
|
}
|
|
public long getId() {
|
return id;
|
}
|
|
public void setId(long id) {
|
this.id = id;
|
}
|
|
public int getShowType() {
|
return showType;
|
}
|
|
public void setShowType(int showType) {
|
this.showType = showType;
|
}
|
|
public BigDecimal getHongbao() {
|
return hongbao;
|
}
|
|
public void setHongbao(BigDecimal hongbao) {
|
this.hongbao = hongbao;
|
}
|
|
public BigDecimal getQuanPrice() {
|
return quanPrice;
|
}
|
|
public void setQuanPrice(BigDecimal quanPrice) {
|
this.quanPrice = quanPrice;
|
}
|
|
public String getAuctionId() {
|
return auctionId;
|
}
|
|
public BigDecimal getCouponStartFee() {
|
return couponStartFee;
|
}
|
|
public int getOrderby() {
|
return orderby;
|
}
|
|
public void setOrderby(int orderby) {
|
this.orderby = orderby;
|
}
|
|
public void setCouponStartFee(BigDecimal couponStartFee) {
|
this.couponStartFee = couponStartFee;
|
}
|
|
public BigDecimal getCouponAmount() {
|
return couponAmount;
|
}
|
|
public void setCouponAmount(BigDecimal couponAmount) {
|
this.couponAmount = couponAmount;
|
}
|
|
public void setAuctionId(String auctionId) {
|
this.auctionId = auctionId;
|
}
|
|
public String getTitle() {
|
return title;
|
}
|
|
public void setTitle(String title) {
|
this.title = title;
|
}
|
|
public String getPictUrl() {
|
return pictUrl;
|
}
|
|
public void setPictUrl(String pictUrl) {
|
this.pictUrl = pictUrl;
|
}
|
|
public String getAuctionUrl() {
|
return auctionUrl;
|
}
|
|
public void setAuctionUrl(String auctionUrl) {
|
this.auctionUrl = auctionUrl;
|
}
|
|
public String getClassNames() {
|
return classNames;
|
}
|
|
public void setClassNames(String classNames) {
|
this.classNames = classNames;
|
}
|
|
public String getTaobaokeUrl() {
|
return taobaokeUrl;
|
}
|
|
public void setTaobaokeUrl(String taobaokeUrl) {
|
this.taobaokeUrl = taobaokeUrl;
|
}
|
|
public BigDecimal getZkPrice() {
|
return zkPrice;
|
}
|
|
public void setZkPrice(BigDecimal zkPrice) {
|
this.zkPrice = zkPrice;
|
}
|
|
public int getBiz30day() {
|
return biz30day;
|
}
|
|
public void setBiz30day(int biz30day) {
|
this.biz30day = biz30day;
|
}
|
|
public double getTkRate() {
|
return tkRate;
|
}
|
|
public void setTkRate(double tkRate) {
|
this.tkRate = tkRate;
|
}
|
|
public BigDecimal getBrokerage() {
|
return brokerage;
|
}
|
|
public void setBrokerage(BigDecimal brokerage) {
|
this.brokerage = brokerage;
|
}
|
|
public String getShopWangWang() {
|
return shopWangWang;
|
}
|
|
public void setShopWangWang(String shopWangWang) {
|
this.shopWangWang = shopWangWang;
|
}
|
|
public long getSellerId() {
|
return sellerId;
|
}
|
|
public void setSellerId(long sellerId) {
|
this.sellerId = sellerId;
|
}
|
|
public String getShopTitle() {
|
return shopTitle;
|
}
|
|
public void setShopTitle(String shopTitle) {
|
this.shopTitle = shopTitle;
|
}
|
|
public int getShopType() {
|
return shopType;
|
}
|
|
public void setShopType(int shopType) {
|
this.shopType = shopType;
|
}
|
|
public String getCouponId() {
|
return couponId;
|
}
|
|
public void setCouponId(String couponId) {
|
this.couponId = couponId;
|
}
|
|
public int getCouponSum() {
|
return couponSum;
|
}
|
|
public void setCouponSum(int couponSum) {
|
this.couponSum = couponSum;
|
}
|
|
public int getCouponCount() {
|
return couponCount;
|
}
|
|
public void setCouponCount(int couponCount) {
|
this.couponCount = couponCount;
|
}
|
|
public long getCreatetime() {
|
return createtime;
|
}
|
|
public void setCreatetime(long createtime) {
|
this.createtime = createtime;
|
}
|
|
public String getCouponinfo() {
|
return couponinfo;
|
}
|
|
public void setCouponinfo(String couponinfo) {
|
this.couponinfo = couponinfo;
|
}
|
|
public String getCouponBegin() {
|
return couponBegin;
|
}
|
|
public void setCouponBegin(String couponBegin) {
|
this.couponBegin = couponBegin;
|
}
|
|
public String getCouponEnd() {
|
return couponEnd;
|
}
|
|
public void setCouponEnd(String couponEnd) {
|
this.couponEnd = couponEnd;
|
}
|
|
public String getCouponLink() {
|
return couponLink;
|
}
|
|
public void setCouponLink(String couponLink) {
|
this.couponLink = couponLink;
|
}
|
|
public String getGeneralizeUrl() {
|
return generalizeUrl;
|
}
|
|
public void setGeneralizeUrl(String generalizeUrl) {
|
this.generalizeUrl = generalizeUrl;
|
}
|
|
@Override
|
public int hashCode() {
|
final int prime = 31;
|
int result = 1;
|
result = prime * result + ((auctionId == null) ? 0 : auctionId.hashCode());
|
return result;
|
}
|
|
@Override
|
public boolean equals(Object obj) {
|
if (this == obj)
|
return true;
|
if (obj == null)
|
return false;
|
if (getClass() != obj.getClass())
|
return false;
|
TaoBaoCoupon other = (TaoBaoCoupon) obj;
|
if (auctionId == null) {
|
if (other.auctionId != null)
|
return false;
|
} else if (!auctionId.equals(other.auctionId))
|
return false;
|
return true;
|
}
|
|
}
|