package com.yeshi.fanli.entity.bus.clazz;
|
|
import java.io.Serializable;
|
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 com.yeshi.fanli.entity.system.BusinessSystem;
|
|
/**
|
* 商品分类
|
*
|
* @author Administrator
|
*
|
*
|
*/
|
@Entity
|
@Table(name = "yeshi_ec_class")
|
public class GoodsClass implements Serializable{
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
@Column(name = "id")
|
private long id;
|
|
@Column(name = "`name`", length = 50)
|
private String name;
|
|
@Column(name = "`picture`", length = 1024)
|
private String picture;
|
|
private String url;
|
|
@Column(name = "`key`", length = 50)
|
private String key;
|
|
|
@Column(name = "`search_param`", length = 1024)
|
private String searchParam;
|
|
// @Column(name = "`tbcates`", length = 1024)
|
// private String tbCates;
|
|
private int orderby;
|
|
private long createtime;
|
|
@Column(name = "ios_click")
|
private Long iosClick = 0l;
|
|
@Column(name = "android_click")
|
private Long androidClick = 0l;
|
|
@Transient // 点击次数
|
private Long countClick = 0l;
|
|
@Transient // 关联标签数量
|
private int countlabel = 0;
|
|
@Transient // 系统关联列表
|
private List<BusinessSystem> systemList;
|
|
|
public GoodsClass(String name, String picture, int orderby, long createtime) {
|
super();
|
this.name = name;
|
this.picture = picture;
|
this.orderby = orderby;
|
this.createtime = createtime;
|
}
|
|
public GoodsClass() {
|
}
|
|
public GoodsClass(long id) {
|
super();
|
this.id = id;
|
}
|
|
public long getId() {
|
return id;
|
}
|
|
public void setId(long id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getKey() {
|
return key;
|
}
|
|
public void setKey(String key) {
|
this.key = key;
|
}
|
|
public String getPicture() {
|
return picture;
|
}
|
|
public void setPicture(String picture) {
|
this.picture = picture;
|
}
|
|
public String getUrl() {
|
return url;
|
}
|
|
public void setUrl(String url) {
|
this.url = url;
|
}
|
|
public int getOrderby() {
|
return orderby;
|
}
|
|
public void setOrderby(int orderby) {
|
this.orderby = orderby;
|
}
|
|
public long getCreatetime() {
|
return createtime;
|
}
|
|
public void setCreatetime(long createtime) {
|
this.createtime = createtime;
|
}
|
|
public Long getIosClick() {
|
return iosClick;
|
}
|
|
public void setIosClick(Long iosClick) {
|
this.iosClick = iosClick;
|
}
|
|
public Long getAndroidClick() {
|
return androidClick;
|
}
|
|
public void setAndroidClick(Long androidClick) {
|
this.androidClick = androidClick;
|
}
|
|
public Long getCountClick() {
|
return countClick;
|
}
|
|
public void setCountClick(Long countClick) {
|
this.countClick = countClick;
|
}
|
|
public List<BusinessSystem> getSystemList() {
|
return systemList;
|
}
|
|
public void setSystemList(List<BusinessSystem> systemList) {
|
this.systemList = systemList;
|
}
|
|
public int getCountlabel() {
|
return countlabel;
|
}
|
|
public void setCountlabel(int countlabel) {
|
this.countlabel = countlabel;
|
}
|
|
public String getSearchParam() {
|
return searchParam;
|
}
|
|
public void setSearchParam(String searchParam) {
|
this.searchParam = searchParam;
|
}
|
|
|
}
|