admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
fanli/src/main/java/com/yeshi/fanli/entity/bus/user/UserSystemCoupon.java
@@ -1,165 +1,196 @@
package com.yeshi.fanli.entity.bus.user;
import java.util.Date;
import org.yeshi.utils.mybatis.Column;
import org.yeshi.utils.mybatis.Table;
import com.google.gson.annotations.Expose;
import com.yeshi.fanli.entity.system.SystemCoupon;
/**
 * 用户获得券
 * @author Administrator
 *
 */
@Table("yeshi_ec_user_system_coupon")
public class UserSystemCoupon {
   // 状态:未使用1、使用中2、已使用3、已过期4
   public final static int STATE_CAN_USE = 1;
   public final static int STATE_IN_USE = 2;
   public final static int STATE_END_USE = 3;
   public final static int STATE_OVERDUE = 4;
   // 来源: 新人抽奖、邀请奖励
   public final static String SOURCE_CHOUJIANG = "新人抽奖";
   public final static String SOURCE_YAOQING = "邀请奖励";
   public final static String SOURCE_SYSTEM_PUSH = "系统赠送";
   @Expose
   @Column(name = "usc_id")
   private Long id;
   // 用户id
   @Column(name = "usc_uid")
   private Long uid;
   // 券
   @Column(name = "usc_coupon_id")
   private SystemCoupon systemCoupon;
   // 券来源
   @Expose
   @Column(name = "usc_source")
   private String source;
   // 状态
   @Expose
   @Column(name = "usc_state")
   private Integer state;
   // 激活状态   未激活0 已激活1
   @Expose
   @Column(name = "usc_state_activate")
   private Integer stateActivated;
   // 起始时间
   @Column(name = "usc_start_time")
   private Date startTime;
   // 结束时间
   @Column(name = "usc_end_time")
   private Date endTime;
   // 使用时间
   @Column(name = "usc_use_time")
   private Date useTime;
   // 创建时间
   @Column(name = "usc_create_time")
   private Date createTime;
   // 更新时间
   @Column(name = "usc_update_time")
   private Date updateTime;
   public Long getId() {
      return id;
   }
   public void setId(Long id) {
      this.id = id;
   }
   public Long getUid() {
      return uid;
   }
   public void setUid(Long uid) {
      this.uid = uid;
   }
   public SystemCoupon getSystemCoupon() {
      return systemCoupon;
   }
   public void setSystemCoupon(SystemCoupon systemCoupon) {
      this.systemCoupon = systemCoupon;
   }
   public String getSource() {
      return source;
   }
   public void setSource(String source) {
      this.source = source;
   }
   public Integer getState() {
      return state;
   }
   public void setState(Integer state) {
      this.state = state;
   }
   public Date getStartTime() {
      return startTime;
   }
   public void setStartTime(Date startTime) {
      this.startTime = startTime;
   }
   public Date getEndTime() {
      return endTime;
   }
   public void setEndTime(Date endTime) {
      this.endTime = endTime;
   }
   public Date getCreateTime() {
      return createTime;
   }
   public void setCreateTime(Date createTime) {
      this.createTime = createTime;
   }
   public Date getUpdateTime() {
      return updateTime;
   }
   public void setUpdateTime(Date updateTime) {
      this.updateTime = updateTime;
   }
   public Date getUseTime() {
      return useTime;
   }
   public void setUseTime(Date useTime) {
      this.useTime = useTime;
   }
   public Integer getStateActivated() {
      return stateActivated;
   }
   public void setStateActivated(Integer stateActivated) {
      this.stateActivated = stateActivated;
   }
}
package com.yeshi.fanli.entity.bus.user;
import java.util.Date;
import org.yeshi.utils.generater.mybatis.Column;
import org.yeshi.utils.generater.mybatis.Table;
import com.google.gson.annotations.Expose;
import com.yeshi.fanli.entity.system.SystemCoupon;
/**
 * 用户获得券
 * @author Administrator
 *
 */
