package com.stylefeng.guns.modular.system.model;
|
|
import com.baomidou.mybatisplus.enums.IdType;
|
import java.util.Date;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.activerecord.Model;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
|
/**
|
* <p>
|
* 用户优惠券中间表
|
* </p>
|
*
|
* @author stylefeng
|
* @since 2023-02-28
|
*/
|
@TableName("t_user_to_coupon")
|
public class TUserToCoupon extends Model<TUserToCoupon> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
/**
|
* 用户id
|
*/
|
private Integer userId;
|
/**
|
* 优惠券id
|
*/
|
private Integer couponId;
|
/**
|
* 领取总数量
|
*/
|
private Integer couponTotal;
|
/**
|
* 有效数量
|
*/
|
private Integer validCount;
|
/**
|
* 过期时间
|
*/
|
private Date expireTime;
|
/**
|
* 创建时间-领取时间
|
*/
|
private Date createTime;
|
/**
|
* 状态 1正常 2冻结 3删除
|
*/
|
private Integer status;
|
|
/**
|
* 过期数量
|
*/
|
private Integer expireCount;
|
|
/**
|
* 角色类型 1=平台 2=分公司 3=加盟商
|
*/
|
private Integer roleType;
|
|
/**
|
* 公司id
|
*/
|
private Integer objectId;
|
|
public Integer getRoleType() {
|
return roleType;
|
}
|
|
public void setRoleType(Integer roleType) {
|
this.roleType = roleType;
|
}
|
|
public Integer getObjectId() {
|
return objectId;
|
}
|
|
public void setObjectId(Integer objectId) {
|
this.objectId = objectId;
|
}
|
|
public Integer getExpireCount() {
|
return expireCount;
|
}
|
|
public void setExpireCount(Integer expireCount) {
|
this.expireCount = expireCount;
|
}
|
|
public Integer getId() {
|
return id;
|
}
|
|
public void setId(Integer id) {
|
this.id = id;
|
}
|
|
public Integer getUserId() {
|
return userId;
|
}
|
|
public void setUserId(Integer userId) {
|
this.userId = userId;
|
}
|
|
public Integer getCouponId() {
|
return couponId;
|
}
|
|
public void setCouponId(Integer couponId) {
|
this.couponId = couponId;
|
}
|
|
public Integer getCouponTotal() {
|
return couponTotal;
|
}
|
|
public void setCouponTotal(Integer couponTotal) {
|
this.couponTotal = couponTotal;
|
}
|
|
public Integer getValidCount() {
|
return validCount;
|
}
|
|
public void setValidCount(Integer validCount) {
|
this.validCount = validCount;
|
}
|
|
public Date getExpireTime() {
|
return expireTime;
|
}
|
|
public void setExpireTime(Date expireTime) {
|
this.expireTime = expireTime;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public Integer getStatus() {
|
return status;
|
}
|
|
public void setStatus(Integer status) {
|
this.status = status;
|
}
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
@Override
|
public String toString() {
|
return "TUserToCoupon{" +
|
"id=" + id +
|
", userId=" + userId +
|
", couponId=" + couponId +
|
", couponTotal=" + couponTotal +
|
", validCount=" + validCount +
|
", expireTime=" + expireTime +
|
", createTime=" + createTime +
|
", status=" + status +
|
"}";
|
}
|
}
|