package com.consum.model.po; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnore; import com.walker.jdbc.BasePo; /** * 表名:L_WH_FORM_SCRAPPED_GOODS * * @author genrator */ @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) public class LWhFormScrappedGoods extends BasePo { // 序列化版本号 private static final long serialVersionUID = 1L; // 主键 private Long id = null; @JsonIgnore protected boolean isset_id = false; // 属性列表 private Integer counts = null; @JsonIgnore protected boolean isset_counts = false; private String scrappedCode = null; @JsonIgnore protected boolean isset_scrappedCode = false; private String scrappedName = null; @JsonIgnore protected boolean isset_scrappedName = false; private String beiz = null; @JsonIgnore protected boolean isset_beiz = false; private Long formScrappedId = null; @JsonIgnore protected boolean isset_formScrappedId = false; private Long baseGoodsTemplateId = null; @JsonIgnore protected boolean isset_baseGoodsTemplateId = false; private String goodsTemplateName = null; @JsonIgnore protected boolean isset_goodsTemplateName = false; private String unit = null; @JsonIgnore protected boolean isset_unit = false; private Long baseGoodsModelsId = null; @JsonIgnore protected boolean isset_baseGoodsModelsId = false; private String baseGoodsModelsName = null; @JsonIgnore protected boolean isset_baseGoodsModelsName = false; private Long transBusinessId = null; @JsonIgnore protected boolean isset_transBusinessId = false; private String userName = null; @JsonIgnore protected boolean isset_userName = false; private Long sort = null; @JsonIgnore protected boolean isset_sort = false; private Integer totalAmount; @JsonIgnore protected boolean isset_totalAmount = false; /** * 默认构造函数 */ public LWhFormScrappedGoods() { } /** * 根据主键构造对象 */ public LWhFormScrappedGoods(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 Integer getCounts() { return this.counts; } public void setCounts(Integer counts) { this.counts = counts; this.isset_counts = true; } @JsonIgnore public boolean isEmptyCounts() { return this.counts == null; } public String getScrappedCode() { return this.scrappedCode; } public void setScrappedCode(String scrappedCode) { this.scrappedCode = scrappedCode; this.isset_scrappedCode = true; } @JsonIgnore public boolean isEmptyScrappedCode() { return this.scrappedCode == null || this.scrappedCode.length() == 0; } public String getScrappedName() { return this.scrappedName; } public void setScrappedName(String scrappedName) { this.scrappedName = scrappedName; this.isset_scrappedName = true; } @JsonIgnore public boolean isEmptyScrappedName() { return this.scrappedName == null || this.scrappedName.length() == 0; } public String getBeiz() { return this.beiz; } public void setBeiz(String beiz) { this.beiz = beiz; this.isset_beiz = true; } @JsonIgnore public boolean isEmptyBeiz() { return this.beiz == null || this.beiz.length() == 0; } public Long getFormScrappedId() { return this.formScrappedId; } public void setFormScrappedId(Long formScrappedId) { this.formScrappedId = formScrappedId; this.isset_formScrappedId = true; } @JsonIgnore public boolean isEmptyFormScrappedId() { return this.formScrappedId == 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 getGoodsTemplateName() { return this.goodsTemplateName; } public void setGoodsTemplateName(String goodsTemplateName) { this.goodsTemplateName = goodsTemplateName; this.isset_goodsTemplateName = true; } @JsonIgnore public boolean isEmptyGoodsTemplateName() { return this.goodsTemplateName == null || this.goodsTemplateName.length() == 0; } public String getUnit() { return this.unit; } public void setUnit(String unit) { this.unit = unit; this.isset_unit = true; } @JsonIgnore public boolean isEmptyUnit() { return this.unit == null || this.unit.length() == 0; } public Long getBaseGoodsModelsId() { return this.baseGoodsModelsId; } public void setBaseGoodsModelsId(Long baseGoodsModelsId) { this.baseGoodsModelsId = baseGoodsModelsId; this.isset_baseGoodsModelsId = true; } @JsonIgnore public boolean isEmptyBaseGoodsModelsId() { return this.baseGoodsModelsId == null; } public String getBaseGoodsModelsName() { return this.baseGoodsModelsName; } public void setBaseGoodsModelsName(String baseGoodsModelsName) { this.baseGoodsModelsName = baseGoodsModelsName; this.isset_baseGoodsModelsName = true; } @JsonIgnore public boolean isEmptyBaseGoodsModelsName() { return this.baseGoodsModelsName == null || this.baseGoodsModelsName.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 getUserName() { return this.userName; } public void setUserName(String userName) { this.userName = userName; this.isset_userName = true; } @JsonIgnore public boolean isEmptyUserName() { return this.userName == null || this.userName.length() == 0; } public Long getSort() { return this.sort; } public void setSort(Long sort) { this.sort = sort; this.isset_sort = true; } @JsonIgnore public boolean isEmptySort() { return this.sort == null; } public Integer getTotalAmount() { return this.totalAmount; } public void setTotalAmount(Integer totalAmount) { this.totalAmount = totalAmount; this.isset_totalAmount = true; } @JsonIgnore public boolean isEmptyTotalAmount() { return this.totalAmount == null; } /** * 重写 toString() 方法 */ @Override public String toString() { return new StringBuilder() .append("id=").append(this.id) .append("counts=").append(this.counts) .append("scrappedCode=").append(this.scrappedCode) .append("scrappedName=").append(this.scrappedName) .append("beiz=").append(this.beiz) .append("formScrappedId=").append(this.formScrappedId) .append("baseGoodsTemplateId=").append(this.baseGoodsTemplateId) .append("goodsTemplateName=").append(this.goodsTemplateName) .append("unit=").append(this.unit) .append("baseGoodsModelsId=").append(this.baseGoodsModelsId) .append("baseGoodsModelsName=").append(this.baseGoodsModelsName) .append("transBusinessId=").append(this.transBusinessId) .append("userName=").append(this.userName) .append("sort=").append(this.sort) .append("totalAmount=").append(this.totalAmount) .toString(); } /** * 克隆 */ public LWhFormScrappedGoods $clone() { LWhFormScrappedGoods l_wh_form_scrapped_goods = new LWhFormScrappedGoods(); // 数据库名称 //l_wh_form_scrapped_goods.setDatabaseName_(this.getDatabaseName_()); // 主键 if (this.isset_id) { l_wh_form_scrapped_goods.setId(this.getId()); } // 普通属性 if (this.isset_counts) { l_wh_form_scrapped_goods.setCounts(this.getCounts()); } if (this.isset_scrappedCode) { l_wh_form_scrapped_goods.setScrappedCode(this.getScrappedCode()); } if (this.isset_scrappedName) { l_wh_form_scrapped_goods.setScrappedName(this.getScrappedName()); } if (this.isset_beiz) { l_wh_form_scrapped_goods.setBeiz(this.getBeiz()); } if (this.isset_formScrappedId) { l_wh_form_scrapped_goods.setFormScrappedId(this.getFormScrappedId()); } if (this.isset_baseGoodsTemplateId) { l_wh_form_scrapped_goods.setBaseGoodsTemplateId(this.getBaseGoodsTemplateId()); } if (this.isset_goodsTemplateName) { l_wh_form_scrapped_goods.setGoodsTemplateName(this.getGoodsTemplateName()); } if (this.isset_unit) { l_wh_form_scrapped_goods.setUnit(this.getUnit()); } if (this.isset_baseGoodsModelsId) { l_wh_form_scrapped_goods.setBaseGoodsModelsId(this.getBaseGoodsModelsId()); } if (this.isset_baseGoodsModelsName) { l_wh_form_scrapped_goods.setBaseGoodsModelsName(this.getBaseGoodsModelsName()); } if (this.isset_transBusinessId) { l_wh_form_scrapped_goods.setTransBusinessId(this.getTransBusinessId()); } if (this.isset_userName) { l_wh_form_scrapped_goods.setUserName(this.getUserName()); } if (this.isset_sort) { l_wh_form_scrapped_goods.setSort(this.getSort()); } if (this.isset_totalAmount) { l_wh_form_scrapped_goods.setTotalAmount(this.getTotalAmount()); } return l_wh_form_scrapped_goods; } }