package com.consum.model.po; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnore; import com.walker.jdbc.BasePo; /** * 表名:L_WH_PROCURE_MODEL_USER * * @author genrator */ @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) public class LWhProcureModelUser extends BasePo { // 序列化版本号 private static final long serialVersionUID = 1L; // 主键 private Long id = null; @JsonIgnore protected boolean isset_id = false; // 属性列表 private Long transBusinessId = null; @JsonIgnore protected boolean isset_transBusinessId = false; private Long procureModelUserRecordId = null; @JsonIgnore protected boolean isset_procureModelUserRecordId = false; private Long whProcureModelId = null; @JsonIgnore protected boolean isset_whProcureModelId = false; private Long baseGoodsModelsId = null; @JsonIgnore protected boolean isset_baseGoodsModelsId = false; private Long nowUserPhone = null; @JsonIgnore protected boolean isset_nowUserPhone = false; private String nowUserName = null; @JsonIgnore protected boolean isset_nowUserName = false; private Integer goodsNum = null; @JsonIgnore protected boolean isset_goodsNum = false; private Integer useCount = null; @JsonIgnore protected boolean isset_useCount = false; /** * 默认构造函数 */ public LWhProcureModelUser() { } /** * 根据主键构造对象 */ public LWhProcureModelUser(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 getTransBusinessId() { return this.transBusinessId; } public void setTransBusinessId(Long transBusinessId) { this.transBusinessId = transBusinessId; this.isset_transBusinessId = true; } @JsonIgnore public boolean isEmptyTransBusinessId() { return this.transBusinessId == null; } public Long getProcureModelUserRecordId() { return this.procureModelUserRecordId; } public void setProcureModelUserRecordId(Long procureModelUserRecordId) { this.procureModelUserRecordId = procureModelUserRecordId; this.isset_procureModelUserRecordId = true; } @JsonIgnore public boolean isEmptyProcureModelUserRecordId() { return this.procureModelUserRecordId == null; } public Long getWhProcureModelId() { return this.whProcureModelId; } public void setWhProcureModelId(Long whProcureModelId) { this.whProcureModelId = whProcureModelId; this.isset_whProcureModelId = true; } @JsonIgnore public boolean isEmptyWhProcureModelId() { return this.whProcureModelId == 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 Long getNowUserPhone() { return this.nowUserPhone; } public void setNowUserPhone(Long nowUserPhone) { this.nowUserPhone = nowUserPhone; this.isset_nowUserPhone = true; } @JsonIgnore public boolean isEmptyNowUserPhone() { return this.nowUserPhone == null; } public String getNowUserName() { return this.nowUserName; } public void setNowUserName(String nowUserName) { this.nowUserName = nowUserName; this.isset_nowUserName = true; } @JsonIgnore public boolean isEmptyNowUserName() { return this.nowUserName == null || this.nowUserName.length() == 0; } public Integer getGoodsNum() { return this.goodsNum; } public void setGoodsNum(Integer goodsNum) { this.goodsNum = goodsNum; this.isset_goodsNum = true; } @JsonIgnore public boolean isEmptyGoodsNum() { return this.goodsNum == null; } public Integer getUseCount() { return this.useCount; } public void setUseCount(Integer useCount) { this.useCount = useCount; this.isset_useCount = true; } @JsonIgnore public boolean isEmptyUseCount() { return this.useCount == null; } /** * 重写 toString() 方法 */ @Override public String toString() { return new StringBuilder() .append("id=").append(this.id) .append("transBusinessId=").append(this.transBusinessId) .append("procureModelUserRecordId=").append(this.procureModelUserRecordId) .append("whProcureModelId=").append(this.whProcureModelId) .append("baseGoodsModelsId=").append(this.baseGoodsModelsId) .append("nowUserPhone=").append(this.nowUserPhone) .append("nowUserName=").append(this.nowUserName) .append("goodsNum=").append(this.goodsNum) .append("useCount=").append(this.useCount) .toString(); } /** * 克隆 */ public LWhProcureModelUser $clone() { LWhProcureModelUser l_wh_procure_model_user = new LWhProcureModelUser(); // 数据库名称 //l_wh_procure_model_user.setDatabaseName_(this.getDatabaseName_()); // 主键 if (this.isset_id) { l_wh_procure_model_user.setId(this.getId()); } // 普通属性 if (this.isset_transBusinessId) { l_wh_procure_model_user.setTransBusinessId(this.getTransBusinessId()); } if (this.isset_procureModelUserRecordId) { l_wh_procure_model_user.setProcureModelUserRecordId(this.getProcureModelUserRecordId()); } if (this.isset_whProcureModelId) { l_wh_procure_model_user.setWhProcureModelId(this.getWhProcureModelId()); } if (this.isset_baseGoodsModelsId) { l_wh_procure_model_user.setBaseGoodsModelsId(this.getBaseGoodsModelsId()); } if (this.isset_nowUserPhone) { l_wh_procure_model_user.setNowUserPhone(this.getNowUserPhone()); } if (this.isset_nowUserName) { l_wh_procure_model_user.setNowUserName(this.getNowUserName()); } if (this.isset_goodsNum) { l_wh_procure_model_user.setGoodsNum(this.getGoodsNum()); } if (this.isset_useCount) { l_wh_procure_model_user.setUseCount(this.getUseCount()); } return l_wh_procure_model_user; } }