package com.consum.model.po; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnore; import com.walker.jdbc.BasePo; /** * 表名:WH_WARNING_CONFIG * * @author genrator */ @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) public class WhWarningConfig extends BasePo { // 序列化版本号 private static final long serialVersionUID = 1L; // 主键 private Long id = null; @JsonIgnore protected boolean isset_id = false; // 属性列表 private Integer warehouseType = null; @JsonIgnore protected boolean isset_warehouseType = false; private Long baseWarehouseId = null; @JsonIgnore protected boolean isset_baseWarehouseId = false; private Long baseGoodsTemplateId = null; @JsonIgnore protected boolean isset_baseGoodsTemplateId = false; private Long baseGoodsModelsId = null; @JsonIgnore protected boolean isset_baseGoodsModelsId = false; private Integer goodsType = null; @JsonIgnore protected boolean isset_goodsType = false; private Integer upperLimit = null; @JsonIgnore protected boolean isset_upperLimit = false; private Integer lowerLimit = null; @JsonIgnore protected boolean isset_lowerLimit = false; /** * 默认构造函数 */ public WhWarningConfig() { } /** * 根据主键构造对象 */ public WhWarningConfig(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 getWarehouseType() { return this.warehouseType; } public void setWarehouseType(Integer warehouseType) { this.warehouseType = warehouseType; this.isset_warehouseType = true; } @JsonIgnore public boolean isEmptyWarehouseType() { return this.warehouseType == null; } public Long getBaseWarehouseId() { return this.baseWarehouseId; } public void setBaseWarehouseId(Long baseWarehouseId) { this.baseWarehouseId = baseWarehouseId; this.isset_baseWarehouseId = true; } @JsonIgnore public boolean isEmptyBaseWarehouseId() { return this.baseWarehouseId == 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 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 Integer getGoodsType() { return this.goodsType; } public void setGoodsType(Integer goodsType) { this.goodsType = goodsType; this.isset_goodsType = true; } @JsonIgnore public boolean isEmptyGoodsType() { return this.goodsType == null; } public Integer getUpperLimit() { return this.upperLimit; } public void setUpperLimit(Integer upperLimit) { this.upperLimit = upperLimit; this.isset_upperLimit = true; } @JsonIgnore public boolean isEmptyUpperLimit() { return this.upperLimit == null; } public Integer getLowerLimit() { return this.lowerLimit; } public void setLowerLimit(Integer lowerLimit) { this.lowerLimit = lowerLimit; this.isset_lowerLimit = true; } @JsonIgnore public boolean isEmptyLowerLimit() { return this.lowerLimit == null; } /** * 重写 toString() 方法 */ @Override public String toString() { return new StringBuilder() .append("id=").append(this.id) .append("warehouseType=").append(this.warehouseType) .append("baseWarehouseId=").append(this.baseWarehouseId) .append("baseGoodsTemplateId=").append(this.baseGoodsTemplateId) .append("baseGoodsModelsId=").append(this.baseGoodsModelsId) .append("goodsType=").append(this.goodsType) .append("upperLimit=").append(this.upperLimit) .append("lowerLimit=").append(this.lowerLimit) .toString(); } /** * 克隆 */ public WhWarningConfig $clone() { WhWarningConfig wh_warning_config = new WhWarningConfig(); // 数据库名称 //wh_warning_config.setDatabaseName_(this.getDatabaseName_()); // 主键 if (this.isset_id) { wh_warning_config.setId(this.getId()); } // 普通属性 if (this.isset_warehouseType) { wh_warning_config.setWarehouseType(this.getWarehouseType()); } if (this.isset_baseWarehouseId) { wh_warning_config.setBaseWarehouseId(this.getBaseWarehouseId()); } if (this.isset_baseGoodsTemplateId) { wh_warning_config.setBaseGoodsTemplateId(this.getBaseGoodsTemplateId()); } if (this.isset_baseGoodsModelsId) { wh_warning_config.setBaseGoodsModelsId(this.getBaseGoodsModelsId()); } if (this.isset_goodsType) { wh_warning_config.setGoodsType(this.getGoodsType()); } if (this.isset_upperLimit) { wh_warning_config.setUpperLimit(this.getUpperLimit()); } if (this.isset_lowerLimit) { wh_warning_config.setLowerLimit(this.getLowerLimit()); } return wh_warning_config; } }