|
package com.ishop.model.po;
|
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.walker.jdbc.BasePo;
|
|
/**
|
* 表名:EB_USER_LEVEL *
|
* @author genrator
|
*/
|
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
|
public class EbUserLevel extends BasePo<EbUserLevel> {
|
// 序列化版本号
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 用于兼容老写法
|
*/
|
@JsonIgnore
|
public static final EbUserLevel ROW_MAPPER = new EbUserLevel();
|
|
// 主键
|
private Long id = null;
|
@JsonIgnore
|
protected boolean isset_id = false;
|
|
// 属性列表
|
private Long uid = null;
|
@JsonIgnore
|
protected boolean isset_uid = false;
|
|
private Integer levelId = null;
|
@JsonIgnore
|
protected boolean isset_levelId = false;
|
|
private Integer grade = null;
|
@JsonIgnore
|
protected boolean isset_grade = false;
|
|
private Integer discount = null;
|
@JsonIgnore
|
protected boolean isset_discount = false;
|
|
private String mark = null;
|
@JsonIgnore
|
protected boolean isset_mark = false;
|
|
private Long expiredTime = null;
|
@JsonIgnore
|
protected boolean isset_expiredTime = false;
|
|
private Integer isDel = null;
|
@JsonIgnore
|
protected boolean isset_isDel = false;
|
|
private Long createTime = null;
|
@JsonIgnore
|
protected boolean isset_createTime = false;
|
|
private Long updateTime = null;
|
@JsonIgnore
|
protected boolean isset_updateTime = false;
|
|
/**
|
* 默认构造函数
|
*/
|
public EbUserLevel() {
|
}
|
|
/**
|
* 根据主键构造对象
|
*/
|
public EbUserLevel(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 getUid() {
|
return this.uid;
|
}
|
|
public void setUid(Long uid) {
|
this.uid = uid;
|
this.isset_uid = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyUid() {
|
return this.uid == null;
|
}
|
|
public Integer getLevelId() {
|
return this.levelId;
|
}
|
|
public void setLevelId(Integer levelId) {
|
this.levelId = levelId;
|
this.isset_levelId = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyLevelId() {
|
return this.levelId == null;
|
}
|
|
public Integer getGrade() {
|
return this.grade;
|
}
|
|
public void setGrade(Integer grade) {
|
this.grade = grade;
|
this.isset_grade = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyGrade() {
|
return this.grade == null;
|
}
|
|
public Integer getDiscount() {
|
return this.discount;
|
}
|
|
public void setDiscount(Integer discount) {
|
this.discount = discount;
|
this.isset_discount = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyDiscount() {
|
return this.discount == null;
|
}
|
|
public String getMark() {
|
return this.mark;
|
}
|
|
public void setMark(String mark) {
|
this.mark = mark;
|
this.isset_mark = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyMark() {
|
return this.mark == null || this.mark.length() == 0;
|
}
|
|
public Long getExpiredTime() {
|
return this.expiredTime;
|
}
|
|
public void setExpiredTime(Long expiredTime) {
|
this.expiredTime = expiredTime;
|
this.isset_expiredTime = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyExpiredTime() {
|
return this.expiredTime == null;
|
}
|
|
public Integer getIsDel() {
|
return this.isDel;
|
}
|
|
public void setIsDel(Integer isDel) {
|
this.isDel = isDel;
|
this.isset_isDel = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyIsDel() {
|
return this.isDel == null;
|
}
|
|
public Long getCreateTime() {
|
return this.createTime;
|
}
|
|
public void setCreateTime(Long createTime) {
|
this.createTime = createTime;
|
this.isset_createTime = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyCreateTime() {
|
return this.createTime == null;
|
}
|
|
public Long getUpdateTime() {
|
return this.updateTime;
|
}
|
|
public void setUpdateTime(Long updateTime) {
|
this.updateTime = updateTime;
|
this.isset_updateTime = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyUpdateTime() {
|
return this.updateTime == null;
|
}
|
|
/**
|
* 重写 toString() 方法
|
*/
|
@Override
|
public String toString() {
|
return new StringBuilder()
|
.append("id=").append(this.id)
|
.append("uid=").append(this.uid)
|
.append("levelId=").append(this.levelId)
|
.append("grade=").append(this.grade)
|
.append("discount=").append(this.discount)
|
.append("mark=").append(this.mark)
|
.append("expiredTime=").append(this.expiredTime)
|
.append("isDel=").append(this.isDel)
|
.append("createTime=").append(this.createTime)
|
.append("updateTime=").append(this.updateTime)
|
.toString();
|
}
|
|
/**
|
* 克隆
|
*/
|
public EbUserLevel $clone() {
|
EbUserLevel eb_user_level = new EbUserLevel();
|
|
// 数据库名称
|
//eb_user_level.setDatabaseName_(this.getDatabaseName_());
|
|
// 主键
|
if (this.isset_id) {
|
eb_user_level.setId(this.getId());
|
}
|
// 普通属性
|
if (this.isset_uid) {
|
eb_user_level.setUid(this.getUid());
|
}
|
if (this.isset_levelId) {
|
eb_user_level.setLevelId(this.getLevelId());
|
}
|
if (this.isset_grade) {
|
eb_user_level.setGrade(this.getGrade());
|
}
|
if (this.isset_discount) {
|
eb_user_level.setDiscount(this.getDiscount());
|
}
|
if (this.isset_mark) {
|
eb_user_level.setMark(this.getMark());
|
}
|
if (this.isset_expiredTime) {
|
eb_user_level.setExpiredTime(this.getExpiredTime());
|
}
|
if (this.isset_isDel) {
|
eb_user_level.setIsDel(this.getIsDel());
|
}
|
if (this.isset_createTime) {
|
eb_user_level.setCreateTime(this.getCreateTime());
|
}
|
if (this.isset_updateTime) {
|
eb_user_level.setUpdateTime(this.getUpdateTime());
|
}
|
return eb_user_level;
|
}
|
}
|