From 51a4ff5d777028d52a19c314a99f796334cb7b51 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 23 十一月 2019 18:30:01 +0800 Subject: [PATCH] 配置文件修改 --- fanli/src/main/java/com/yeshi/fanli/entity/taobao/TaoBaoGoodsBrief.java | 84 ++++++++++++++++++++++++----------------- 1 files changed, 49 insertions(+), 35 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/entity/taobao/TaoBaoGoodsBrief.java b/fanli/src/main/java/com/yeshi/fanli/entity/taobao/TaoBaoGoodsBrief.java index 1753628..82cccc4 100644 --- a/fanli/src/main/java/com/yeshi/fanli/entity/taobao/TaoBaoGoodsBrief.java +++ b/fanli/src/main/java/com/yeshi/fanli/entity/taobao/TaoBaoGoodsBrief.java @@ -5,15 +5,14 @@ import java.util.Date; import java.util.List; -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 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; @@ -23,10 +22,9 @@ * @author Administrator * */ -@Entity -@Table(name = "yeshi_ec_taobao_goods") @org.yeshi.utils.mybatis.Table("yeshi_ec_taobao_goods") -public class TaoBaoGoodsBrief implements Serializable { +@Document(collection="taoBaoGoodsCache") +public class TaoBaoGoodsBrief extends TaoBaoGoodsYuShouInfo implements Serializable { /** @@ -35,124 +33,138 @@ private static final long serialVersionUID = 1L; @org.yeshi.utils.mybatis.Column(name = "id") - @Id @GeneratedValue(strategy = GenerationType.AUTO) - @Column(name = "id") @Expose private Long id; + @Field @org.yeshi.utils.mybatis.Column(name = "rootCatId") private Integer rootCatId;// 0, 涓�绾х被鐩甀D @org.yeshi.utils.mybatis.Column(name = "eventCreatorId") private Integer eventCreatorId;// 0, + @Field @org.yeshi.utils.mybatis.Column(name = "leafCatId") private Integer leafCatId;// 50011277, 瀛愮被鐩甶d @org.yeshi.utils.mybatis.Column(name = "debugInfo") - @Column(length = 50) private String debugInfo;// null, @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") - @Column(length = 256) private String shopTitle;// 搴楅摵鍚嶇О + @Field @org.yeshi.utils.mybatis.Column(name = "pictUrl") - @Column(length = 256) @Expose private String pictUrl;// 涓诲浘閾炬帴 + @Field @org.yeshi.utils.mybatis.Column(name = "pictUrlWhite") - @Column(length = 256) @Expose private String pictUrlWhite;// 鐧藉簳鑹插浘鐗囬摼鎺� + @Field @org.yeshi.utils.mybatis.Column(name = "title") - @Column(length = 256) @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 - @Column(length = 256) private String couponLink;// 浼樻儬鍒搁摼锟�? + @Field @org.yeshi.utils.mybatis.Column(name = "couponLinkTaoToken") @Expose - @Column(length = 256) private String couponLinkTaoToken;// + @Field @org.yeshi.utils.mybatis.Column(name = "couponActivityId") @Expose - @Column(length = 128) 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;// 浣i噾姣斾緥 锟�?锟斤拷100 + @Field @org.yeshi.utils.mybatis.Column(name = "nick") @Expose - @Column(length = 50) private String nick;// "yoyo_808611", 搴楅摵鍚嶇О @org.yeshi.utils.mybatis.Column(name = "includeDxjh") @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 - @Column(length = 50) private String tk3rdRate;// null, + @Field @org.yeshi.utils.mybatis.Column(name = "auctionUrl") - @Column(length = 128) @Expose private String auctionUrl;// 鍟嗗搧閾炬帴 + @Field @org.yeshi.utils.mybatis.Column(name = "rlRate") @Expose private Double rlRate;// 69.72, @@ -169,82 +181,84 @@ @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 - @Column(length = 50) private String eventRate;// null, + @Field @org.yeshi.utils.mybatis.Column(name = "couponShortLink") @Expose - @Column(length = 128) private String couponShortLink;// 浼樻儬鍒哥煭锟�? + @Field @org.yeshi.utils.mybatis.Column(name = "couponInfo") - @Column(length = 50) @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 - @Column(length = 20) private String couponEffectiveStartTime;// "2017-02-04",浼樻儬鍒稿紑濮嬫椂锟�? + @Field @org.yeshi.utils.mybatis.Column(name = "couponEffectiveEndTime") @Expose - @Column(length = 20) private String couponEffectiveEndTime;// 浼樻儬鍒哥粨鏉熸椂锟�? @org.yeshi.utils.mybatis.Column(name = "hasUmpBonus") @Expose - @Column(length = 10) private String hasUmpBonus;// null, @org.yeshi.utils.mybatis.Column(name = "isBizActivity") @Expose - @Column(length = 10) private String isBizActivity;// null, @org.yeshi.utils.mybatis.Column(name = "umpBonus") @Expose - @Column(length = 10) private String umpBonus;// null, + @Field @org.yeshi.utils.mybatis.Column(name = "rootCategoryName") @Expose - @Column(length = 30) private String rootCategoryName;// 涓�绾у垎绫诲悕绉� + @Field @org.yeshi.utils.mybatis.Column(name = "couponOriLink") @Expose - @Column(length = 128) private String couponOriLink;// 浼樻儬鍒稿師濮嬮摼锟�? + @Field @org.yeshi.utils.mybatis.Column(name = "userTypeName") @Expose - @Column(length = 30) private String userTypeName;// 鐢ㄦ埛绫诲瀷 + @Field @org.yeshi.utils.mybatis.Column(name = "tkMktStatus") @Expose - @Column private String tkMktStatus; // 1锛氳惀閿�杩斿埄 + @Field @org.yeshi.utils.mybatis.Column(name = "totalSales") @Expose private Integer totalSales;// 229, 娣樺30澶╂湀鎺ㄥ箍閲� @@ -253,21 +267,20 @@ @org.yeshi.utils.mybatis.Column(name = "createtime") @Expose @Type(type = "date") - @Column private Date createtime; // 鏇存柊鏃堕棿 + @Field @org.yeshi.utils.mybatis.Column(name = "updatetime") @Expose @Type(type = "date") - @Column private Date updatetime; @org.yeshi.utils.mybatis.Column(name = "state") @Expose - @Column private Integer state;// 0-姝e父 1-鍟嗗搧涓嬫灦 + @Field @org.yeshi.utils.mybatis.Column(name = "material_lib_type") @Transient private Integer materialLibType;//鐗╂枡搴撶被鍨� @@ -321,6 +334,7 @@ @Expose private String salesCount; + @Expose @Transient private List<String> imgList; -- Gitblit v1.8.0