admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
fanli/src/main/java/com/yeshi/fanli/entity/bus/user/HongBaoV2.java
@@ -1,224 +1,242 @@
package com.yeshi.fanli.entity.bus.user;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import org.yeshi.utils.mybatis.Column;
import org.yeshi.utils.mybatis.Table;
/**
 * 订单-简版
 *
 * @author yj
 *
 * @date 2018年12月23日
 */
@Table("yeshi_ec_hongbao_v2")
public class HongBaoV2 implements Serializable {
   private static final long serialVersionUID = 1L;
   // 状态编号 1-未到时间不可领取 2-可领取 3-已经领取 4-红包失效
   public final static int STATE_BUKELINGQU = 1;
   public final static int STATE_KELINGQU = 2;
   public final static int STATE_YILINGQU = 3;
   public final static int STATE_SHIXIAO = 4;
   // 5-部分失效(返回客户端显示用,不用作逻辑处理)
   public final static int STATE_BUFENSHIXIAO = 5;
   // 自购红包  老版 2属于自购
   public final static int TYPE_ZIGOU = 1;
   // 活动红包
   public final static int TYPE_HUODONG = 3;
   // 新人红包
   public final static int TYPE_XINREN = 4;
   // 使用券红包
   public final static int TYPE_COUPON = 10;
   public final static int TYPE_YAOQING = 5;
   // 一级分销红包
   public final static int TYPE_YIJI = 6;
   // 二级分销红包
   public final static int TYPE_ERJI = 7;
   // 分享商品得来的红包
   public final static int TYPE_SHARE_GOODS = 20;
   // 一级分享赚分销红包
   public final static int TYPE_SHARE_YIJI = 21;
   // 二级分享赚分销红包
   public final static int TYPE_SHARE_ERJI = 22;
   // 金币兑换红包
   public final static int TYPE_EXCHANGE = 30;
   //饿了么红包
   public final static int TYPE_ELME=25;
   @Column(name = "hb_id")
   private Long id;
   // 用户id
   @Column(name = "hb_uid")
   private UserInfo userInfo;
   // 订单号
   @Column(name = "hb_urank")
   private Integer urank;
   // 类型:淘宝/京东
   @Column(name = "hb_pid")
   private HongBaoV2 parent;
   // 商品
   @Column(name = "hb_money")
   private BigDecimal money;
   // 商品数
   @Column(name = "hb_type")
   private Integer type;
   // 状态:订单付款、订单失效、订单结算
   @Column(name = "hb_state")
   private Integer state;
   // 效果预估
   @Column(name = "hb_version")
   private Integer version;
   // 预估收入
   @Column(name = "hb_beizhu")
   private String beizhu;
   // 付款金额
   @Column(name = "hb_pre_get_time")
   private Date preGetTime;
   // 结算金额
   @Column(name = "hb_get_time")
   private Date getTime;
   // 创建时间
   @Column(name = "cog_create_time")
   private Date createTime;
   // 更新时间
   @Column(name = "cog_update_time")
   private Date updateTime;
   public HongBaoV2() {
   }
   public HongBaoV2(Long id) {
      this.id = id;
   }
   public Long getId() {
      return id;
   }
   public void setId(Long id) {
      this.id = id;
   }
   public UserInfo getUserInfo() {
      return userInfo;
   }
   public void setUserInfo(UserInfo userInfo) {
      this.userInfo = userInfo;
   }
   public Integer getUrank() {
      return urank;
   }
   public void setUrank(Integer urank) {
      this.urank = urank;
   }
   public HongBaoV2 getParent() {
      return parent;
   }
   public void setParent(HongBaoV2 parent) {
      this.parent = parent;
   }
   public BigDecimal getMoney() {
      return money;
   }
   public void setMoney(BigDecimal money) {
      this.money = money;
   }
   public Integer getType() {
      return type;
   }
   public void setType(Integer type) {
      this.type = type;
   }
   public Integer getState() {
      return state;
   }
   public void setState(Integer state) {
      this.state = state;
   }
   public Integer getVersion() {
      return version;
   }
   public void setVersion(Integer version) {
      this.version = version;
   }
   public String getBeizhu() {
      return beizhu;
   }
   public void setBeizhu(String beizhu) {
      this.beizhu = beizhu;
   }
   public Date getPreGetTime() {
      return preGetTime;
   }
   public void setPreGetTime(Date preGetTime) {
      this.preGetTime = preGetTime;
   }
   public Date getGetTime() {
      return getTime;
   }
   public void setGetTime(Date getTime) {
      this.getTime = getTime;
   }
   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;
   }
}
package com.yeshi.fanli.entity.bus.user;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import org.yeshi.utils.generater.mybatis.Column;
import org.yeshi.utils.generater.mybatis.Table;
/**
 * 订单-简版
 *
 * @author yj
 *
 * @date 2018年12月23日
 */
