package com.consum.model.po; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnore; import com.walker.jdbc.BasePo; /** * 表名:BASE_GOODS_TEMPLATE * * @author genrator */ @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) public class BaseGoodsTemplate extends BasePo { // 序列化版本号 private static final long serialVersionUID = 1L; // 主键 private Long id = null; @JsonIgnore protected boolean isset_id = false; // 属性列表 private String goodsCode = null; @JsonIgnore protected boolean isset_goodsCode = false; private String goodsName = null; @JsonIgnore protected boolean isset_goodsName = false; private String classification = null; @JsonIgnore protected boolean isset_classification = false; private Integer states = null; @JsonIgnore protected boolean isset_states = false; private Long categoryId = null; @JsonIgnore protected boolean isset_categoryId = false; private Long fAgencyId = null; @JsonIgnore protected boolean isset_fAgencyId = false; private Long sAgencyId = null; @JsonIgnore protected boolean isset_sAgencyId = false; private Long tAgencyId = null; @JsonIgnore protected boolean isset_tAgencyId = false; private Long parentAgencyId = null; @JsonIgnore protected boolean isset_parentAgencyId = false; private Integer agencyLevel = null; @JsonIgnore protected boolean isset_agencyLevel = false; private Long agencyId = null; @JsonIgnore protected boolean isset_agencyId = false; private String agencyName = null; @JsonIgnore protected boolean isset_agencyName = false; private Long createDate = null; @JsonIgnore protected boolean isset_createDate = false; private Long dTime = null; @JsonIgnore protected boolean isset_dTime = false; private Long dUserId = null; @JsonIgnore protected boolean isset_dUserId = false; private String dUserName = null; @JsonIgnore protected boolean isset_dUserName = false; /** * 默认构造函数 */ public BaseGoodsTemplate() { } /** * 根据主键构造对象 */ public BaseGoodsTemplate(Long id) { this.setId(id); } /** * 设置主键值 */ @Override public void setPkValue(Object value) { this.setId((Long) value); } public Long getId() { return this.id; } public void setId(Long id) { this.id = id; this.isset_id = true; } @JsonIgnore public boolean isEmptyId() { return this.id == null; } public String getGoodsCode() { return this.goodsCode; } public void setGoodsCode(String goodsCode) { this.goodsCode = goodsCode; this.isset_goodsCode = true; } @JsonIgnore public boolean isEmptyGoodsCode() { return this.goodsCode == null || this.goodsCode.length() == 0; } public String getGoodsName() { return this.goodsName; } public void setGoodsName(String goodsName) { this.goodsName = goodsName; this.isset_goodsName = true; } @JsonIgnore public boolean isEmptyGoodsName() { return this.goodsName == null || this.goodsName.length() == 0; } public String getClassification() { return this.classification; } public void setClassification(String classification) { this.classification = classification; this.isset_classification = true; } @JsonIgnore public boolean isEmptyClassification() { return this.classification == null || this.classification.length() == 0; } public Integer getStates() { return this.states; } public void setStates(Integer states) { this.states = states; this.isset_states = true; } @JsonIgnore public boolean isEmptyStates() { return this.states == null; } public Long getCategoryId() { return this.categoryId; } public void setCategoryId(Long categoryId) { this.categoryId = categoryId; this.isset_categoryId = true; } @JsonIgnore public boolean isEmptyCategoryId() { return this.categoryId == null; } public Long getFAgencyId() { return this.fAgencyId; } public void setFAgencyId(Long fAgencyId) { this.fAgencyId = fAgencyId; this.isset_fAgencyId = true; } @JsonIgnore public boolean isEmptyFAgencyId() { return this.fAgencyId == null; } public Long getSAgencyId() { return this.sAgencyId; } public void setSAgencyId(Long sAgencyId) { this.sAgencyId = sAgencyId; this.isset_sAgencyId = true; } @JsonIgnore public boolean isEmptySAgencyId() { return this.sAgencyId == null; } public Long getTAgencyId() { return this.tAgencyId; } public void setTAgencyId(Long tAgencyId) { this.tAgencyId = tAgencyId; this.isset_tAgencyId = true; } @JsonIgnore public boolean isEmptyTAgencyId() { return this.tAgencyId == null; } public Long getParentAgencyId() { return this.parentAgencyId; } public void setParentAgencyId(Long parentAgencyId) { this.parentAgencyId = parentAgencyId; this.isset_parentAgencyId = true; } @JsonIgnore public boolean isEmptyParentAgencyId() { return this.parentAgencyId == null; } public Integer getAgencyLevel() { return this.agencyLevel; } public void setAgencyLevel(Integer agencyLevel) { this.agencyLevel = agencyLevel; this.isset_agencyLevel = true; } @JsonIgnore public boolean isEmptyAgencyLevel() { return this.agencyLevel == null; } public Long getAgencyId() { return this.agencyId; } public void setAgencyId(Long agencyId) { this.agencyId = agencyId; this.isset_agencyId = true; } @JsonIgnore public boolean isEmptyAgencyId() { return this.agencyId == null; } public String getAgencyName() { return this.agencyName; } public void setAgencyName(String agencyName) { this.agencyName = agencyName; this.isset_agencyName = true; } @JsonIgnore public boolean isEmptyAgencyName() { return this.agencyName == null || this.agencyName.length() == 0; } public Long getCreateDate() { return this.createDate; } public void setCreateDate(Long createDate) { this.createDate = createDate; this.isset_createDate = true; } @JsonIgnore public boolean isEmptyCreateDate() { return this.createDate == null; } public Long getDTime() { return this.dTime; } public void setDTime(Long dTime) { this.dTime = dTime; this.isset_dTime = true; } @JsonIgnore public boolean isEmptyDTime() { return this.dTime == null; } public Long getDUserId() { return this.dUserId; } public void setDUserId(Long dUserId) { this.dUserId = dUserId; this.isset_dUserId = true; } @JsonIgnore public boolean isEmptyDUserId() { return this.dUserId == null; } public String getDUserName() { return this.dUserName; } public void setDUserName(String dUserName) { this.dUserName = dUserName; this.isset_dUserName = true; } @JsonIgnore public boolean isEmptyDUserName() { return this.dUserName == null || this.dUserName.length() == 0; } /** * 重写 toString() 方法 */ @Override public String toString() { return new StringBuilder() .append("id=").append(this.id) .append("goodsCode=").append(this.goodsCode) .append("goodsName=").append(this.goodsName) .append("classification=").append(this.classification) .append("states=").append(this.states) .append("categoryId=").append(this.categoryId) .append("fAgencyId=").append(this.fAgencyId) .append("sAgencyId=").append(this.sAgencyId) .append("tAgencyId=").append(this.tAgencyId) .append("parentAgencyId=").append(this.parentAgencyId) .append("agencyLevel=").append(this.agencyLevel) .append("agencyId=").append(this.agencyId) .append("agencyName=").append(this.agencyName) .append("createDate=").append(this.createDate) .append("dTime=").append(this.dTime) .append("dUserId=").append(this.dUserId) .append("dUserName=").append(this.dUserName) .toString(); } /** * 克隆 */ public BaseGoodsTemplate $clone() { BaseGoodsTemplate base_goods_template = new BaseGoodsTemplate(); // 数据库名称 //base_goods_template.setDatabaseName_(this.getDatabaseName_()); // 主键 if (this.isset_id) { base_goods_template.setId(this.getId()); } // 普通属性 if (this.isset_goodsCode) { base_goods_template.setGoodsCode(this.getGoodsCode()); } if (this.isset_goodsName) { base_goods_template.setGoodsName(this.getGoodsName()); } if (this.isset_classification) { base_goods_template.setClassification(this.getClassification()); } if (this.isset_states) { base_goods_template.setStates(this.getStates()); } if (this.isset_categoryId) { base_goods_template.setCategoryId(this.getCategoryId()); } if (this.isset_fAgencyId) { base_goods_template.setFAgencyId(this.getFAgencyId()); } if (this.isset_sAgencyId) { base_goods_template.setSAgencyId(this.getSAgencyId()); } if (this.isset_tAgencyId) { base_goods_template.setTAgencyId(this.getTAgencyId()); } if (this.isset_parentAgencyId) { base_goods_template.setParentAgencyId(this.getParentAgencyId()); } if (this.isset_agencyLevel) { base_goods_template.setAgencyLevel(this.getAgencyLevel()); } if (this.isset_agencyId) { base_goods_template.setAgencyId(this.getAgencyId()); } if (this.isset_agencyName) { base_goods_template.setAgencyName(this.getAgencyName()); } if (this.isset_createDate) { base_goods_template.setCreateDate(this.getCreateDate()); } if (this.isset_dTime) { base_goods_template.setDTime(this.getDTime()); } if (this.isset_dUserId) { base_goods_template.setDUserId(this.getDUserId()); } if (this.isset_dUserName) { base_goods_template.setDUserName(this.getDUserName()); } return base_goods_template; } }