|
|
@@ -1,5 +1,8 @@
|
|
|
package com.uas.sso.entity;
|
|
|
|
|
|
+import com.alibaba.fastjson.annotation.JSONField;
|
|
|
+import org.codehaus.jackson.annotate.JsonIgnore;
|
|
|
+
|
|
|
import javax.persistence.*;
|
|
|
import java.io.Serializable;
|
|
|
import java.util.Date;
|
|
|
@@ -23,61 +26,51 @@ public class UserAccount implements Serializable {
|
|
|
* uu号
|
|
|
*/
|
|
|
@Id
|
|
|
- @Column(name = "useruu")
|
|
|
private Long userUU;
|
|
|
|
|
|
/**
|
|
|
* 会员名
|
|
|
*/
|
|
|
- @Column(name = "vip_name", nullable = false)
|
|
|
private String vipName;
|
|
|
|
|
|
/**
|
|
|
* 手机号
|
|
|
*/
|
|
|
- @Column(name = "mobile", unique = true, nullable = false)
|
|
|
private String mobile;
|
|
|
|
|
|
/**
|
|
|
* 手机号所属区域(continent or Hongkong)
|
|
|
*/
|
|
|
- @Column(name = "mobile_area")
|
|
|
private String mobileArea;
|
|
|
|
|
|
/**
|
|
|
* 手机号认证状态
|
|
|
*/
|
|
|
- @Column(name = "mobile_valid_code")
|
|
|
private Short mobileValidCode;
|
|
|
|
|
|
/**
|
|
|
* 用户密码
|
|
|
*/
|
|
|
- @Column(name = "_password", nullable = false)
|
|
|
private String password;
|
|
|
|
|
|
/**
|
|
|
* 用户erp密码
|
|
|
*/
|
|
|
- @Column(name = "erp_password")
|
|
|
private String erpPassword;
|
|
|
|
|
|
/**
|
|
|
* 盐值
|
|
|
*/
|
|
|
- @Column(name = "salt")
|
|
|
private String salt;
|
|
|
|
|
|
/**
|
|
|
* 用户邮箱
|
|
|
*/
|
|
|
- @Column(name = "user_email")
|
|
|
private String email;
|
|
|
|
|
|
/**
|
|
|
* 用户邮箱认证状态
|
|
|
*/
|
|
|
- @Column(name = "email_valid_code")
|
|
|
private Short emailValidCode;
|
|
|
|
|
|
/**
|
|
|
@@ -88,37 +81,31 @@ public class UserAccount implements Serializable {
|
|
|
/**
|
|
|
* 账户是否冻结(1、冻结)
|
|
|
*/
|
|
|
- @Column(name = "_lock")
|
|
|
private Integer lock;
|
|
|
|
|
|
/**
|
|
|
* 企业uu号
|
|
|
*/
|
|
|
- @Column(name = "spaceuu")
|
|
|
private Long spaceUU;
|
|
|
|
|
|
/**
|
|
|
* 企业名称
|
|
|
*/
|
|
|
- @Column(name = "space_name", unique = true)
|
|
|
private String spaceName;
|
|
|
|
|
|
/**
|
|
|
* 营业执照号
|
|
|
*/
|
|
|
- @Column(name = "business_code")
|
|
|
private String businessCode;
|
|
|
|
|
|
/**
|
|
|
* 企业域名
|
|
|
*/
|
|
|
- @Column(name = "domain")
|
|
|
private String spaceDomain;
|
|
|
|
|
|
/**
|
|
|
* 应用唯一标志
|
|
|
*/
|
|
|
- @Column(name = "app_uid")
|
|
|
private String appId;
|
|
|
|
|
|
/**
|
|
|
@@ -206,6 +193,8 @@ public class UserAccount implements Serializable {
|
|
|
this.mobileValidCode = mobileValidCode;
|
|
|
}
|
|
|
|
|
|
+ @JsonIgnore
|
|
|
+ @JSONField(serialize = false)
|
|
|
public String getPassword() {
|
|
|
return password;
|
|
|
}
|
|
|
@@ -214,6 +203,8 @@ public class UserAccount implements Serializable {
|
|
|
this.password = password;
|
|
|
}
|
|
|
|
|
|
+ @JsonIgnore
|
|
|
+ @JSONField(serialize = false)
|
|
|
public String getErpPassword() {
|
|
|
return erpPassword;
|
|
|
}
|
|
|
@@ -222,6 +213,8 @@ public class UserAccount implements Serializable {
|
|
|
this.erpPassword = erpPassword;
|
|
|
}
|
|
|
|
|
|
+ @JsonIgnore
|
|
|
+ @JSONField(serialize = false)
|
|
|
public String getSalt() {
|
|
|
return salt;
|
|
|
}
|