@Table("yeshi_ec_hongbao_v2")
public class HongBaoV2 implements Serializable {
   private static final long serialVersionUID = 1L;
   // 状态编号 1-未到时间不可领取 2-可领取 3-已经领取 4-红包失效
   public final static int STATE_BUKELINGQU = 1;
   public final static int STATE_KELINGQU = 2;
   public final static int STATE_YILINGQU = 3;
   public final static int STATE_SHIXIAO = 4;
   public final static int STATE_LINGQUING = 5;//领取中,处于2和3之间
   //TODO 中间状态待使用
   // 5-部分失效(返回客户端显示用,不用作逻辑处理)
   public final static int STATE_BUFENSHIXIAO = 5;
   // 自购红包 老版 2属于自购
   public final static int TYPE_ZIGOU = 1;
   // 活动红包
   public final static int TYPE_HUODONG = 3;
   // 新人红包
   public final static int TYPE_XINREN = 4;
   // 使用券红包
   public final static int TYPE_COUPON = 10;
   public final static int TYPE_YAOQING = 5;
   // 一级分销红包
   public final static int TYPE_YIJI = 6;
   // 二级分销红包
   public final static int TYPE_ERJI = 7;
   // 分享商品得来的红包
   public final static int TYPE_SHARE_GOODS = 20;
   // 一级分享赚分销红包
   public final static int TYPE_SHARE_YIJI = 21;
   // 二级分享赚分销红包
   public final static int TYPE_SHARE_ERJI = 22;
   // 金币兑换红包
   public final static int TYPE_EXCHANGE = 30;
   // 饿了么红包
   public final static int TYPE_ELME = 25;
   // 超级会员
   public final static int RANK_VIP = 100;
   public final static int RANK_VIP_PRE_3 = 30;// 超级会员第一阶段
   public final static int RANK_VIP_PRE_7 = 70;// 超级会员第二阶段
   @Column(name = "hb_id")
   private Long id;
   // 用户id
   @Column(name = "hb_uid")
   private UserInfo userInfo;
   // 订单号
   @Column(name = "hb_urank")
   private Integer urank;
   // 类型:淘宝/京东
   @Column(name = "hb_pid")
   private HongBaoV2 parent;
   // 商品
   @Column(name = "hb_money")
   private BigDecimal money;
   // 商品数
   @Column(name = "hb_type")
   private Integer type;
   // 状态:订单付款、订单失效、订单结算
   @Column(name = "hb_state")
   private Integer state;
   // 效果预估
   @Column(name = "hb_version")
   private Integer version;
   // 预估收入
   @Column(name = "hb_beizhu")
   private String beizhu;
   // 付款金额
   @Column(name = "hb_pre_get_time")
   private Date preGetTime;
   // 结算金额
   @Column(name = "hb_get_time")
   private Date getTime;
   // 创建时间
   @Column(name = "cog_create_time")
   private Date createTime;
   // 更新时间
   @Column(name = "cog_update_time")
   private Date updateTime;
   // 订单类型
   @Column(name = "cog_order_type")
   private Integer orderType;
   public HongBaoV2() {
   }
   public HongBaoV2(Long id) {
      this.id = id;
   }
   public Long getId() {
      return id;
   }
   public void setId(Long id) {
      this.id = id;
   }
   public UserInfo getUserInfo() {
      return userInfo;
   }
   public void setUserInfo(UserInfo userInfo) {
      this.userInfo = userInfo;
   }
   public Integer getUrank() {
      return urank;
   }
   public void setUrank(Integer urank) {
      this.urank = urank;
   }
   public HongBaoV2 getParent() {
      return parent;
   }
   public void setParent(HongBaoV2 parent) {
      this.parent = parent;
   }
   public BigDecimal getMoney() {
      return money;
   }
   public void setMoney(BigDecimal money) {
      this.money = money;
   }
   public Integer getType() {
      return type;
   }
   public void setType(Integer type) {
      this.type = type;
   }
   public Integer getState() {
      return state;
   }
   public void setState(Integer state) {
      this.state = state;
   }
   public Integer getVersion() {
      return version;
   }
   public void setVersion(Integer version) {
      this.version = version;
   }
   public String getBeizhu() {
      return beizhu;
   }
   public void setBeizhu(String beizhu) {
      this.beizhu = beizhu;
   }
   public Date getPreGetTime() {
      return preGetTime;
   }
   public void setPreGetTime(Date preGetTime) {
      this.preGetTime = preGetTime;
   }
   public Date getGetTime() {
      return getTime;
   }
   public void setGetTime(Date getTime) {
      this.getTime = getTime;
   }
   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 Integer getOrderType() {
      return orderType;
   }
   public void setOrderType(Integer orderType) {
      this.orderType = orderType;
   }
}