package com.consum.model.po; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnore; import com.walker.jdbc.BasePo; /** * 表名:DEP_FORM_SCRAPPED_GOODS * * @author genrator */ @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) public class DepFormScrappedGoods extends BasePo { // 序列化版本号 private static final long serialVersionUID = 1L; // 主键 private Long id = null; @JsonIgnore protected boolean isset_id = false; // 属性列表 private Long depFormScrappedId = null; @JsonIgnore protected boolean isset_depFormScrappedId = false; private Long baseGoodsTemplateId = null; @JsonIgnore protected boolean isset_baseGoodsTemplateId = false; private String baseGoodsTemplateName = null; @JsonIgnore protected boolean isset_baseGoodsTemplateName = false; private String categoryName = null; @JsonIgnore protected boolean isset_categoryName = false; private String classification = null; @JsonIgnore protected boolean isset_classification = false; private Long transBusinessId = null; @JsonIgnore protected boolean isset_transBusinessId = false; private String businessFormCode = null; @JsonIgnore protected boolean isset_businessFormCode = false; private Integer transOutWarehouseType = null; @JsonIgnore protected boolean isset_transOutWarehouseType = false; private Long transOutWarehouseId = null; @JsonIgnore protected boolean isset_transOutWarehouseId = false; /** * 默认构造函数 */ public DepFormScrappedGoods() { } /** * 根据主键构造对象 */ public DepFormScrappedGoods(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 Long getDepFormScrappedId() { return this.depFormScrappedId; } public void setDepFormScrappedId(Long depFormScrappedId) { this.depFormScrappedId = depFormScrappedId; this.isset_depFormScrappedId = true; } @JsonIgnore public boolean isEmptyDepFormScrappedId() { return this.depFormScrappedId == null; } public Long getBaseGoodsTemplateId() { return this.baseGoodsTemplateId; } public void setBaseGoodsTemplateId(Long baseGoodsTemplateId) { this.baseGoodsTemplateId = baseGoodsTemplateId; this.isset_baseGoodsTemplateId = true; } @JsonIgnore public boolean isEmptyBaseGoodsTemplateId() { return this.baseGoodsTemplateId == null; } public String getBaseGoodsTemplateName() { return this.baseGoodsTemplateName; } public void setBaseGoodsTemplateName(String baseGoodsTemplateName) { this.baseGoodsTemplateName = baseGoodsTemplateName; this.isset_baseGoodsTemplateName = true; } @JsonIgnore public boolean isEmptyBaseGoodsTemplateName() { return this.baseGoodsTemplateName == null || this.baseGoodsTemplateName.length() == 0; } public String getCategoryName() { return this.categoryName; } public void setCategoryName(String categoryName) { this.categoryName = categoryName; this.isset_categoryName = true; } @JsonIgnore public boolean isEmptyCategoryName() { return this.categoryName == null || this.categoryName.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 Long getTransBusinessId() { return this.transBusinessId; } public void setTransBusinessId(Long transBusinessId) { this.transBusinessId = transBusinessId; this.isset_transBusinessId = true; } @JsonIgnore public boolean isEmptyTransBusinessId() { return this.transBusinessId == null; } public String getBusinessFormCode() { return this.businessFormCode; } public void setBusinessFormCode(String businessFormCode) { this.businessFormCode = businessFormCode; this.isset_businessFormCode = true; } @JsonIgnore public boolean isEmptyBusinessFormCode() { return this.businessFormCode == null || this.businessFormCode.length() == 0; } public Integer getTransOutWarehouseType() { return this.transOutWarehouseType; } public void setTransOutWarehouseType(Integer transOutWarehouseType) { this.transOutWarehouseType = transOutWarehouseType; this.isset_transOutWarehouseType = true; } @JsonIgnore public boolean isEmptyTransOutWarehouseType() { return this.transOutWarehouseType == null; } public Long getTransOutWarehouseId() { return this.transOutWarehouseId; } public void setTransOutWarehouseId(Long transOutWarehouseId) { this.transOutWarehouseId = transOutWarehouseId; this.isset_transOutWarehouseId = true; } @JsonIgnore public boolean isEmptyTransOutWarehouseId() { return this.transOutWarehouseId == null; } /** * 重写 toString() 方法 */ @Override public String toString() { return new StringBuilder() .append("id=").append(this.id) .append("depFormScrappedId=").append(this.depFormScrappedId) .append("baseGoodsTemplateId=").append(this.baseGoodsTemplateId) .append("baseGoodsTemplateName=").append(this.baseGoodsTemplateName) .append("categoryName=").append(this.categoryName) .append("classification=").append(this.classification) .append("transBusinessId=").append(this.transBusinessId) .append("businessFormCode=").append(this.businessFormCode) .append("transOutWarehouseType=").append(this.transOutWarehouseType) .append("transOutWarehouseId=").append(this.transOutWarehouseId) .toString(); } /** * 克隆 */ public DepFormScrappedGoods $clone() { DepFormScrappedGoods dep_form_scrapped_goods = new DepFormScrappedGoods(); // 数据库名称 //dep_form_scrapped_goods.setDatabaseName_(this.getDatabaseName_()); // 主键 if (this.isset_id) { dep_form_scrapped_goods.setId(this.getId()); } // 普通属性 if (this.isset_depFormScrappedId) { dep_form_scrapped_goods.setDepFormScrappedId(this.getDepFormScrappedId()); } if (this.isset_baseGoodsTemplateId) { dep_form_scrapped_goods.setBaseGoodsTemplateId(this.getBaseGoodsTemplateId()); } if (this.isset_baseGoodsTemplateName) { dep_form_scrapped_goods.setBaseGoodsTemplateName(this.getBaseGoodsTemplateName()); } if (this.isset_categoryName) { dep_form_scrapped_goods.setCategoryName(this.getCategoryName()); } if (this.isset_classification) { dep_form_scrapped_goods.setClassification(this.getClassification()); } if (this.isset_transBusinessId) { dep_form_scrapped_goods.setTransBusinessId(this.getTransBusinessId()); } if (this.isset_businessFormCode) { dep_form_scrapped_goods.setBusinessFormCode(this.getBusinessFormCode()); } if (this.isset_transOutWarehouseType) { dep_form_scrapped_goods.setTransOutWarehouseType(this.getTransOutWarehouseType()); } if (this.isset_transOutWarehouseId) { dep_form_scrapped_goods.setTransOutWarehouseId(this.getTransOutWarehouseId()); } return dep_form_scrapped_goods; } }