package com.consum.model.po; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnore; import com.walker.jdbc.BasePo; /** * 表名:L_WH_PROCURE_MODEL * * @author genrator */ @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) public class LWhProcureModel extends BasePo { // 序列化版本号 private static final long serialVersionUID = 1L; // 主键 private Long id = null; @JsonIgnore protected boolean isset_id = false; // 属性列表 private Long fromProcureGoodsId = null; @JsonIgnore protected boolean isset_fromProcureGoodsId = false; private Integer businessType = null; @JsonIgnore protected boolean isset_businessType = false; private Long businessId = null; @JsonIgnore protected boolean isset_businessId = false; private Long baseGoodsModelsId = null; @JsonIgnore protected boolean isset_baseGoodsModelsId = false; private String baseGoodsModelsName = null; @JsonIgnore protected boolean isset_baseGoodsModelsName = false; private String unit = null; @JsonIgnore protected boolean isset_unit = false; private Double price = null; @JsonIgnore protected boolean isset_price = false; private Integer counts = null; @JsonIgnore protected boolean isset_counts = false; private Integer worehouseCount = null; @JsonIgnore protected boolean isset_worehouseCount = false; private String supplier = null; @JsonIgnore protected boolean isset_supplier = false; /** * 默认构造函数 */ public LWhProcureModel() { } /** * 根据主键构造对象 */ public LWhProcureModel(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 getFromProcureGoodsId() { return this.fromProcureGoodsId; } public void setFromProcureGoodsId(Long fromProcureGoodsId) { this.fromProcureGoodsId = fromProcureGoodsId; this.isset_fromProcureGoodsId = true; } @JsonIgnore public boolean isEmptyFromProcureGoodsId() { return this.fromProcureGoodsId == null; } public Integer getBusinessType() { return this.businessType; } public void setBusinessType(Integer businessType) { this.businessType = businessType; this.isset_businessType = true; } @JsonIgnore public boolean isEmptyBusinessType() { return this.businessType == null; } public Long getBusinessId() { return this.businessId; } public void setBusinessId(Long businessId) { this.businessId = businessId; this.isset_businessId = true; } @JsonIgnore public boolean isEmptyBusinessId() { return this.businessId == null; } 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 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 Double getPrice() { return this.price; } public void setPrice(Double price) { this.price = price; this.isset_price = true; } @JsonIgnore public boolean isEmptyPrice() { return this.price == 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 Integer getWorehouseCount() { return this.worehouseCount; } public void setWorehouseCount(Integer worehouseCount) { this.worehouseCount = worehouseCount; this.isset_worehouseCount = true; } @JsonIgnore public boolean isEmptyWorehouseCount() { return this.worehouseCount == null; } public String getSupplier() { return this.supplier; } public void setSupplier(String supplier) { this.supplier = supplier; this.isset_supplier = true; } @JsonIgnore public boolean isEmptySupplier() { return this.supplier == null || this.supplier.length() == 0; } /** * 重写 toString() 方法 */ @Override public String toString() { return new StringBuilder() .append("id=").append(this.id) .append("fromProcureGoodsId=").append(this.fromProcureGoodsId) .append("businessType=").append(this.businessType) .append("businessId=").append(this.businessId) .append("baseGoodsModelsId=").append(this.baseGoodsModelsId) .append("baseGoodsModelsName=").append(this.baseGoodsModelsName) .append("unit=").append(this.unit) .append("price=").append(this.price) .append("counts=").append(this.counts) .append("worehouseCount=").append(this.worehouseCount) .append("supplier=").append(this.supplier) .toString(); } /** * 克隆 */ public LWhProcureModel $clone() { LWhProcureModel l_wh_procure_model = new LWhProcureModel(); // 数据库名称 //l_wh_procure_model.setDatabaseName_(this.getDatabaseName_()); // 主键 if (this.isset_id) { l_wh_procure_model.setId(this.getId()); } // 普通属性 if (this.isset_fromProcureGoodsId) { l_wh_procure_model.setFromProcureGoodsId(this.getFromProcureGoodsId()); } if (this.isset_businessType) { l_wh_procure_model.setBusinessType(this.getBusinessType()); } if (this.isset_businessId) { l_wh_procure_model.setBusinessId(this.getBusinessId()); } if (this.isset_baseGoodsModelsId) { l_wh_procure_model.setBaseGoodsModelsId(this.getBaseGoodsModelsId()); } if (this.isset_baseGoodsModelsName) { l_wh_procure_model.setBaseGoodsModelsName(this.getBaseGoodsModelsName()); } if (this.isset_unit) { l_wh_procure_model.setUnit(this.getUnit()); } if (this.isset_price) { l_wh_procure_model.setPrice(this.getPrice()); } if (this.isset_counts) { l_wh_procure_model.setCounts(this.getCounts()); } if (this.isset_worehouseCount) { l_wh_procure_model.setWorehouseCount(this.getWorehouseCount()); } if (this.isset_supplier) { l_wh_procure_model.setSupplier(this.getSupplier()); } return l_wh_procure_model; } }