package cn.zhou.core.bean.product;
import java.util.*;
import java.io.Serializable;
/**
*/
public class Product implements Serializable {
/**
* 序列化ID
*/
private static final long serialVersionUID = 1L;
private Integer id;
private String no;//商品编号
private String name;//商品名称
private Double weight;//重量 单位:克
private Integer isNew ;//是否新品:0:旧品,1:新品
private Integer isHot ;//是否热销:0,否 1:是
private Integer isCommend ;//推荐 1推荐 0 不推荐
private Date createTime;//添加时间
private String createUserId;//添加人ID
private Date checkTime;//审核时间
private String checkUserId;//审核人ID
private Integer isShow = 0;//上下架:0否 1是,默认下架,这样代码是下架的可以不用设置
private Integer isDel = 1;//是否删除:0删除,1,没删除
private Integer typeId;//类型ID
private Integer brandId;//品牌ID
private String keywords;//检索关键词
private Integer sales;//销量
private String description;//商品描述
private String packageList;//包装清单
private String feature;//商品属性集
private String color;//颜色集 9,10,11,12
private String size_num;//尺寸集 S,L,XXL
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getNo() {
return no;
}
public void setNo(String no) {
this.no = no;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Double getWeight() {
return weight;
}
public void setWeight(Double weight) {
this.weight = weight;
}
public Integer getIsNew() {
return isNew;
}
public void setIsNew(Integer isNew) {
this.isNew = isNew;
}
public Integer getIsHot() {
return isHot;
}
public void setIsHot(Integer isHot) {
this.isHot = isHot;
}
public Integer getIsCommend() {
return isCommend;
}
public void setIsCommend(Integer isCommend) {
this.isCommend = isCommend;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getCreateUserId() {
return createUserId;
}
public void setCreateUserId(String createUserId) {
this.createUserId = createUserId;
}
public Date getCheckTime() {
return checkTime;
}
public void setCheckTime(Date checkTime) {
this.checkTime = checkTime;
}
public String getCheckUserId() {
return checkUserId;
}
public void setCheckUserId(String checkUserId) {
this.checkUserId = checkUserId;
}
public Integer getIsShow() {
return isShow;
}
public void setIsShow(Integer isShow) {
this.isShow = isShow;
}
public Integer getIsDel() {
return isDel;
}
public void setIsDel(Integer isDel) {
this.isDel = isDel;
}
public Integer getTypeId() {
return typeId;
}
public void setTypeId(Integer typeId) {
this.typeId = typeId;
}
public Integer getBrandId() {
return brandId;
}
public void setBrandId(Integer brandId) {
this.brandId = brandId;
}
public String getKeywords() {
return keywords;
}
public void setKeywords(String keywords) {
this.keywords = keywords;
}
public Integer getSales() {
return sales;
}
public void setSales(Integer sales) {
this.sales = sales;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getPackageList() {
return packageList;
}
public void setPackageList(String packageList) {
this.packageList = packageList;
}
public String getFeature() {
return feature;
}
public void setFeature(String feature) {
this.feature = feature;
}
public String getColor() {
return color;
}
public void setColor(String color) {
this.color = color;
}
public String getSize_num() {
return size_num;
}
public void setSize_num(String size_num) {
this.size_num = size_num;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((brandId == null) ? 0 : brandId.hashCode());
result = prime * result + ((checkTime == null) ? 0 : checkTime.hashCode());
result = prime * result + ((checkUserId == null) ? 0 : checkUserId.hashCode());
result = prime * result + ((color == null) ? 0 : color.hashCode());
result = prime * result + ((createTime == null) ? 0 : createTime.hashCode());
result = prime * result + ((createUserId == null) ? 0 : createUserId.hashCode());
result = prime * result + ((description == null) ? 0 : description.hashCode());
result = prime * result + ((feature == null) ? 0 : feature.hashCode());
result = prime * result + ((id == null) ? 0 : id.hashCode());
result = prime * result + ((isCommend == null) ? 0 : isCommend.hashCode());
result = prime * result + ((isDel == null) ? 0 : isDel.hashCode());
result = prime * result + ((isHot == null) ? 0 : isHot.hashCode());
result = prime * result + ((isNew == null) ? 0 : isNew.hashCode());
result = prime * result + ((isShow == null) ? 0 : isShow.hashCode());
result = prime * result + ((keywords == null) ? 0 : keywords.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((no == null) ? 0 : no.hashCode());
result = prime * result + ((packageList == null) ? 0 : packageList.hashCode());
result = prime * result + ((sales == null) ? 0 : sales.hashCode());
result = prime * result + ((size_num == null) ? 0 : size_num.hashCode());
result = prime * result + ((typeId == null) ? 0 : typeId.hashCode());
result = prime * result + ((weight == null) ? 0 : weight.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;
Product other = (Product) obj;
if (brandId == null) {
if (other.brandId != null)
return false;
} else if (!brandId.equals(other.brandId))
return false;
if (checkTime == null) {
if (other.checkTime != null)
return false;
} else if (!checkTime.equals(other.checkTime))
return false;
if (checkUserId == null) {
if (other.checkUserId != null)
return false;
} else if (!checkUserId.equals(other.checkUserId))
return false;
if (color == null) {
if (other.color != null)
return false;
} else if (!color.equals(other.color))
return false;
if (createTime == null) {
if (other.createTime != null)
return false;
} else if (!createTime.equals(other.createTime))
return false;
if (createUserId == null) {
if (other.createUserId != null)
return false;
} else if (!createUserId.equals(other.createUserId))
return false;
if (description == null) {
if (other.description != null)
return false;
} else if (!description.equals(other.description))
return false;
if (feature == null) {
if (other.feature != null)
return false;
} else if (!feature.equals(other.feature))
return false;
if (id == null) {
if (other.id != null)
return false;
} else if (!id.equals(other.id))
return false;
if (isCommend == null) {
if (other.isCommend != null)
return false;
} else if (!isCommend.equals(other.isCommend))
return false;
if (isDel == null) {
if (other.isDel != null)
return false;
} else if (!isDel.equals(other.isDel))
return false;
if (isHot == null) {
if (other.isHot != null)
return false;
} else if (!isHot.equals(other.isHot))
return false;
if (isNew == null) {
if (other.isNew != null)
return false;
} else if (!isNew.equals(other.isNew))
return false;
if (isShow == null) {
if (other.isShow