package com.yeshi.fanli.entity.bus.user;
|
|
import javax.persistence.GeneratedValue;
|
import javax.persistence.GenerationType;
|
import javax.persistence.Id;
|
import javax.persistence.Table;
|
import javax.persistence.Transient;
|
|
import org.yeshi.utils.mybatis.Column;
|
|
/**
|
* 分销关系
|
*
|
* @author cxx
|
*
|
* @date 2018年1月29日
|
*/
|
@Table(name = "yeshi_ec_threeSale")
|
@org.yeshi.utils.mybatis.Table("yeshi_ec_threeSale")
|
public class ThreeSale {
|
// 邀请状态
|
public static int STATE_SUCCESS = 1;// 成功
|
public static int STATE_NOT_SUCCESS = 0;// 尚未成功
|
|
// 脱离状态
|
public static int EXPIRE_NORMAL = 0;// 正常状态
|
public static int EXPIRE_BREAK = 1;// 邀请关系脱离
|
public static int EXPIRE_BREAK_VIP = 2; // vip脱离关系
|
public static int EXPIRE_BREAK_VIP_DEL3 = 3; // 直接脱离关系删除
|
public static int EXPIRE_BREAK_VIP_DEL4 = 4; // 间接脱离关系删除
|
public static int EXPIRE_BREAK_VIP_DEL34 = 34; // 直接、间接脱离关系删除
|
|
@Id
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
@Column(name = "id")
|
private Long id;
|
|
public ThreeSale(Long id) {
|
this.id = id;
|
}
|
|
public ThreeSale() {
|
}
|
|
@Column(name = "boss_id")
|
private UserInfo boss;// 邀请者
|
|
@Column(name = "worker_id")
|
private UserInfo worker; // 被邀请者
|
|
@Column(name = "state")
|
private Boolean state;// 状态:是否邀请成功 被邀请者登陆后才算邀请成功 1已成功、0还未成功
|
|
@Column(name = "expire")
|
// 是否过期: 是否过期:初始0 已过期1 (2018.10.22添加)
|
private Integer expire;
|
|
@Column(name = "createTime")
|
private Long createTime;
|
|
@Column(name = "succeedTime")
|
private Long succeedTime;
|
|
@Column(name = "updateTime")
|
private Long updateTime;
|
|
@Transient
|
private ThreeSaleExtraInfo threeSaleExtraInfo;
|
|
// 上上级关系状态
|
@Transient
|
private Boolean stateSuper;
|
|
@Transient
|
private Integer validState;
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public UserInfo getBoss() {
|
return boss;
|
}
|
|
public void setBoss(UserInfo boss) {
|
this.boss = boss;
|
}
|
|
public UserInfo getWorker() {
|
return worker;
|
}
|
|
public void setWorker(UserInfo worker) {
|
this.worker = worker;
|
}
|
|
public Long getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Long createTime) {
|
this.createTime = createTime;
|
}
|
|
public Boolean getState() {
|
return state;
|
}
|
|
public void setState(Boolean state) {
|
this.state = state;
|
}
|
|
public Integer getExpire() {
|
return expire;
|
}
|
|
public void setExpire(Integer expire) {
|
this.expire = expire;
|
}
|
|
public Long getSucceedTime() {
|
return succeedTime;
|
}
|
|
public void setSucceedTime(Long succeedTime) {
|
this.succeedTime = succeedTime;
|
}
|
|
public Long getUpdateTime() {
|
return updateTime;
|
}
|
|
public void setUpdateTime(Long updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
public ThreeSaleExtraInfo getThreeSaleExtraInfo() {
|
return threeSaleExtraInfo;
|
}
|
|
public void setThreeSaleExtraInfo(ThreeSaleExtraInfo threeSaleExtraInfo) {
|
this.threeSaleExtraInfo = threeSaleExtraInfo;
|
}
|
|
public Boolean getStateSuper() {
|
return stateSuper;
|
}
|
|
public void setStateSuper(Boolean stateSuper) {
|
this.stateSuper = stateSuper;
|
}
|
|
public Integer getValidState() {
|
return validState;
|
}
|
|
public void setValidState(Integer validState) {
|
this.validState = validState;
|
}
|
|
}
|