| | |
| | | import java.io.Serializable;
|
| | | import java.util.Date;
|
| | |
|
| | | import javax.persistence.Column;
|
| | | 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 javax.persistence.Transient;
|
| | | import org.yeshi.utils.mybatis.Column;
|
| | | import org.yeshi.utils.mybatis.Table;
|
| | |
|
| | | import com.google.gson.annotations.Expose;
|
| | |
|
| | |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | @Entity
|
| | | @Table(name = "yeshi_ec_sub_class")
|
| | | @org.yeshi.utils.mybatis.Table("yeshi_ec_sub_class")
|
| | | public class GoodsSubClass implements Serializable{
|
| | | @Table("yeshi_ec_sub_class")
|
| | | public class GoodsSubClass implements Serializable {
|
| | |
|
| | | /**
|
| | | *
|
| | | */
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | @Id
|
| | | @Expose
|
| | | @Column(name = "sub_id")
|
| | | @GeneratedValue(strategy = GenerationType.AUTO)
|
| | | @org.yeshi.utils.mybatis.Column(name="sub_id")
|
| | | private Long id;
|
| | | |
| | | @Expose
|
| | | @Column(name = "sub_name")
|
| | | @org.yeshi.utils.mybatis.Column(name="sub_name")
|
| | | private String name; // 名称
|
| | | |
| | | @Expose
|
| | | @Column(name = "sub_picture")
|
| | | @org.yeshi.utils.mybatis.Column(name="sub_picture")
|
| | | private String picture; // 图片路径
|
| | | |
| | | @Expose
|
| | | @Column(name = "sub_weight")
|
| | | @org.yeshi.utils.mybatis.Column(name="sub_weight")
|
| | | private Integer weight; // 权重-排序
|
| | | |
| | | @Expose
|
| | | @Column(name = "sub_state")
|
| | | @org.yeshi.utils.mybatis.Column(name="sub_state")
|
| | | private Integer state; // 状态 1启用 0停用
|
| | | |
| | | @ManyToOne(fetch = FetchType.EAGER)
|
| | | @JoinColumn(name = "sub_root_id")
|
| | | @org.yeshi.utils.mybatis.Column(name="sub_root_id")
|
| | | private GoodsClass rootClass; // 一级类别
|
| | | |
| | | @ManyToOne(fetch = FetchType.EAGER)
|
| | | @JoinColumn(name = "sub_pid")
|
| | | @org.yeshi.utils.mybatis.Column(name="sub_pid")
|
| | | private GoodsSubClass parent ; // 上级:对应的二级以下分类 用于3级、4级、5级
|
| | | |
| | | |
| | | @Expose
|
| | | @Column(name = "sub_level")
|
| | | @org.yeshi.utils.mybatis.Column(name="sub_level")
|
| | | private Integer level; // 具体等级
|
| | | |
| | | @Expose
|
| | | @Column(name = "sub_key")
|
| | | @org.yeshi.utils.mybatis.Column(name="sub_key")
|
| | | private String key; // 搜索关键词
|
| | | |
| | |
|
| | | @Expose
|
| | | @Column(name = "sub_name")
|
| | | private String name; // 名称
|
| | |
|
| | | @Expose
|
| | | @Column(name = "sub_picture")
|
| | | private String picture; // 图片路径
|
| | |
|
| | | @Column(name = "sub_picture_second")
|
| | | private String pictureSecond; // 新版图片1.5.3
|
| | |
|
| | | @Column(name = "sub_weight")
|
| | | private Integer weight; // 权重-排序
|
| | |
|
| | | @Column(name = "sub_state")
|
| | | private Integer state; // 状态 1启用 0停用
|
| | |
|
| | | @Column(name = "sub_root_id")
|
| | | private GoodsClass rootClass; // 一级类别
|
| | |
|
| | | @Column(name = "sub_pid")
|
| | | private GoodsSubClass parent; // 上级:对应的二级以下分类 用于3级、4级、5级
|
| | |
|
| | | @Column(name = "sub_level")
|
| | | private Integer level; // 具体等级
|
| | |
|
| | | @Column(name = "sub_key")
|
| | | private String key; // 搜索关键词
|
| | |
|
| | | @Column(name = "sub_search_json")
|
| | | @org.yeshi.utils.mybatis.Column(name="sub_search_json")
|
| | | private String searchJson; // 搜索条件
|
| | | |
| | | |
| | | @Expose
|
| | | private String searchJson; // 搜索条件
|
| | |
|
| | | @Column(name = "sub_ios_click")
|
| | | @org.yeshi.utils.mybatis.Column(name="sub_ios_click")
|
| | | private Long iosClick = 0l; |
| | | |
| | | @Expose
|
| | | private Long iosClick = 0l;
|
| | |
|
| | | @Column(name = "sub_android_click")
|
| | | @org.yeshi.utils.mybatis.Column(name="sub_android_click")
|
| | | private Long androidClick = 0l; |
| | | private Long androidClick = 0l;
|
| | |
|
| | | private String taobaoCids;
|
| | |
|
| | |
|
| | | @Expose
|
| | |
|
| | | @Column(name = "sub_createtime")
|
| | | @org.yeshi.utils.mybatis.Column(name="sub_createtime")
|
| | | private Date createtime; // 创建时间
|
| | | |
| | | @Expose
|
| | |
|
| | | @Column(name = "sub_updatetime")
|
| | | @org.yeshi.utils.mybatis.Column(name="sub_updatetime")
|
| | | private Date updatetime; // 创建时间
|
| | | |
| | | @Transient
|
| | | private Long CountClick = 0l; |
| | | @Transient // 关联标签数量
|
| | | private int countlabel = 0; |
| | | @Column(name = "sub_sex")
|
| | | private Integer sex;//性别
|
| | | @Column(name = "sub_month")
|
| | | private String month;//月份
|
| | |
|
| | |
|
| | | public GoodsSubClass(){}
|
| | | private GoodsSubClassLabel classLabel;//标签
|
| | |
|
| | |
|
| | |
|
| | | public GoodsSubClassLabel getClassLabel() {
|
| | | return classLabel;
|
| | | }
|
| | |
|
| | | public void setClassLabel(GoodsSubClassLabel classLabel) {
|
| | | this.classLabel = classLabel;
|
| | | }
|
| | |
|
| | | public Integer getSex() {
|
| | | return sex;
|
| | | }
|
| | |
|
| | | public void setSex(Integer sex) {
|
| | | this.sex = sex;
|
| | | }
|
| | |
|
| | | public String getMonth() {
|
| | | return month;
|
| | | }
|
| | |
|
| | | public void setMonth(String month) {
|
| | | this.month = month;
|
| | | }
|
| | |
|
| | | private Long countClick = 0l;
|
| | | // 关联标签数量
|
| | | private int countlabel = 0;
|
| | |
|
| | | private String searchParam;
|
| | |
|
| | | public GoodsSubClass() {
|
| | | }
|
| | |
|
| | | public GoodsSubClass(Long id) {
|
| | | this.id = id;
|
| | | }
|
| | | |
| | | |
| | | |
| | | |
| | |
|
| | | public Long getId() {
|
| | | return id;
|
| | |
| | | this.createtime = createtime;
|
| | | }
|
| | |
|
| | |
|
| | | public GoodsSubClass getParent() {
|
| | | return parent;
|
| | | }
|
| | |
| | |
|
| | | public void setAndroidClick(Long androidClick) {
|
| | | this.androidClick = androidClick;
|
| | | }
|
| | |
|
| | | public Long getCountClick() {
|
| | | return CountClick;
|
| | | }
|
| | |
|
| | | public void setCountClick(Long countClick) {
|
| | | CountClick = countClick;
|
| | | }
|
| | |
|
| | | public Integer getLevel() {
|
| | |
| | | public void setState(Integer state) {
|
| | | this.state = state;
|
| | | }
|
| | |
|
| | | public String getSearchParam() {
|
| | | return searchParam;
|
| | | }
|
| | |
|
| | | public void setSearchParam(String searchParam) {
|
| | | this.searchParam = searchParam;
|
| | | }
|
| | |
|
| | | public Long getCountClick() {
|
| | | return countClick;
|
| | | }
|
| | |
|
| | | public void setCountClick(Long countClick) {
|
| | | this.countClick = countClick;
|
| | | }
|
| | |
|
| | | public String getPictureSecond() {
|
| | | return pictureSecond;
|
| | | }
|
| | |
|
| | | public void setPictureSecond(String pictureSecond) {
|
| | | this.pictureSecond = pictureSecond;
|
| | | }
|
| | |
|
| | | public String getTaobaoCids() {
|
| | | return taobaoCids;
|
| | | }
|
| | |
|
| | | public void setTaobaoCids(String taobaoCids) {
|
| | | this.taobaoCids = taobaoCids;
|
| | | }
|
| | | }
|