|
package com.consum.model.po;
|
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.walker.jdbc.BasePo;
|
|
/**
|
* 表名:WH_FORM_PROCURE_MODEL *
|
* @author genrator
|
*/
|
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
|
public class WhFormProcureModel extends BasePo<WhFormProcureModel> {
|
// 序列化版本号
|
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 String supplier = null;
|
@JsonIgnore
|
protected boolean isset_supplier = 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 Long whFormProcureId = null;
|
@JsonIgnore
|
protected boolean isset_whFormProcureId = false;
|
|
private Long whFormProcureGoodsId = null;
|
@JsonIgnore
|
protected boolean isset_whFormProcureGoodsId = false;
|
|
private Long inWhGoodsDetailsId = null;
|
@JsonIgnore
|
protected boolean isset_inWhGoodsDetailsId = false;
|
|
private String beiz = null;
|
@JsonIgnore
|
protected boolean isset_beiz = false;
|
|
private Long whGoodsId = null;
|
@JsonIgnore
|
protected boolean isset_whGoodsId = false;
|
|
/**
|
* 默认构造函数
|
*/
|
public WhFormProcureModel() {
|
}
|
|
/**
|
* 根据主键构造对象
|
*/
|
public WhFormProcureModel(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 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 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 Long getWhFormProcureId() {
|
return this.whFormProcureId;
|
}
|
|
public void setWhFormProcureId(Long whFormProcureId) {
|
this.whFormProcureId = whFormProcureId;
|
this.isset_whFormProcureId = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyWhFormProcureId() {
|
return this.whFormProcureId == null;
|
}
|
|
public Long getWhFormProcureGoodsId() {
|
return this.whFormProcureGoodsId;
|
}
|
|
public void setWhFormProcureGoodsId(Long whFormProcureGoodsId) {
|
this.whFormProcureGoodsId = whFormProcureGoodsId;
|
this.isset_whFormProcureGoodsId = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyWhFormProcureGoodsId() {
|
return this.whFormProcureGoodsId == null;
|
}
|
|
public Long getInWhGoodsDetailsId() {
|
return this.inWhGoodsDetailsId;
|
}
|
|
public void setInWhGoodsDetailsId(Long inWhGoodsDetailsId) {
|
this.inWhGoodsDetailsId = inWhGoodsDetailsId;
|
this.isset_inWhGoodsDetailsId = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyInWhGoodsDetailsId() {
|
return this.inWhGoodsDetailsId == null;
|
}
|
|
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 getWhGoodsId() {
|
return this.whGoodsId;
|
}
|
|
public void setWhGoodsId(Long whGoodsId) {
|
this.whGoodsId = whGoodsId;
|
this.isset_whGoodsId = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyWhGoodsId() {
|
return this.whGoodsId == 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("supplier=").append(this.supplier)
|
.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("whFormProcureId=").append(this.whFormProcureId)
|
.append("whFormProcureGoodsId=").append(this.whFormProcureGoodsId)
|
.append("inWhGoodsDetailsId=").append(this.inWhGoodsDetailsId)
|
.append("beiz=").append(this.beiz)
|
.append("whGoodsId=").append(this.whGoodsId)
|
.toString();
|
}
|
|
/**
|
* 克隆
|
*/
|
public WhFormProcureModel $clone() {
|
WhFormProcureModel wh_form_procure_model = new WhFormProcureModel();
|
|
// 数据库名称
|
//wh_form_procure_model.setDatabaseName_(this.getDatabaseName_());
|
|
// 主键
|
if (this.isset_id) {
|
wh_form_procure_model.setId(this.getId());
|
}
|
// 普通属性
|
if (this.isset_baseGoodsTemplateId) {
|
wh_form_procure_model.setBaseGoodsTemplateId(this.getBaseGoodsTemplateId());
|
}
|
if (this.isset_goodsTemplateName) {
|
wh_form_procure_model.setGoodsTemplateName(this.getGoodsTemplateName());
|
}
|
if (this.isset_supplier) {
|
wh_form_procure_model.setSupplier(this.getSupplier());
|
}
|
if (this.isset_baseGoodsModelsId) {
|
wh_form_procure_model.setBaseGoodsModelsId(this.getBaseGoodsModelsId());
|
}
|
if (this.isset_baseGoodsModelsName) {
|
wh_form_procure_model.setBaseGoodsModelsName(this.getBaseGoodsModelsName());
|
}
|
if (this.isset_unit) {
|
wh_form_procure_model.setUnit(this.getUnit());
|
}
|
if (this.isset_price) {
|
wh_form_procure_model.setPrice(this.getPrice());
|
}
|
if (this.isset_counts) {
|
wh_form_procure_model.setCounts(this.getCounts());
|
}
|
if (this.isset_whFormProcureId) {
|
wh_form_procure_model.setWhFormProcureId(this.getWhFormProcureId());
|
}
|
if (this.isset_whFormProcureGoodsId) {
|
wh_form_procure_model.setWhFormProcureGoodsId(this.getWhFormProcureGoodsId());
|
}
|
if (this.isset_inWhGoodsDetailsId) {
|
wh_form_procure_model.setInWhGoodsDetailsId(this.getInWhGoodsDetailsId());
|
}
|
if (this.isset_beiz) {
|
wh_form_procure_model.setBeiz(this.getBeiz());
|
}
|
if (this.isset_whGoodsId) {
|
wh_form_procure_model.setWhGoodsId(this.getWhGoodsId());
|
}
|
return wh_form_procure_model;
|
}
|
}
|