| | |
| | | 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 = "type")
|
| | | @Expose
|
| | | private String tuiGuangCode;// 推广码
|
| | | private Integer type;// 用户类型 0-普通用户 1-虚拟用户
|
| | |
|
| | | @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")
|
| | | @ManyToOne
|
| | | @JoinColumn(name = "sid")
|
| | | @Column(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;
|
| | | |
| | | @Column(name = "platform")
|
| | | private String platform;//来源平台
|
| | |
|
| | | public String getPlatform() {
|
| | | return platform;
|
| | | }
|
| | |
|
| | | public void setPlatform(String platform) {
|
| | | this.platform = platform;
|
| | | }
|
| | |
|
| | | @Transient
|
| | | @Expose
|
| | | private String rankIcon;// 等级图标
|
| | | |
| | |
|
| | | // 性别: 1-女 2-男
|
| | | // 性别: 1-女 2-男
|
| | | @Transient
|
| | | @Expose
|
| | | private Integer sex;
|
| | | |
| | |
|
| | | // 微信号
|
| | | @Transient
|
| | | @Expose
|
| | | private String weiXin;
|
| | |
|
| | | // 二维码
|
| | | @Transient
|
| | | @Expose
|
| | | private String erCode;
|
| | |
|
| | | // 微信提示语
|
| | | @Transient
|
| | | @Expose
|
| | |
| | | private String rankNamePicture;// 等级名称图片
|
| | | @Transient
|
| | | private String taoBaoUid;// 淘宝的用户ID
|
| | |
|
| | | // 是否为VIP
|
| | | @Transient
|
| | | @Expose
|
| | | private boolean vip;
|
| | |
|
| | | public boolean isVip() {
|
| | | return vip;
|
| | | }
|
| | |
|
| | | public void setVip(boolean vip) {
|
| | | this.vip = vip;
|
| | | }
|
| | |
|
| | | public String getTaoBaoUid() {
|
| | | return taoBaoUid;
|
| | |
| | | this.rankIcon = rankIcon;
|
| | | }
|
| | |
|
| | | // TODO
|
| | | public UserInfo() {
|
| | | openid = "";
|
| | | wxOpenId = "";
|
| | |
| | |
|
| | | public void setAppId(String appId) {
|
| | | this.appId = appId;
|
| | | }
|
| | |
|
| | | public String getTuiGuangCode() {
|
| | | return tuiGuangCode;
|
| | | }
|
| | |
|
| | | public void setTuiGuangCode(String tuiGuangCode) {
|
| | | this.tuiGuangCode = tuiGuangCode;
|
| | | }
|
| | |
|
| | | public Long getId() {
|
| | |
| | | public void setPayPassword(String payPassword) {
|
| | | this.payPassword = payPassword;
|
| | | }
|
| | | |
| | |
|
| | | public Integer getSex() {
|
| | | return sex;
|
| | | }
|
| | |
| | | this.weiXinTip = weiXinTip;
|
| | | }
|
| | |
|
| | | public Integer getType() {
|
| | | return type;
|
| | | }
|
| | |
|
| | | public void setType(Integer type) {
|
| | | this.type = type;
|
| | | }
|
| | |
|
| | | public String getErCode() {
|
| | | return erCode;
|
| | | }
|
| | |
|
| | | public void setErCode(String erCode) {
|
| | | this.erCode = erCode;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public int hashCode() {
|
| | | final int prime = 31;
|