| | |
| | | import java.math.BigDecimal;
|
| | |
|
| | | import javax.persistence.Column;
|
| | | import javax.persistence.Entity;
|
| | | import javax.persistence.Id;
|
| | | import javax.persistence.JoinColumn;
|
| | | import javax.persistence.ManyToOne;
|
| | | import javax.persistence.Table;
|
| | | import javax.persistence.Transient;
|
| | |
|
| | | import org.yeshi.utils.mybatis.Table;
|
| | |
|
| | | import com.google.gson.annotations.Expose;
|
| | | import com.yeshi.fanli.entity.system.BusinessSystem;
|
| | |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | @Entity
|
| | | @Table(name = "`yeshi_ec_user`")
|
| | | @org.yeshi.utils.mybatis.Table("yeshi_ec_user")
|
| | | @Table("yeshi_ec_user")
|
| | | public class UserInfo {
|
| | | public static int STATE_NORMAL = 0;// 正常状态
|
| | | public static int STATE_DELETE = 1;// 删除状态
|
| | | public static int STATE_FORBIDDEN = 2;// 封禁状态
|
| | | public static int STATE_DELETE_OUT_OF_DATE = 4;// 用户长期不活跃被删除
|
| | |
|
| | | @Id
|
| | | // @GeneratedValue(strategy = GenerationType.SEQUENCE)
|
| | | @Column(name = "id")
|
| | | @org.yeshi.utils.mybatis.Column(name = "id")
|
| | | @Expose
|
| | | private Long id;
|
| | | /**
|
| | | * 淘宝openId
|
| | | */
|
| | | @Expose
|
| | | @Column(name = "identifycode", length = 128)
|
| | | @org.yeshi.utils.mybatis.Column(name = "identifycode")
|
| | | @Column(name = "identifycode")
|
| | | private String openid;
|
| | |
|
| | | @Column(name = "login_type")
|
| | | @org.yeshi.utils.mybatis.Column(name = "login_type")
|
| | | @Expose
|
| | | private Integer loginType;// 1-淘宝
|
| | |
|
| | | @Column(name = "wx_open_id")
|
| | | @org.yeshi.utils.mybatis.Column(name = "wx_open_id")
|
| | | @Expose
|
| | | private String wxOpenId;
|
| | |
|
| | | @Column(name = "wx_union_id")
|
| | | @org.yeshi.utils.mybatis.Column(name = "wx_union_id")
|
| | | @Expose
|
| | | private String wxUnionId;
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "nick_name")
|
| | | @Column(name = "nick_name", length = 128)
|
| | | @Column(name = "nick_name")
|
| | | @Expose
|
| | | private String nickName;// 昵称
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "tbName")
|
| | | @Column(name = "tbName")
|
| | | @Expose
|
| | | private String tbName; // 淘宝昵称
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "tbPic")
|
| | | @Column(name = "tbPic")
|
| | | private String tbPic;// 淘宝头像
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "wxName")
|
| | | @Column(name = "wxName")
|
| | | @Expose
|
| | | private String wxName;
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "wxPic")
|
| | | @Column(name = "wxPic")
|
| | | private String wxPic;
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "portrait")
|
| | | @Column(name = "portrait", length = 512)
|
| | | @Column(name = "portrait")
|
| | | @Expose
|
| | | private String portrait;// 头像
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "createtime")
|
| | | @Column(name = "createtime")
|
| | | @Expose
|
| | | private Long createtime;
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "last_logintime")
|
| | | @Column(name = "last_logintime")
|
| | | @Expose
|
| | | private Long lastLoginTime;// 最近一次登录时间
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "loginip")
|
| | | @Column(name = "loginip", length = 30)
|
| | | @Column(name = "loginip")
|
| | | @Expose
|
| | | private String lastLoginIp;// 最近一次登录IP
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "tuiguang_code")
|
| | | @Column(name = "tuiguang_code", length = 30)
|
| | | @Column(name = "tuiguang_code")
|
| | | @Expose
|
| | | private String tuiGuangCode;// 推广码
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "appid")
|
| | | @Column(name = "appid", length = 30)
|
| | | @Column(name = "appid")
|
| | | @Expose
|
| | | private String appId;//
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "my_hongBao")
|
| | | @Column(name = "my_hongBao", length = 8)
|
| | | @Column(name = "my_hongBao")
|
| | | @Expose
|
| | | // @Type(type = "big_decimal")
|
| | | private BigDecimal myHongBao; // 我的红包
|
| | |
| | | @Expose
|
| | | private BigDecimal canOpenHongBao;
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "pay_password")
|
| | | @Column(name = "pay_password")
|
| | | private String payPassword;
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "sid")
|
| | | @Column(name = "sid")
|
| | | @ManyToOne
|
| | | @JoinColumn(name = "sid")
|
| | | private BusinessSystem system;
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "rank")
|
| | | @Column(name = "rank")
|
| | | @Expose
|
| | | private Integer rank;// 0 普通 1 铜 2银 3 金
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "phone")
|
| | | @Column(name = "phone", length = 16)
|
| | | @Column(name = "phone")
|
| | | @Expose
|
| | | private String phone; // 电话号码
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "state")
|
| | | @Column(name = "state")
|
| | | private Integer state; // 用户的状态
|
| | |
|
| | | @org.yeshi.utils.mybatis.Column(name = "state_desc")
|
| | | @Column(name = "state_desc") // 用户状态简介
|
| | | @Column(name = "state_desc")
|
| | | private String stateDesc;
|
| | |
|
| | | @Transient
|