package com.consum.model.po; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnore; import com.walker.jdbc.BasePo; /** * 表名:WH_FORM_INVENTORY_MODEL * * @author genrator */ @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) public class WhFormInventoryModel extends BasePo { // 序列化版本号 private static final long serialVersionUID = 1L; // 主键 private Long id = null; @JsonIgnore protected boolean isset_id = false; // 属性列表 private Integer counts = null; @JsonIgnore protected boolean isset_counts = false; private Long whFormInventoryId = null; @JsonIgnore protected boolean isset_whFormInventoryId = false; private Integer inventoryResult = null; @JsonIgnore protected boolean isset_inventoryResult = false; private Long whGoodsDetailsId = null; @JsonIgnore protected boolean isset_whGoodsDetailsId = false; private String beiz = null; @JsonIgnore protected boolean isset_beiz = false; private Long whFormInventoryGoodsId = null; @JsonIgnore protected boolean isset_whFormInventoryGoodsId = false; private Long whGoodsId = null; @JsonIgnore protected boolean isset_whGoodsId = false; /** * 默认构造函数 */ public WhFormInventoryModel() { } /** * 根据主键构造对象 */ public WhFormInventoryModel(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 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 getWhFormInventoryId() { return this.whFormInventoryId; } public void setWhFormInventoryId(Long whFormInventoryId) { this.whFormInventoryId = whFormInventoryId; this.isset_whFormInventoryId = true; } @JsonIgnore public boolean isEmptyWhFormInventoryId() { return this.whFormInventoryId == null; } public Integer getInventoryResult() { return this.inventoryResult; } public void setInventoryResult(Integer inventoryResult) { this.inventoryResult = inventoryResult; this.isset_inventoryResult = true; } @JsonIgnore public boolean isEmptyInventoryResult() { return this.inventoryResult == null; } public Long getWhGoodsDetailsId() { return this.whGoodsDetailsId; } public void setWhGoodsDetailsId(Long whGoodsDetailsId) { this.whGoodsDetailsId = whGoodsDetailsId; this.isset_whGoodsDetailsId = true; } @JsonIgnore public boolean isEmptyWhGoodsDetailsId() { return this.whGoodsDetailsId == 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 getWhFormInventoryGoodsId() { return this.whFormInventoryGoodsId; } public void setWhFormInventoryGoodsId(Long whFormInventoryGoodsId) { this.whFormInventoryGoodsId = whFormInventoryGoodsId; this.isset_whFormInventoryGoodsId = true; } @JsonIgnore public boolean isEmptyWhFormInventoryGoodsId() { return this.whFormInventoryGoodsId == null; } 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("counts=").append(this.counts) .append("whFormInventoryId=").append(this.whFormInventoryId) .append("inventoryResult=").append(this.inventoryResult) .append("whGoodsDetailsId=").append(this.whGoodsDetailsId) .append("beiz=").append(this.beiz) .append("whFormInventoryGoodsId=").append(this.whFormInventoryGoodsId) .append("whGoodsId=").append(this.whGoodsId) .toString(); } /** * 克隆 */ public WhFormInventoryModel $clone() { WhFormInventoryModel wh_form_inventory_model = new WhFormInventoryModel(); // 数据库名称 //wh_form_inventory_model.setDatabaseName_(this.getDatabaseName_()); // 主键 if (this.isset_id) { wh_form_inventory_model.setId(this.getId()); } // 普通属性 if (this.isset_counts) { wh_form_inventory_model.setCounts(this.getCounts()); } if (this.isset_whFormInventoryId) { wh_form_inventory_model.setWhFormInventoryId(this.getWhFormInventoryId()); } if (this.isset_inventoryResult) { wh_form_inventory_model.setInventoryResult(this.getInventoryResult()); } if (this.isset_whGoodsDetailsId) { wh_form_inventory_model.setWhGoodsDetailsId(this.getWhGoodsDetailsId()); } if (this.isset_beiz) { wh_form_inventory_model.setBeiz(this.getBeiz()); } if (this.isset_whFormInventoryGoodsId) { wh_form_inventory_model.setWhFormInventoryGoodsId(this.getWhFormInventoryGoodsId()); } if (this.isset_whGoodsId) { wh_form_inventory_model.setWhGoodsId(this.getWhGoodsId()); } return wh_form_inventory_model; } }