File was renamed from fanli/src/main/java/com/yeshi/fanli/entity/bus/user/HongBao.java |
| | |
| | | package com.yeshi.fanli.entity.bus.user;
|
| | | package com.yeshi.fanli.dto;
|
| | |
|
| | | import java.math.BigDecimal;
|
| | | import java.util.Date;
|
| | |
|
| | | import javax.persistence.Column;
|
| | | import javax.persistence.Entity;
|
| | | import javax.persistence.FetchType;
|
| | | import javax.persistence.GeneratedValue;
|
| | | import javax.persistence.GenerationType;
|
| | | import javax.persistence.Id;
|
| | | import javax.persistence.JoinColumn;
|
| | | import javax.persistence.ManyToOne;
|
| | | import javax.persistence.Table;
|
| | | import javax.persistence.Transient;
|
| | |
|
| | | import com.google.gson.annotations.Expose;
|
| | | import com.yeshi.fanli.entity.bus.user.Order;
|
| | | import com.yeshi.fanli.entity.bus.user.UserInfo;
|
| | |
|
| | | /**
|
| | | * 红包
|
| | |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | @Entity
|
| | | @Table(name = "yeshi_ec_hongbao")
|
| | | @org.yeshi.utils.mybatis.Table("yeshi_ec_hongbao")
|
| | | public class HongBao {
|
| | | // 状态编号 1-未到时间不可领取 2-可领取 3-已经领取 4-红包失效
|
| | | public final static int STATE_BUKELINGQU = 1;
|
| | |
| | | // 分享商品得来的红包
|
| | | public final static int TYPE_SHARE_GOODS = 20;
|
| | |
|
| | | @Id
|
| | | @GeneratedValue(strategy = GenerationType.AUTO)
|
| | | @Column(name = "id")
|
| | | @org.yeshi.utils.mybatis.Column(name = "id")
|
| | | @Expose
|
| | | private Long id;
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "uid")
|
| | | @ManyToOne(fetch = FetchType.EAGER)
|
| | | @JoinColumn(name = "`uid`")
|
| | | private UserInfo userInfo;
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "auctionId")
|
| | | private Long auctionId;
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "payMoney")
|
| | | @Expose
|
| | | private BigDecimal payMoney;
|
| | |
|
| | | /**
|
| | | * 分销红包对应的最上级红包
|
| | | */
|
| | | @org.yeshi.utils.mybatis.Column(name = "pid")
|
| | | @ManyToOne(fetch = FetchType.EAGER)
|
| | | @JoinColumn(name = "`pid`")
|
| | |
|
| | | private HongBao parent;
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "money")
|
| | | @Expose
|
| | | @Column(name = "money")
|
| | | private BigDecimal money;
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "param")
|
| | | @Column(name = "param", length = 1024)
|
| | | private String param;// type对应的参数
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "type")
|
| | | @Column(name = "`type`")
|
| | | @Expose
|
| | | private Integer type;// 1-淘宝订单 2-京东订单 3-活动红包 4-新人红包 5.邀请好友红包(布心街的) 6.一级分销红包
|
| | | // 7.二级分销红包 20-分享商品订单
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "state")
|
| | | @Expose
|
| | | private Integer state;// 状态编号 1-未到时间不可领取 2-可领取 3-已经领取 4-红包失效
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "createtime")
|
| | | @Expose
|
| | | private Long createtime;// 红包创建时间
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "pre_get_time")
|
| | | @Expose
|
| | | @Column(name = "pre_get_time")
|
| | |
|
| | | private Long preGettime;// 预计领取的时间
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "get_time")
|
| | | @Column(name = "get_time")
|
| | | @Expose
|
| | | private Long getTime;// 领取的时间
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "get_ip")
|
| | | @Expose
|
| | | @Column(name = "get_ip", length = 30)
|
| | | private String getIp;// 领取的ip
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "beizhu")
|
| | | @Expose
|
| | | @Column(name = "beizhu", length = 1024)
|
| | | private String beizhu;
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "order_id")
|
| | | @Expose
|
| | | @Column(name = "order_id")
|
| | | private String orderId; // yes订单ID
|
| | |
|
| | | // 子订单的ID,只针对直接购买商品产生的红包有效
|
| | | @org.yeshi.utils.mybatis.Column(name = "order_item_id")
|
| | | @Column(name = "order_item_id")
|
| | | private Long orderItemId;
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "oid")
|
| | | @Expose
|
| | | @ManyToOne(fetch = FetchType.EAGER)
|
| | | @JoinColumn(name = "oid")
|
| | | private Order order;
|
| | |
|
| | | /**
|
| | | * 红包拥有者的rank
|
| | | */
|
| | | @org.yeshi.utils.mybatis.Column(name = "urank")
|
| | | private Integer urank;
|
| | |
|
| | | public HongBao() {
|
| | |
| | | this.id = id;
|
| | | }
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "hasChild")
|
| | | private Boolean hasChild;
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "version")
|
| | | private Integer version;
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "balance_time")
|
| | | @Column(name = "balance_time")
|
| | | private Date balanceTime;
|
| | |
|
| | | @Transient // 分享邀请金额总额
|