|
package com.consum.model.po;
|
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.walker.jdbc.BasePo;
|
|
/**
|
* 表名:L_WH_GOODS *
|
* @author genrator
|
*/
|
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
|
public class LWhGoods extends BasePo<LWhGoods> {
|
// 序列化版本号
|
private static final long serialVersionUID = 1L;
|
|
// 主键
|
private Long id = null;
|
@JsonIgnore
|
protected boolean isset_id = false;
|
|
// 属性列表
|
private Long warehouseId = null;
|
@JsonIgnore
|
protected boolean isset_warehouseId = false;
|
|
private String warehouseName = null;
|
@JsonIgnore
|
protected boolean isset_warehouseName = false;
|
|
private Integer costType = null;
|
@JsonIgnore
|
protected boolean isset_costType = 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 String supplier = null;
|
@JsonIgnore
|
protected boolean isset_supplier = false;
|
|
private Integer buyType = null;
|
@JsonIgnore
|
protected boolean isset_buyType = false;
|
|
private String unit = null;
|
@JsonIgnore
|
protected boolean isset_unit = false;
|
|
private Long price = null;
|
@JsonIgnore
|
protected boolean isset_price = false;
|
|
private Long procureDate = null;
|
@JsonIgnore
|
protected boolean isset_procureDate = false;
|
|
private Integer states = null;
|
@JsonIgnore
|
protected boolean isset_states = false;
|
|
/**
|
* 默认构造函数
|
*/
|
public LWhGoods() {
|
}
|
|
/**
|
* 根据主键构造对象
|
*/
|
public LWhGoods(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 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 Integer getCostType() {
|
return this.costType;
|
}
|
|
public void setCostType(Integer costType) {
|
this.costType = costType;
|
this.isset_costType = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyCostType() {
|
return this.costType == 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 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 Integer getBuyType() {
|
return this.buyType;
|
}
|
|
public void setBuyType(Integer buyType) {
|
this.buyType = buyType;
|
this.isset_buyType = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyBuyType() {
|
return this.buyType == null;
|
}
|
|
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 getPrice() {
|
return this.price;
|
}
|
|
public void setPrice(Long 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 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("warehouseId=").append(this.warehouseId)
|
.append("warehouseName=").append(this.warehouseName)
|
.append("costType=").append(this.costType)
|
.append("baseGoodsTemplateId=").append(this.baseGoodsTemplateId)
|
.append("goodsTemplateName=").append(this.goodsTemplateName)
|
.append("baseGoodsModelsId=").append(this.baseGoodsModelsId)
|
.append("baseGoodsModelsName=").append(this.baseGoodsModelsName)
|
.append("supplier=").append(this.supplier)
|
.append("buyType=").append(this.buyType)
|
.append("unit=").append(this.unit)
|
.append("price=").append(this.price)
|
.append("procureDate=").append(this.procureDate)
|
.append("states=").append(this.states)
|
.toString();
|
}
|
|
/**
|
* 克隆
|
*/
|
public LWhGoods $clone() {
|
LWhGoods l_wh_goods = new LWhGoods();
|
|
// 数据库名称
|
//l_wh_goods.setDatabaseName_(this.getDatabaseName_());
|
|
// 主键
|
if (this.isset_id) {
|
l_wh_goods.setId(this.getId());
|
}
|
// 普通属性
|
if (this.isset_warehouseId) {
|
l_wh_goods.setWarehouseId(this.getWarehouseId());
|
}
|
if (this.isset_warehouseName) {
|
l_wh_goods.setWarehouseName(this.getWarehouseName());
|
}
|
if (this.isset_costType) {
|
l_wh_goods.setCostType(this.getCostType());
|
}
|
if (this.isset_baseGoodsTemplateId) {
|
l_wh_goods.setBaseGoodsTemplateId(this.getBaseGoodsTemplateId());
|
}
|
if (this.isset_goodsTemplateName) {
|
l_wh_goods.setGoodsTemplateName(this.getGoodsTemplateName());
|
}
|
if (this.isset_baseGoodsModelsId) {
|
l_wh_goods.setBaseGoodsModelsId(this.getBaseGoodsModelsId());
|
}
|
if (this.isset_baseGoodsModelsName) {
|
l_wh_goods.setBaseGoodsModelsName(this.getBaseGoodsModelsName());
|
}
|
if (this.isset_supplier) {
|
l_wh_goods.setSupplier(this.getSupplier());
|
}
|
if (this.isset_buyType) {
|
l_wh_goods.setBuyType(this.getBuyType());
|
}
|
if (this.isset_unit) {
|
l_wh_goods.setUnit(this.getUnit());
|
}
|
if (this.isset_price) {
|
l_wh_goods.setPrice(this.getPrice());
|
}
|
if (this.isset_procureDate) {
|
l_wh_goods.setProcureDate(this.getProcureDate());
|
}
|
if (this.isset_states) {
|
l_wh_goods.setStates(this.getStates());
|
}
|
return l_wh_goods;
|
}
|
}
|