admin
2020-04-13 dd5b15229cb15459fa7c31ccea77dac28cbfafbd
fanli/src/main/java/com/yeshi/fanli/entity/taobao/TaoBaoGoodsBrief.java
@@ -5,13 +5,14 @@
import java.util.Date;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;
import org.hibernate.annotations.Type;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import com.google.gson.annotations.Expose;
@@ -21,9 +22,9 @@
 * @author Administrator
 *
 */
@Entity
@org.yeshi.utils.mybatis.Table("yeshi_ec_taobao_goods")
public class TaoBaoGoodsBrief implements Serializable {
@Document(collection="taoBaoGoodsCache")
public class TaoBaoGoodsBrief extends TaoBaoGoodsYuShouInfo implements Serializable {
   
   
   /**
@@ -32,17 +33,18 @@
   private static final long serialVersionUID = 1L;
   @org.yeshi.utils.mybatis.Column(name = "id")
   @Id
   @GeneratedValue(strategy = GenerationType.AUTO)
   @Expose
   private Long id;
   @Field
   @org.yeshi.utils.mybatis.Column(name = "rootCatId")
   private Integer rootCatId;// 0,  一级类目ID
   @org.yeshi.utils.mybatis.Column(name = "eventCreatorId")
   private Integer eventCreatorId;// 0,
   @Field
   @org.yeshi.utils.mybatis.Column(name = "leafCatId")
   private Integer leafCatId;// 50011277, 子类目id
@@ -52,53 +54,67 @@
   @org.yeshi.utils.mybatis.Column(name = "rootCatScore")
   private Integer rootCatScore;// 0,
   @Field
   @org.yeshi.utils.mybatis.Column(name = "sellerId")
   private Long sellerId;// 卖家Id
   @Field
   @Expose
   @org.yeshi.utils.mybatis.Column(name = "userType")
   private Integer userType;// 0,
   @Field
   @Expose
   @org.yeshi.utils.mybatis.Column(name = "shopTitle")
   private String shopTitle;// 店铺名称
   @Field
   @org.yeshi.utils.mybatis.Column(name = "pictUrl")
   @Expose
   private String pictUrl;// 主图链接
   @Field
   @org.yeshi.utils.mybatis.Column(name = "pictUrlWhite")
   @Expose
   private String pictUrlWhite;// 白底色图片链接
   
   @Field
   @org.yeshi.utils.mybatis.Column(name = "title")
   @Expose
   private String title;// 商品标题
   @Field
   @Indexed
   @org.yeshi.utils.mybatis.Column(name = "auctionId")
   @Expose
   private Long auctionId;// 商品ID
   @Field
   @org.yeshi.utils.mybatis.Column(name = "couponLink")
   @Expose
   private String couponLink;// 优惠券链�?
   @Field
   @org.yeshi.utils.mybatis.Column(name = "couponLinkTaoToken")
   @Expose
   private String couponLinkTaoToken;//
   @Field
   @org.yeshi.utils.mybatis.Column(name = "couponActivityId")
   @Expose
   private String couponActivityId;//
   @Field
   @org.yeshi.utils.mybatis.Column(name = "biz30day")
   @Expose
   private Integer biz30day;// 月销量
   @Field
   @org.yeshi.utils.mybatis.Column(name = "tkRate")
   @Expose
   private BigDecimal tkRate;// 佣金比例 �?��100
   @Field
   @org.yeshi.utils.mybatis.Column(name = "nick")
   @Expose
   private String nick;// "yoyo_808611", 店铺名称
@@ -107,38 +123,47 @@
   @Expose
   private Integer includeDxjh;// 1:定向计划
   @Field
   @org.yeshi.utils.mybatis.Column(name = "reservePrice")
   @Expose
   private BigDecimal reservePrice;// 588,
   @Field
   @org.yeshi.utils.mybatis.Column(name = "tkCommFee")
   @Expose
   private BigDecimal tkCommFee;// 32.04,
   @Field
   @org.yeshi.utils.mybatis.Column(name = "totalFee")
   @Expose
   private BigDecimal totalFee;// 4814.43,
   @Field
   @org.yeshi.utils.mybatis.Column(name = "totalNum")
   @Expose
   private Integer totalNum;// 229, 库存数量
   @Field
   @org.yeshi.utils.mybatis.Column(name = "zkPrice")
   @Expose
   private BigDecimal zkPrice;// 无线价格,在售价
   @Field
   @org.yeshi.utils.mybatis.Column(name = "dayLeft")
   @Expose
   private Integer dayLeft;// -17228,
   @Field
   @org.yeshi.utils.mybatis.Column(name = "tk3rdRate")
   @Expose
   private String tk3rdRate;// null,
   @Field
   @org.yeshi.utils.mybatis.Column(name = "auctionUrl")
   @Expose
   private String auctionUrl;// 商品链接
   @Field
   @org.yeshi.utils.mybatis.Column(name = "rlRate")
   @Expose
   private Double rlRate;// 69.72,
@@ -155,38 +180,47 @@
   @Expose
   private Long sameItemPid;// "-232381821",
   @Field
   @org.yeshi.utils.mybatis.Column(name = "couponTotalCount")
   @Expose
   private Integer couponTotalCount;// 优惠券�?�?
   @Field
   @org.yeshi.utils.mybatis.Column(name = "couponLeftCount")
   @Expose
   private Integer couponLeftCount;// 优惠券剩余数�?
   @Field
   @org.yeshi.utils.mybatis.Column(name = "couponAmount")
   @Expose
   private BigDecimal couponAmount;// 优惠金额
   @Field
   @org.yeshi.utils.mybatis.Column(name = "eventRate")
   @Expose
   private String eventRate;// null,
   @Field
   @org.yeshi.utils.mybatis.Column(name = "couponShortLink")
   @Expose
   private String couponShortLink;// 优惠券短�?
   @Field
   @org.yeshi.utils.mybatis.Column(name = "couponInfo")
   @Expose
   private String couponInfo;// 优惠券信�?
   @Field
   @org.yeshi.utils.mybatis.Column(name = "couponStartFee")
   @Expose
   private BigDecimal couponStartFee;// 优惠券起始优�?
   @Field
   @org.yeshi.utils.mybatis.Column(name = "couponEffectiveStartTime")
   @Expose
   private String couponEffectiveStartTime;// "2017-02-04",优惠券开始时�?
   @Field
   @org.yeshi.utils.mybatis.Column(name = "couponEffectiveEndTime")
   @Expose
   private String couponEffectiveEndTime;// 优惠券结束时�?
@@ -203,22 +237,27 @@
   @Expose
   private String umpBonus;// null,
   @Field
   @org.yeshi.utils.mybatis.Column(name = "rootCategoryName")
   @Expose
   private String rootCategoryName;//  一级分类名称
   @Field
   @org.yeshi.utils.mybatis.Column(name = "couponOriLink")
   @Expose
   private String couponOriLink;// 优惠券原始链�?
   @Field
   @org.yeshi.utils.mybatis.Column(name = "userTypeName")
   @Expose
   private String userTypeName;// 用户类型
   @Field
   @org.yeshi.utils.mybatis.Column(name = "tkMktStatus")
   @Expose
   private String tkMktStatus; // 1:营销返利
   
   @Field
   @org.yeshi.utils.mybatis.Column(name = "totalSales")
   @Expose
   private Integer totalSales;// 229, 淘客30天月推广量
@@ -230,6 +269,7 @@
   private Date createtime;
   // 更新时间
   @Field
   @org.yeshi.utils.mybatis.Column(name = "updatetime")
   @Expose
   @Type(type = "date")
@@ -239,14 +279,30 @@
   @Expose
   private Integer state;// 0-正常 1-商品下架
   
   @Field
   @org.yeshi.utils.mybatis.Column(name = "material_lib_type")
   @Transient
   private Integer materialLibType;//物料库类型
   private String description;//推荐语
   @Transient
   private boolean shopCoupon;//是否为店铺券
   
   
   /* 新增字段 2018-7-16 ; 由于数据未从淘宝获取成功,暂不启用 */
   
   public boolean isShopCoupon() {
      return shopCoupon;
   }
   public void setShopCoupon(boolean shopCoupon) {
      this.shopCoupon = shopCoupon;
   }
   public Integer getMaterialLibType() {
      return materialLibType;
   }
@@ -846,4 +902,12 @@
      this.pictUrlWhite = pictUrlWhite;
   }
   
   public String getDescription() {
      return description;
   }
   public void setDescription(String description) {
      this.description = description;
   }
}