admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
fanli/src/main/java/com/yeshi/fanli/entity/bus/user/UserInfo.java
@@ -1,10 +1,9 @@
package com.yeshi.fanli.entity.bus.user;
import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Transient;
import org.yeshi.utils.mybatis.Table;
@@ -19,7 +18,10 @@
 *
 */
@Table("yeshi_ec_user")
public class UserInfo {
public class UserInfo implements Serializable{
   /**
    *
    */
   public static int STATE_NORMAL = 0;// 正常状态
   public static int STATE_DELETE = 1;// 删除状态
   public static int STATE_FORBIDDEN = 2;// 封禁状态
@@ -81,9 +83,9 @@
   @Expose
   private String lastLoginIp;// 最近一次登录IP
   @Column(name = "tuiguang_code")
   @Column(name = "type")
   @Expose
   private String tuiGuangCode;// 推广码
   private Integer type;// 用户类型 0-普通用户 1-虚拟用户
   @Column(name = "appid")
   @Expose
@@ -108,8 +110,6 @@
   private String payPassword;
   @Column(name = "sid")
   @ManyToOne
   @JoinColumn(name = "sid")
   private BusinessSystem system;
   @Column(name = "rank")
@@ -125,22 +125,37 @@
   @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
@@ -151,6 +166,19 @@
   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;
@@ -192,6 +220,7 @@
      this.rankIcon = rankIcon;
   }
   // TODO
   public UserInfo() {
      openid = "";
      wxOpenId = "";
@@ -280,14 +309,6 @@
   public void setAppId(String appId) {
      this.appId = appId;
   }
   public String getTuiGuangCode() {
      return tuiGuangCode;
   }
   public void setTuiGuangCode(String tuiGuangCode) {
      this.tuiGuangCode = tuiGuangCode;
   }
   public Long getId() {
@@ -401,7 +422,7 @@
   public void setPayPassword(String payPassword) {
      this.payPassword = payPassword;
   }
   public Integer getSex() {
      return sex;
   }
@@ -426,6 +447,22 @@
      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;