package com.stylefeng.guns.modular.system.model; import com.baomidou.mybatisplus.enums.IdType; import java.math.BigDecimal; 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; /** *

* 用户优惠券记录 *

* * @author stylefeng * @since 2020-06-17 */ @TableName("t_user_coupon_record") public class UserCouponRecord extends Model { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) private Integer id; /** * 金额 */ private BigDecimal money; /** * 满减金额 */ private BigDecimal fullMoney; /** * 过期时间 */ private Date expirationTime; /** * 获取时间 */ private Date insertTime; /** * 公司id */ private Integer companyId; /** * 状态(1=未使用,2=已使用,3=已过期) */ private Integer state; /** * 使用结束时间 */ private Date endTime; /** * 优惠券使用类型(0=通用,1=快车,2=出租车,3=城际,4=小件物流) */ private Integer couponUseType; /** * 优惠券类型(1=抵扣,2=满减) */ private Integer couponType; /** * 用户id */ private Integer userId; /** * 优惠券发放id */ private Integer couponId; /** * 活动id */ private Integer couponActivityId; /** * 活动类型(1=赠送活动,2=注册,3=邀请,4=充值) */ private Integer activityType; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public BigDecimal getMoney() { return money; } public void setMoney(BigDecimal money) { this.money = money; } public BigDecimal getFullMoney() { return fullMoney; } public void setFullMoney(BigDecimal fullMoney) { this.fullMoney = fullMoney; } public Date getExpirationTime() { return expirationTime; } public void setExpirationTime(Date expirationTime) { this.expirationTime = expirationTime; } public Date getInsertTime() { return insertTime; } public void setInsertTime(Date insertTime) { this.insertTime = insertTime; } public Integer getCompanyId() { return companyId; } public void setCompanyId(Integer companyId) { this.companyId = companyId; } public Integer getState() { return state; } public void setState(Integer state) { this.state = state; } public Integer getCouponUseType() { return couponUseType; } public void setCouponUseType(Integer couponUseType) { this.couponUseType = couponUseType; } public Integer getCouponType() { return couponType; } public void setCouponType(Integer couponType) { this.couponType = couponType; } 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 getCouponActivityId() { return couponActivityId; } public void setCouponActivityId(Integer couponActivityId) { this.couponActivityId = couponActivityId; } public Integer getActivityType() { return activityType; } public void setActivityType(Integer activityType) { this.activityType = activityType; } public Date getEndTime() { return endTime; } public void setEndTime(Date endTime) { this.endTime = endTime; } @Override protected Serializable pkVal() { return this.id; } @Override public String toString() { return "UserCouponRecord{" + "id=" + id + ", money=" + money + ", fullMoney=" + fullMoney + ", expirationTime=" + expirationTime + ", insertTime=" + insertTime + ", companyId=" + companyId + ", state=" + state + ", couponUseType=" + couponUseType + ", couponType=" + couponType + ", userId=" + userId + ", couponId=" + couponId + ", couponActivityId=" + couponActivityId + ", activityType=" + activityType + "}"; } }