|
package com.consum.model.po;
|
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.walker.jdbc.BasePo;
|
|
/**
|
* 表名:WH_GOODS *
|
* @author genrator
|
*/
|
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
|
public class WhGoods extends BasePo<WhGoods> {
|
// 序列化版本号
|
private static final long serialVersionUID = 1L;
|
|
// 主键
|
private Long id = null;
|
@JsonIgnore
|
protected boolean isset_id = false;
|
|
// 属性列表
|
private Long baseGoodsTemplateId = null;
|
@JsonIgnore
|
protected boolean isset_baseGoodsTemplateId = false;
|
|
private String goodsTemplateName = null;
|
@JsonIgnore
|
protected boolean isset_goodsTemplateName = false;
|
|
private Long baseGoodsModelsId = null;
|
@JsonIgnore
|
protected boolean isset_baseGoodsModelsId = false;
|
|
private String baseGoodsModelsName = null;
|
@JsonIgnore
|
protected boolean isset_baseGoodsModelsName = false;
|
|
private Integer whCount = null;
|
@JsonIgnore
|
protected boolean isset_whCount = false;
|
|
private Integer transferCount = null;
|
@JsonIgnore
|
protected boolean isset_transferCount = false;
|
|
private Integer allCount = null;
|
@JsonIgnore
|
protected boolean isset_allCount = false;
|
|
private String firstInputCode = null;
|
@JsonIgnore
|
protected boolean isset_firstInputCode = false;
|
|
private Integer firstInputType = null;
|
@JsonIgnore
|
protected boolean isset_firstInputType = false;
|
|
private Long firstInputHisId = null;
|
@JsonIgnore
|
protected boolean isset_firstInputHisId = false;
|
|
private Long warehouseId = null;
|
@JsonIgnore
|
protected boolean isset_warehouseId = false;
|
|
private String warehouseName = null;
|
@JsonIgnore
|
protected boolean isset_warehouseName = false;
|
|
private String supplier = null;
|
@JsonIgnore
|
protected boolean isset_supplier = false;
|
|
private String unit = null;
|
@JsonIgnore
|
protected boolean isset_unit = false;
|
|
private Double price = null;
|
@JsonIgnore
|
protected boolean isset_price = false;
|
|
private Long procureDate = null;
|
@JsonIgnore
|
protected boolean isset_procureDate = false;
|
|
private Long backDate = null;
|
@JsonIgnore
|
protected boolean isset_backDate = false;
|
|
private Integer states = null;
|
@JsonIgnore
|
protected boolean isset_states = false;
|
|
/**
|
* 默认构造函数
|
*/
|
public WhGoods() {
|
}
|
|
/**
|
* 根据主键构造对象
|
*/
|
public WhGoods(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 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 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 Integer getWhCount() {
|
return this.whCount;
|
}
|
|
public void setWhCount(Integer whCount) {
|
this.whCount = whCount;
|
this.isset_whCount = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyWhCount() {
|
return this.whCount == null;
|
}
|
|
public Integer getTransferCount() {
|
return this.transferCount;
|
}
|
|
public void setTransferCount(Integer transferCount) {
|
this.transferCount = transferCount;
|
this.isset_transferCount = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyTransferCount() {
|
return this.transferCount == null;
|
}
|
|
public Integer getAllCount() {
|
return this.allCount;
|
}
|
|
public void setAllCount(Integer allCount) {
|
this.allCount = allCount;
|
this.isset_allCount = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyAllCount() {
|
return this.allCount == null;
|
}
|
|
public String getFirstInputCode() {
|
return this.firstInputCode;
|
}
|
|
public void setFirstInputCode(String firstInputCode) {
|
this.firstInputCode = firstInputCode;
|
this.isset_firstInputCode = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyFirstInputCode() {
|
return this.firstInputCode == null || this.firstInputCode.length() == 0;
|
}
|
|
public Integer getFirstInputType() {
|
return this.firstInputType;
|
}
|
|
public void setFirstInputType(Integer firstInputType) {
|
this.firstInputType = firstInputType;
|
this.isset_firstInputType = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyFirstInputType() {
|
return this.firstInputType == null;
|
}
|
|
public Long getFirstInputHisId() {
|
return this.firstInputHisId;
|
}
|
|
public void setFirstInputHisId(Long firstInputHisId) {
|
this.firstInputHisId = firstInputHisId;
|
this.isset_firstInputHisId = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyFirstInputHisId() {
|
return this.firstInputHisId == null;
|
}
|
|
public Long getWarehouseId() {
|
return this.warehouseId;
|
}
|
|
public void setWarehouseId(Long warehouseId) {
|
this.warehouseId = warehouseId;
|
this.isset_warehouseId = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyWarehouseId() {
|
return this.warehouseId == null;
|
}
|
|
public String getWarehouseName() {
|
return this.warehouseName;
|
}
|
|
public void setWarehouseName(String warehouseName) {
|
this.warehouseName = warehouseName;
|
this.isset_warehouseName = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyWarehouseName() {
|
return this.warehouseName == null || this.warehouseName.length() == 0;
|
}
|
|
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;
|
}
|
|
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 Long getProcureDate() {
|
return this.procureDate;
|
}
|
|
public void setProcureDate(Long procureDate) {
|
this.procureDate = procureDate;
|
this.isset_procureDate = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyProcureDate() {
|
return this.procureDate == null;
|
}
|
|
public Long getBackDate() {
|
return this.backDate;
|
}
|
|
public void setBackDate(Long backDate) {
|
this.backDate = backDate;
|
this.isset_backDate = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyBackDate() {
|
return this.backDate == null;
|
}
|
|
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;
|
}
|
|
/**
|
* 重写 toString() 方法
|
*/
|
@Override
|
public String toString() {
|
return new StringBuilder()
|
.append("id=").append(this.id)
|
.append("baseGoodsTemplateId=").append(this.baseGoodsTemplateId)
|
.append("goodsTemplateName=").append(this.goodsTemplateName)
|
.append("baseGoodsModelsId=").append(this.baseGoodsModelsId)
|
.append("baseGoodsModelsName=").append(this.baseGoodsModelsName)
|
.append("whCount=").append(this.whCount)
|
.append("transferCount=").append(this.transferCount)
|
.append("allCount=").append(this.allCount)
|
.append("firstInputCode=").append(this.firstInputCode)
|
.append("firstInputType=").append(this.firstInputType)
|
.append("firstInputHisId=").append(this.firstInputHisId)
|
.append("warehouseId=").append(this.warehouseId)
|
.append("warehouseName=").append(this.warehouseName)
|
.append("supplier=").append(this.supplier)
|
.append("unit=").append(this.unit)
|
.append("price=").append(this.price)
|
.append("procureDate=").append(this.procureDate)
|
.append("backDate=").append(this.backDate)
|
.append("states=").append(this.states)
|
.toString();
|
}
|
|
/**
|
* 克隆
|
*/
|
public WhGoods $clone() {
|
WhGoods wh_goods = new WhGoods();
|
|
// 数据库名称
|
//wh_goods.setDatabaseName_(this.getDatabaseName_());
|
|
// 主键
|
if (this.isset_id) {
|
wh_goods.setId(this.getId());
|
}
|
// 普通属性
|
if (this.isset_baseGoodsTemplateId) {
|
wh_goods.setBaseGoodsTemplateId(this.getBaseGoodsTemplateId());
|
}
|
if (this.isset_goodsTemplateName) {
|
wh_goods.setGoodsTemplateName(this.getGoodsTemplateName());
|
}
|
if (this.isset_baseGoodsModelsId) {
|
wh_goods.setBaseGoodsModelsId(this.getBaseGoodsModelsId());
|
}
|
if (this.isset_baseGoodsModelsName) {
|
wh_goods.setBaseGoodsModelsName(this.getBaseGoodsModelsName());
|
}
|
if (this.isset_whCount) {
|
wh_goods.setWhCount(this.getWhCount());
|
}
|
if (this.isset_transferCount) {
|
wh_goods.setTransferCount(this.getTransferCount());
|
}
|
if (this.isset_allCount) {
|
wh_goods.setAllCount(this.getAllCount());
|
}
|
if (this.isset_firstInputCode) {
|
wh_goods.setFirstInputCode(this.getFirstInputCode());
|
}
|
if (this.isset_firstInputType) {
|
wh_goods.setFirstInputType(this.getFirstInputType());
|
}
|
if (this.isset_firstInputHisId) {
|
wh_goods.setFirstInputHisId(this.getFirstInputHisId());
|
}
|
if (this.isset_warehouseId) {
|
wh_goods.setWarehouseId(this.getWarehouseId());
|
}
|
if (this.isset_warehouseName) {
|
wh_goods.setWarehouseName(this.getWarehouseName());
|
}
|
if (this.isset_supplier) {
|
wh_goods.setSupplier(this.getSupplier());
|
}
|
if (this.isset_unit) {
|
wh_goods.setUnit(this.getUnit());
|
}
|
if (this.isset_price) {
|
wh_goods.setPrice(this.getPrice());
|
}
|
if (this.isset_procureDate) {
|
wh_goods.setProcureDate(this.getProcureDate());
|
}
|
if (this.isset_backDate) {
|
wh_goods.setBackDate(this.getBackDate());
|
}
|
if (this.isset_states) {
|
wh_goods.setStates(this.getStates());
|
}
|
return wh_goods;
|
}
|
}
|