@Table("yeshi_ec_user_system_coupon")
public class UserSystemCoupon {
   // 未使用1
   public final static int STATE_CAN_USE = 1;
   // 使用中2
   public final static int STATE_IN_USE = 2;
   // 已使用3
   public final static int STATE_END_USE = 3;
   // 已过期4
   public final static int STATE_OVERDUE = 4;
   // 使用退回 -不入库
   public final static int STATE_BACK = 5;
   // 可使用、可赠送(返回前端字段)
   public final static int STATE_USE_GIVE = 10;
   // 只可赠送(返回前端字段)
   public final static int STATE_GIVE_ONLY = 11;
   // 赠送中(返回前端字段)
   public final static int STATE_GIVE_IN = 12;
   // 赠送成功(返回前端字段)
   public final static int STATE_GIVE_END = 13;
   // 来源: 新人抽奖、邀请奖励
   public final static String SOURCE_NEWBIES = "新人抽奖";
   public final static String SOURCE_YAOQING = "邀请奖励";
   public final static String SOURCE_SYSTEM_PUSH = "系统赠送";
   public final static String SOURCE_DAILY_REBATE = "天天抽";
   public final static String SOURCE_EXCHANGE = "金币兑换";
   public final static String SOURCE_GIVE = "好友赠送";
   public final static String SOURCE_PULL_NEW = "拉新奖励";
   @Expose
   @Column(name = "usc_id")
   private Long id;
   // 用户id
   @Column(name = "usc_uid")
   private Long uid;
   // 券
   @Column(name = "usc_coupon_id")
   private SystemCoupon systemCoupon;
   // 券来源
   @Expose
   @Column(name = "usc_source")
   private String source;
   // 状态
   @Expose
   @Column(name = "usc_state")
   private Integer state;
   // 激活状态   未激活0 已激活1
   @Expose
   @Column(name = "usc_state_activate")
   private Integer stateActivated;
   // 是否已赠送
   @Column(name = "usc_give")
   private Boolean give;
   // 起始时间
   @Column(name = "usc_start_time")
   private Date startTime;
   // 结束时间
   @Column(name = "usc_end_time")
   private Date endTime;
   // 使用时间
   @Column(name = "usc_use_time")
   private Date useTime;
   // 创建时间
   @Column(name = "usc_create_time")
   private Date createTime;
   // 更新时间
   @Column(name = "usc_update_time")
   private Date updateTime;
   public Long getId() {
      return id;
   }
   public void setId(Long id) {
      this.id = id;
   }
   public Long getUid() {
      return uid;
   }
   public void setUid(Long uid) {
      this.uid = uid;
   }
   public SystemCoupon getSystemCoupon() {
      return systemCoupon;
   }
   public void setSystemCoupon(SystemCoupon systemCoupon) {
      this.systemCoupon = systemCoupon;
   }
   public String getSource() {
      return source;
   }
   public void setSource(String source) {
      this.source = source;
   }
   public Integer getState() {
      return state;
   }
   public void setState(Integer state) {
      this.state = state;
   }
   public Date getStartTime() {
      return startTime;
   }
   public void setStartTime(Date startTime) {
      this.startTime = startTime;
   }
   public Date getEndTime() {
      return endTime;
   }
   public void setEndTime(Date endTime) {
      this.endTime = endTime;
   }
   public Date getCreateTime() {
      return createTime;
   }
   public void setCreateTime(Date createTime) {
      this.createTime = createTime;
   }
   public Date getUpdateTime() {
      return updateTime;
   }
   public void setUpdateTime(Date updateTime) {
      this.updateTime = updateTime;
   }
   public Date getUseTime() {
      return useTime;
   }
   public void setUseTime(Date useTime) {
      this.useTime = useTime;
   }
   public Integer getStateActivated() {
      return stateActivated;
   }
   public void setStateActivated(Integer stateActivated) {
      this.stateActivated = stateActivated;
   }
   public Boolean getGive() {
      return give;
   }
   public void setGive(Boolean give) {
      this.give = give;
   }
}