package com.ishop.model.po; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnore; import com.walker.jdbc.BasePo; /** * 表名:EB_COUPON * * @author genrator */ @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY) public class EbCoupon extends BasePo { // 序列化版本号 private static final long serialVersionUID = 1L; /** * 用于兼容老写法 */ @JsonIgnore public static final EbCoupon ROW_MAPPER = new EbCoupon(); // 主键 private Integer id = null; @JsonIgnore protected boolean isset_id = false; // 属性列表 private Integer merId = null; @JsonIgnore protected boolean isset_merId = false; private String name = null; @JsonIgnore protected boolean isset_name = false; private Integer publisher = null; @JsonIgnore protected boolean isset_publisher = false; private Integer category = null; @JsonIgnore protected boolean isset_category = false; private Integer receiveType = null; @JsonIgnore protected boolean isset_receiveType = false; private Integer couponType = null; @JsonIgnore protected boolean isset_couponType = false; private Long money = null; @JsonIgnore protected boolean isset_money = false; private Integer discount = null; @JsonIgnore protected boolean isset_discount = false; private Long minPrice = null; @JsonIgnore protected boolean isset_minPrice = false; private Integer isLimited = null; @JsonIgnore protected boolean isset_isLimited = false; private Integer total = null; @JsonIgnore protected boolean isset_total = false; private Integer lastTotal = null; @JsonIgnore protected boolean isset_lastTotal = false; private Integer isTimeReceive = null; @JsonIgnore protected boolean isset_isTimeReceive = false; private Long receiveStartTime = null; @JsonIgnore protected boolean isset_receiveStartTime = false; private Long receiveEndTime = null; @JsonIgnore protected boolean isset_receiveEndTime = false; private Integer isFixedTime = null; @JsonIgnore protected boolean isset_isFixedTime = false; private Long useStartTime = null; @JsonIgnore protected boolean isset_useStartTime = false; private Long useEndTime = null; @JsonIgnore protected boolean isset_useEndTime = false; private Integer day = null; @JsonIgnore protected boolean isset_day = false; private Integer sort = null; @JsonIgnore protected boolean isset_sort = false; private Integer status = null; @JsonIgnore protected boolean isset_status = 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 EbCoupon() { } /** * 根据主键构造对象 */ public EbCoupon(Integer id) { this.setId(id); } /** * 设置主键值 */ @Override public void setPkValue(Object value) { this.setId((Integer) value); } public Integer getId() { return this.id; } public void setId(Integer id) { this.id = id; this.isset_id = true; } @JsonIgnore public boolean isEmptyId() { return this.id == null; } public Integer getMerId() { return this.merId; } public void setMerId(Integer merId) { this.merId = merId; this.isset_merId = true; } @JsonIgnore public boolean isEmptyMerId() { return this.merId == null; } public String getName() { return this.name; } public void setName(String name) { this.name = name; this.isset_name = true; } @JsonIgnore public boolean isEmptyName() { return this.name == null || this.name.length() == 0; } public Integer getPublisher() { return this.publisher; } public void setPublisher(Integer publisher) { this.publisher = publisher; this.isset_publisher = true; } @JsonIgnore public boolean isEmptyPublisher() { return this.publisher == null; } public Integer getCategory() { return this.category; } public void setCategory(Integer category) { this.category = category; this.isset_category = true; } @JsonIgnore public boolean isEmptyCategory() { return this.category == null; } public Integer getReceiveType() { return this.receiveType; } public void setReceiveType(Integer receiveType) { this.receiveType = receiveType; this.isset_receiveType = true; } @JsonIgnore public boolean isEmptyReceiveType() { return this.receiveType == null; } public Integer getCouponType() { return this.couponType; } public void setCouponType(Integer couponType) { this.couponType = couponType; this.isset_couponType = true; } @JsonIgnore public boolean isEmptyCouponType() { return this.couponType == null; } public Long getMoney() { return this.money; } public void setMoney(Long money) { this.money = money; this.isset_money = true; } @JsonIgnore public boolean isEmptyMoney() { return this.money == 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 Long getMinPrice() { return this.minPrice; } public void setMinPrice(Long minPrice) { this.minPrice = minPrice; this.isset_minPrice = true; } @JsonIgnore public boolean isEmptyMinPrice() { return this.minPrice == null; } public Integer getIsLimited() { return this.isLimited; } public void setIsLimited(Integer isLimited) { this.isLimited = isLimited; this.isset_isLimited = true; } @JsonIgnore public boolean isEmptyIsLimited() { return this.isLimited == null; } public Integer getTotal() { return this.total; } public void setTotal(Integer total) { this.total = total; this.isset_total = true; } @JsonIgnore public boolean isEmptyTotal() { return this.total == null; } public Integer getLastTotal() { return this.lastTotal; } public void setLastTotal(Integer lastTotal) { this.lastTotal = lastTotal; this.isset_lastTotal = true; } @JsonIgnore public boolean isEmptyLastTotal() { return this.lastTotal == null; } public Integer getIsTimeReceive() { return this.isTimeReceive; } public void setIsTimeReceive(Integer isTimeReceive) { this.isTimeReceive = isTimeReceive; this.isset_isTimeReceive = true; } @JsonIgnore public boolean isEmptyIsTimeReceive() { return this.isTimeReceive == null; } public Long getReceiveStartTime() { return this.receiveStartTime; } public void setReceiveStartTime(Long receiveStartTime) { this.receiveStartTime = receiveStartTime; this.isset_receiveStartTime = true; } @JsonIgnore public boolean isEmptyReceiveStartTime() { return this.receiveStartTime == null; } public Long getReceiveEndTime() { return this.receiveEndTime; } public void setReceiveEndTime(Long receiveEndTime) { this.receiveEndTime = receiveEndTime; this.isset_receiveEndTime = true; } @JsonIgnore public boolean isEmptyReceiveEndTime() { return this.receiveEndTime == null; } public Integer getIsFixedTime() { return this.isFixedTime; } public void setIsFixedTime(Integer isFixedTime) { this.isFixedTime = isFixedTime; this.isset_isFixedTime = true; } @JsonIgnore public boolean isEmptyIsFixedTime() { return this.isFixedTime == null; } public Long getUseStartTime() { return this.useStartTime; } public void setUseStartTime(Long useStartTime) { this.useStartTime = useStartTime; this.isset_useStartTime = true; } @JsonIgnore public boolean isEmptyUseStartTime() { return this.useStartTime == null; } public Long getUseEndTime() { return this.useEndTime; } public void setUseEndTime(Long useEndTime) { this.useEndTime = useEndTime; this.isset_useEndTime = true; } @JsonIgnore public boolean isEmptyUseEndTime() { return this.useEndTime == null; } public Integer getDay() { return this.day; } public void setDay(Integer day) { this.day = day; this.isset_day = true; } @JsonIgnore public boolean isEmptyDay() { return this.day == null; } public Integer getSort() { return this.sort; } public void setSort(Integer sort) { this.sort = sort; this.isset_sort = true; } @JsonIgnore public boolean isEmptySort() { return this.sort == null; } public Integer getStatus() { return this.status; } public void setStatus(Integer status) { this.status = status; this.isset_status = true; } @JsonIgnore public boolean isEmptyStatus() { return this.status == 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("merId=").append(this.merId) .append("name=").append(this.name) .append("publisher=").append(this.publisher) .append("category=").append(this.category) .append("receiveType=").append(this.receiveType) .append("couponType=").append(this.couponType) .append("money=").append(this.money) .append("discount=").append(this.discount) .append("minPrice=").append(this.minPrice) .append("isLimited=").append(this.isLimited) .append("total=").append(this.total) .append("lastTotal=").append(this.lastTotal) .append("isTimeReceive=").append(this.isTimeReceive) .append("receiveStartTime=").append(this.receiveStartTime) .append("receiveEndTime=").append(this.receiveEndTime) .append("isFixedTime=").append(this.isFixedTime) .append("useStartTime=").append(this.useStartTime) .append("useEndTime=").append(this.useEndTime) .append("day=").append(this.day) .append("sort=").append(this.sort) .append("status=").append(this.status) .append("isDel=").append(this.isDel) .append("createTime=").append(this.createTime) .append("updateTime=").append(this.updateTime) .toString(); } /** * 克隆 */ public EbCoupon $clone() { EbCoupon eb_coupon = new EbCoupon(); // 数据库名称 //eb_coupon.setDatabaseName_(this.getDatabaseName_()); // 主键 if (this.isset_id) { eb_coupon.setId(this.getId()); } // 普通属性 if (this.isset_merId) { eb_coupon.setMerId(this.getMerId()); } if (this.isset_name) { eb_coupon.setName(this.getName()); } if (this.isset_publisher) { eb_coupon.setPublisher(this.getPublisher()); } if (this.isset_category) { eb_coupon.setCategory(this.getCategory()); } if (this.isset_receiveType) { eb_coupon.setReceiveType(this.getReceiveType()); } if (this.isset_couponType) { eb_coupon.setCouponType(this.getCouponType()); } if (this.isset_money) { eb_coupon.setMoney(this.getMoney()); } if (this.isset_discount) { eb_coupon.setDiscount(this.getDiscount()); } if (this.isset_minPrice) { eb_coupon.setMinPrice(this.getMinPrice()); } if (this.isset_isLimited) { eb_coupon.setIsLimited(this.getIsLimited()); } if (this.isset_total) { eb_coupon.setTotal(this.getTotal()); } if (this.isset_lastTotal) { eb_coupon.setLastTotal(this.getLastTotal()); } if (this.isset_isTimeReceive) { eb_coupon.setIsTimeReceive(this.getIsTimeReceive()); } if (this.isset_receiveStartTime) { eb_coupon.setReceiveStartTime(this.getReceiveStartTime()); } if (this.isset_receiveEndTime) { eb_coupon.setReceiveEndTime(this.getReceiveEndTime()); } if (this.isset_isFixedTime) { eb_coupon.setIsFixedTime(this.getIsFixedTime()); } if (this.isset_useStartTime) { eb_coupon.setUseStartTime(this.getUseStartTime()); } if (this.isset_useEndTime) { eb_coupon.setUseEndTime(this.getUseEndTime()); } if (this.isset_day) { eb_coupon.setDay(this.getDay()); } if (this.isset_sort) { eb_coupon.setSort(this.getSort()); } if (this.isset_status) { eb_coupon.setStatus(this.getStatus()); } if (this.isset_isDel) { eb_coupon.setIsDel(this.getIsDel()); } if (this.isset_createTime) { eb_coupon.setCreateTime(this.getCreateTime()); } if (this.isset_updateTime) { eb_coupon.setUpdateTime(this.getUpdateTime()); } return eb_coupon; } }