| | |
| | | package com.yeshi.fanli.entity.redpack;
|
| | |
|
| | | import java.math.BigDecimal;
|
| | | import java.util.Date;
|
| | |
|
| | | import org.yeshi.utils.mybatis.Column;
|
| | | import org.yeshi.utils.mybatis.Table;
|
| | |
|
| | | /**
|
| | | * 红包获得记录-邀请相关
|
| | | * |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | @Table("yeshi_red_pack_win_invite")
|
| | | public class RedPackWinInvite {
|
| | | public enum RedPackWinInviteTypeEnum {
|
| | | newUserReward("首次使用板栗快省新人奖励"), |
| | | inviteSucceed("成功邀请好友立得现金"), |
| | | firstSharedOrder("完成分享订单递增奖励"), |
| | | monthSharedOrder("完成分享订单连续奖励");
|
| | |
|
| | | private final String desc;
|
| | |
|
| | | private RedPackWinInviteTypeEnum(String desc) {
|
| | | this.desc = desc;
|
| | | }
|
| | |
|
| | | public String getDesc() {
|
| | | return desc;
|
| | | }
|
| | | }
|
| | | |
| | | @Column(name = "rwr_id")
|
| | | private Long id;
|
| | | // 用户id
|
| | | @Column(name = "rwr_uid")
|
| | | private Long uid;
|
| | | |
| | | // 队员id
|
| | | @Column(name = "rwr_team_uid")
|
| | | private Long teamUid;
|
| | | |
| | | // 余额
|
| | | @Column(name = "rwr_money")
|
| | | private BigDecimal money;
|
| | | |
| | | // 类型
|
| | | @Column(name = "rwr_type")
|
| | | private RedPackWinInviteTypeEnum type;
|
| | | |
| | | // 订单来源
|
| | | @Column(name = "rwr_source")
|
| | | private Integer source;
|
| | | |
| | | // 订单号
|
| | | @Column(name = "rwr_order_no")
|
| | | private String orderNo;
|
| | | |
| | | @Column(name = "rwr_create_time")
|
| | | private Date createTime;
|
| | | |
| | | @Column(name = "rwr_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 Long getTeamUid() {
|
| | | return teamUid;
|
| | | }
|
| | |
|
| | | public void setTeamUid(Long teamUid) {
|
| | | this.teamUid = teamUid;
|
| | | }
|
| | |
|
| | | public BigDecimal getMoney() {
|
| | | return money;
|
| | | }
|
| | |
|
| | | public void setMoney(BigDecimal money) {
|
| | | this.money = money;
|
| | | }
|
| | |
|
| | | public RedPackWinInviteTypeEnum getType() {
|
| | | return type;
|
| | | }
|
| | |
|
| | | public void setType(RedPackWinInviteTypeEnum type) {
|
| | | this.type = type;
|
| | | }
|
| | |
|
| | | public Integer getSource() {
|
| | | return source;
|
| | | }
|
| | |
|
| | | public void setSource(Integer source) {
|
| | | this.source = source;
|
| | | }
|
| | |
|
| | | public String getOrderNo() {
|
| | | return orderNo;
|
| | | }
|
| | |
|
| | | public void setOrderNo(String orderNo) {
|
| | | this.orderNo = orderNo;
|
| | | }
|
| | |
|
| | | 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.redpack; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | import org.yeshi.utils.generater.mybatis.Column; |
| | | import org.yeshi.utils.generater.mybatis.Table; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.UserInfo; |
| | | |
| | | /** |
| | | * 红包获得记录-邀请相关 |
| | | * |
| | | * @author Administrator |
| | | * |
| | | */ |
| | | @Table("yeshi_ec_red_pack_win_invite") |
| | | public class RedPackWinInvite { |
| | | public enum RedPackWinInviteTypeEnum { |
| | | newUserReward("首次使用板栗快省新人奖励"), |
| | | zeroStageReward("邀请关系确定"), |
| | | oneStageReward("成功邀请好友立得现金"), |
| | | twoStageReward("完成分享订单递增奖励"), |
| | | threeStageReward("完成分享订单连续奖励"), |
| | | inviteDownOrder("拉新红包奖励"); |
| | | |
| | | private final String desc; |
| | | |
| | | private RedPackWinInviteTypeEnum(String desc) { |
| | | this.desc = desc; |
| | | } |
| | | |
| | | public String getDesc() { |
| | | return desc; |
| | | } |
| | | } |
| | | |
| | | @Column(name = "rwr_id") |
| | | private Long id; |
| | | // 用户id |
| | | @Column(name = "rwr_uid") |
| | | private Long uid; |
| | | |
| | | // 队员id |
| | | @Column(name = "rwr_team_uid") |
| | | private Long teamUid; |
| | | |
| | | // 余额 |
| | | @Column(name = "rwr_money") |
| | | private BigDecimal money; |
| | | |
| | | // 类型 |
| | | @Column(name = "rwr_type") |
| | | private RedPackWinInviteTypeEnum type; |
| | | |
| | | // 订单来源 |
| | | @Column(name = "rwr_source") |
| | | private Integer source; |
| | | |
| | | // 唯一标识 |
| | | @Column(name = "rwr_identify_code") |
| | | private String identifyCode; |
| | | |
| | | // 订单号 |
| | | @Column(name = "rwr_order_no") |
| | | private String orderNo; |
| | | |
| | | @Column(name = "rwr_create_time") |
| | | private Date createTime; |
| | | |
| | | @Column(name = "rwr_update_time") |
| | | private Date updateTime; |
| | | |
| | | // 邀请人 |
| | | private UserInfo inviter; |
| | | // 受邀人 |
| | | private UserInfo invitee; |
| | | |
| | | 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 Long getTeamUid() { |
| | | return teamUid; |
| | | } |
| | | |
| | | public void setTeamUid(Long teamUid) { |
| | | this.teamUid = teamUid; |
| | | } |
| | | |
| | | public BigDecimal getMoney() { |
| | | return money; |
| | | } |
| | | |
| | | public void setMoney(BigDecimal money) { |
| | | this.money = money; |
| | | } |
| | | |
| | | public RedPackWinInviteTypeEnum getType() { |
| | | return type; |
| | | } |
| | | |
| | | public void setType(RedPackWinInviteTypeEnum type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public Integer getSource() { |
| | | return source; |
| | | } |
| | | |
| | | public void setSource(Integer source) { |
| | | this.source = source; |
| | | } |
| | | |
| | | public String getOrderNo() { |
| | | return orderNo; |
| | | } |
| | | |
| | | public void setOrderNo(String orderNo) { |
| | | this.orderNo = orderNo; |
| | | } |
| | | |
| | | 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 getIdentifyCode() { |
| | | return identifyCode; |
| | | } |
| | | |
| | | public void setIdentifyCode(String identifyCode) { |
| | | this.identifyCode = identifyCode; |
| | | } |
| | | |
| | | public UserInfo getInviter() { |
| | | return inviter; |
| | | } |
| | | |
| | | public void setInviter(UserInfo inviter) { |
| | | this.inviter = inviter; |
| | | } |
| | | |
| | | public UserInfo getInvitee() { |
| | | return invitee; |
| | | } |
| | | |
| | | public void setInvitee(UserInfo invitee) { |
| | | this.invitee = invitee; |
| | | } |
| | | |
| | | } |