admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
fanli/src/main/java/com/yeshi/fanli/entity/bus/user/UserSystemCouponRecord.java
@@ -1,135 +1,135 @@
package com.yeshi.fanli.entity.bus.user;
import java.util.Date;
import org.yeshi.utils.mybatis.Column;
import org.yeshi.utils.mybatis.Table;
/**
 * 用户券使用记录
 * @author Administrator
 *
 */
@Table("yeshi_ec_user_system_coupon_record")
public class UserSystemCouponRecord {
   // 状态: 匹配中0    规则不匹配1   退款退回4  匹配超时退回5   免单中2  使用成功3
   public final static int STATE_WAIT= 0;
   public final static int STATE_FAIL_RULE =1;
   public final static int STATE_FAIL_DRAWBACK = 4;
   public final static int STATE_WAIT_TIME_OUT = 5;
   public final static int STATE_FREE_ON = 2;
   public final static int STATE_SUCCESS = 3;
   public final static int STATE_GIVE_ON = 11; // 增送中
   @Column(name = "ucr_id")
   private Long id;
   // 商品id
   @Column(name = "ucr_good_id")
   private Long goodId;
   // 商品来源
   @Column(name = "ucr_good_source")
   private int goodSource;
   // 用户券
   @Column(name = "ucr_user_coupon_id")
   private UserSystemCoupon userSystemCoupon;
   // 券类型
   @Column(name = "ucr_coupon_type")
   private String couponType;
   // 订单号
   @Column(name = "ucr_order_no")
   private String orderNo;
   // 状态: 待匹配0  使用成功1  规则不匹配2 退款退回3
   @Column(name = "ucr_state")
   private Integer state;
   // 创建时间
   @Column(name = "ucr_create_time")
   private Date createTime;
   // 更新时间
   @Column(name = "ucr_update_time")
   private Date updateTime;
   public Long getId() {
      return id;
   }
   public void setId(Long id) {
      this.id = id;
   }
   public Long getGoodId() {
      return goodId;
   }
   public void setGoodId(Long goodId) {
      this.goodId = goodId;
   }
   public int getGoodSource() {
      return goodSource;
   }
   public void setGoodSource(int goodSource) {
      this.goodSource = goodSource;
   }
   public UserSystemCoupon getUserSystemCoupon() {
      return userSystemCoupon;
   }
   public void setUserSystemCoupon(UserSystemCoupon userSystemCoupon) {
      this.userSystemCoupon = userSystemCoupon;
   }
   public String getOrderNo() {
      return orderNo;
   }
   public void setOrderNo(String orderNo) {
      this.orderNo = orderNo;
   }
   public Integer getState() {
      return state;
   }
   public void setState(Integer state) {
      this.state = state;
   }
   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 String getCouponType() {
      return couponType;
   }
   public void setCouponType(String couponType) {
      this.couponType = couponType;
   }
}
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;
/**
 * 用户券使用记录
 * @author Administrator
 *
 */
@Table("yeshi_ec_user_system_coupon_record")
public class UserSystemCouponRecord {
   // 状态: 匹配中0    规则不匹配1   退款退回4  匹配超时退回5   免单中2  使用成功3
   public final static int STATE_WAIT= 0;
   public final static int STATE_FAIL_RULE =1;
   public final static int STATE_FAIL_DRAWBACK = 4;
   public final static int STATE_WAIT_TIME_OUT = 5;
   public final static int STATE_FREE_ON = 2;
   public final static int STATE_SUCCESS = 3;
   public final static int STATE_GIVE_ON = 11; // 增送中
   @Column(name = "ucr_id")
   private Long id;
   // 商品id
   @Column(name = "ucr_good_id")
   private String goodId;
   // 商品来源
   @Column(name = "ucr_good_source")
   private Integer goodSource;
   // 用户券
   @Column(name = "ucr_user_coupon_id")
   private UserSystemCoupon userSystemCoupon;
   // 券类型
   @Column(name = "ucr_coupon_type")
   private String couponType;
   // 订单号
   @Column(name = "ucr_order_no")
   private String orderNo;
   // 状态: 待匹配0  使用成功1  规则不匹配2 退款退回3
   @Column(name = "ucr_state")
   private Integer state;
   // 创建时间
   @Column(name = "ucr_create_time")
   private Date createTime;
   // 更新时间
   @Column(name = "ucr_update_time")
   private Date updateTime;
   public Long getId() {
      return id;
   }
   public void setId(Long id) {
      this.id = id;
   }
   public String getGoodId() {
      return goodId;
   }
   public void setGoodId(String goodId) {
      this.goodId = goodId;
   }
   public Integer getGoodSource() {
      return goodSource;
   }
   public void setGoodSource(Integer goodSource) {
      this.goodSource = goodSource;
   }
   public UserSystemCoupon getUserSystemCoupon() {
      return userSystemCoupon;
   }
   public void setUserSystemCoupon(UserSystemCoupon userSystemCoupon) {
      this.userSystemCoupon = userSystemCoupon;
   }
   public String getOrderNo() {
      return orderNo;
   }
   public void setOrderNo(String orderNo) {
      this.orderNo = orderNo;
   }
   public Integer getState() {
      return state;
   }
   public void setState(Integer state) {
      this.state = state;
   }
   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 String getCouponType() {
      return couponType;
   }
   public void setCouponType(String couponType) {
      this.couponType = couponType;
   }
}