package com.hai.entity; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; /** * high_discount_package * @author */ /** * * 代码由工具生成 * **/ public class HighDiscountPackage implements Serializable { /** * 主键 */ private Integer id; /** * 公司id */ private Integer companyId; /** * 使用归属 */ private Integer usingAttribution; /** * 标题 */ private String title; /** * 优惠券包销售类型 1:售卖 : 2 赠送 */ private Integer salesType; /** * 有效期 */ private Date effectiveTiem; /** * 售卖价格 */ private BigDecimal price; /** * 购买数量 */ private Integer purchaseNum; /** * 列表展示图 */ private String listImg; /** * 轮播展示图 */ private String bannerImg; /** * 详情暂时图 */ private String detailsImg; /** * 创建人 */ private Integer createdUserId; /** * 创建时间 */ private Date createdTime; /** * 更新人 */ private Integer updatedUserId; /** * 更新时间 */ private Date updatedTime; /** * 状态 1: 上架 2: 下架 3: 编辑中 4:删除 */ private Integer status; /** * 总库存 */ private Integer totalStock; /** * 剩余库存 */ private Integer surplusStock; /** * 扩展字段 */ private String ext1; /** * 扩展字段 */ private String ext2; /** * 扩展字段 */ private String ext3; private static final long serialVersionUID = 1L; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Integer getCompanyId() { return companyId; } public void setCompanyId(Integer companyId) { this.companyId = companyId; } public Integer getUsingAttribution() { return usingAttribution; } public void setUsingAttribution(Integer usingAttribution) { this.usingAttribution = usingAttribution; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public Integer getSalesType() { return salesType; } public void setSalesType(Integer salesType) { this.salesType = salesType; } public Date getEffectiveTiem() { return effectiveTiem; } public void setEffectiveTiem(Date effectiveTiem) { this.effectiveTiem = effectiveTiem; } public BigDecimal getPrice() { return price; } public void setPrice(BigDecimal price) { this.price = price; } public Integer getPurchaseNum() { return purchaseNum; } public void setPurchaseNum(Integer purchaseNum) { this.purchaseNum = purchaseNum; } public String getListImg() { return listImg; } public void setListImg(String listImg) { this.listImg = listImg; } public String getBannerImg() { return bannerImg; } public void setBannerImg(String bannerImg) { this.bannerImg = bannerImg; } public String getDetailsImg() { return detailsImg; } public void setDetailsImg(String detailsImg) { this.detailsImg = detailsImg; } public Integer getCreatedUserId() { return createdUserId; } public void setCreatedUserId(Integer createdUserId) { this.createdUserId = createdUserId; } public Date getCreatedTime() { return createdTime; } public void setCreatedTime(Date createdTime) { this.createdTime = createdTime; } public Integer getUpdatedUserId() { return updatedUserId; } public void setUpdatedUserId(Integer updatedUserId) { this.updatedUserId = updatedUserId; } public Date getUpdatedTime() { return updatedTime; } public void setUpdatedTime(Date updatedTime) { this.updatedTime = updatedTime; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public Integer getTotalStock() { return totalStock; } public void setTotalStock(Integer totalStock) { this.totalStock = totalStock; } public Integer getSurplusStock() { return surplusStock; } public void setSurplusStock(Integer surplusStock) { this.surplusStock = surplusStock; } public String getExt1() { return ext1; } public void setExt1(String ext1) { this.ext1 = ext1; } public String getExt2() { return ext2; } public void setExt2(String ext2) { this.ext2 = ext2; } public String getExt3() { return ext3; } public void setExt3(String ext3) { this.ext3 = ext3; } @Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } HighDiscountPackage other = (HighDiscountPackage) that; return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId())) && (this.getUsingAttribution() == null ? other.getUsingAttribution() == null : this.getUsingAttribution().equals(other.getUsingAttribution())) && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle())) && (this.getSalesType() == null ? other.getSalesType() == null : this.getSalesType().equals(other.getSalesType())) && (this.getEffectiveTiem() == null ? other.getEffectiveTiem() == null : this.getEffectiveTiem().equals(other.getEffectiveTiem())) && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice())) && (this.getPurchaseNum() == null ? other.getPurchaseNum() == null : this.getPurchaseNum().equals(other.getPurchaseNum())) && (this.getListImg() == null ? other.getListImg() == null : this.getListImg().equals(other.getListImg())) && (this.getBannerImg() == null ? other.getBannerImg() == null : this.getBannerImg().equals(other.getBannerImg())) && (this.getDetailsImg() == null ? other.getDetailsImg() == null : this.getDetailsImg().equals(other.getDetailsImg())) && (this.getCreatedUserId() == null ? other.getCreatedUserId() == null : this.getCreatedUserId().equals(other.getCreatedUserId())) && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime())) && (this.getUpdatedUserId() == null ? other.getUpdatedUserId() == null : this.getUpdatedUserId().equals(other.getUpdatedUserId())) && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime())) && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) && (this.getTotalStock() == null ? other.getTotalStock() == null : this.getTotalStock().equals(other.getTotalStock())) && (this.getSurplusStock() == null ? other.getSurplusStock() == null : this.getSurplusStock().equals(other.getSurplusStock())) && (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1())) && (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2())) && (this.getExt3() == null ? other.getExt3() == null : this.getExt3().equals(other.getExt3())); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode()); result = prime * result + ((getUsingAttribution() == null) ? 0 : getUsingAttribution().hashCode()); result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode()); result = prime * result + ((getSalesType() == null) ? 0 : getSalesType().hashCode()); result = prime * result + ((getEffectiveTiem() == null) ? 0 : getEffectiveTiem().hashCode()); result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode()); result = prime * result + ((getPurchaseNum() == null) ? 0 : getPurchaseNum().hashCode()); result = prime * result + ((getListImg() == null) ? 0 : getListImg().hashCode()); result = prime * result + ((getBannerImg() == null) ? 0 : getBannerImg().hashCode()); result = prime * result + ((getDetailsImg() == null) ? 0 : getDetailsImg().hashCode()); result = prime * result + ((getCreatedUserId() == null) ? 0 : getCreatedUserId().hashCode()); result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); result = prime * result + ((getUpdatedUserId() == null) ? 0 : getUpdatedUserId().hashCode()); result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode()); result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); result = prime * result + ((getTotalStock() == null) ? 0 : getTotalStock().hashCode()); result = prime * result + ((getSurplusStock() == null) ? 0 : getSurplusStock().hashCode()); result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode()); result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode()); result = prime * result + ((getExt3() == null) ? 0 : getExt3().hashCode()); return result; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", companyId=").append(companyId); sb.append(", usingAttribution=").append(usingAttribution); sb.append(", title=").append(title); sb.append(", salesType=").append(salesType); sb.append(", effectiveTiem=").append(effectiveTiem); sb.append(", price=").append(price); sb.append(", purchaseNum=").append(purchaseNum); sb.append(", listImg=").append(listImg); sb.append(", bannerImg=").append(bannerImg); sb.append(", detailsImg=").append(detailsImg); sb.append(", createdUserId=").append(createdUserId); sb.append(", createdTime=").append(createdTime); sb.append(", updatedUserId=").append(updatedUserId); sb.append(", updatedTime=").append(updatedTime); sb.append(", status=").append(status); sb.append(", totalStock=").append(totalStock); sb.append(", surplusStock=").append(surplusStock); sb.append(", ext1=").append(ext1); sb.append(", ext2=").append(ext2); sb.append(", ext3=").append(ext3); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }