...
|
...
|
@@ -17,142 +17,141 @@ import com.agent.entity.BasicEntity; |
|
|
@Table(name = "sys_user")
|
|
|
public class UserEntity extends BasicEntity {
|
|
|
|
|
|
/**
|
|
|
* 登录账号
|
|
|
*/
|
|
|
private String loginaccount;
|
|
|
|
|
|
/**
|
|
|
* 密码
|
|
|
*/
|
|
|
private String password;
|
|
|
|
|
|
/**
|
|
|
* 姓名
|
|
|
*/
|
|
|
private String realName;
|
|
|
|
|
|
/**
|
|
|
* 手机号码
|
|
|
*/
|
|
|
private String mobile;
|
|
|
|
|
|
/**
|
|
|
* 邮箱
|
|
|
*/
|
|
|
private String email;
|
|
|
|
|
|
/**
|
|
|
* 角色
|
|
|
*/
|
|
|
private RoleEntity role;
|
|
|
|
|
|
/**
|
|
|
* 上次登录时间
|
|
|
*/
|
|
|
private Date lastLoginTime;
|
|
|
|
|
|
/**
|
|
|
* 用户描述
|
|
|
*/
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 0 未启用 1启用
|
|
|
*/
|
|
|
private int status = 0;
|
|
|
|
|
|
/**
|
|
|
* 代理人
|
|
|
*/
|
|
|
private Long agent;
|
|
|
|
|
|
@Column(name = "loginaccount", nullable = false, length = 20)
|
|
|
public String getLoginaccount() {
|
|
|
return loginaccount;
|
|
|
}
|
|
|
|
|
|
public void setLoginaccount(String loginaccount) {
|
|
|
this.loginaccount = loginaccount;
|
|
|
}
|
|
|
|
|
|
@Column(name = "password", nullable = false)
|
|
|
public String getPassword() {
|
|
|
return password;
|
|
|
}
|
|
|
|
|
|
public void setPassword(String password) {
|
|
|
this.password = password;
|
|
|
}
|
|
|
|
|
|
@Column(name = "mobile", length = 20)
|
|
|
public String getMobile() {
|
|
|
return mobile;
|
|
|
}
|
|
|
|
|
|
public void setMobile(String mobile) {
|
|
|
this.mobile = mobile;
|
|
|
}
|
|
|
|
|
|
@JsonIgnore
|
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
|
|
@JoinColumn(name = "role")
|
|
|
public RoleEntity getRole() {
|
|
|
return role;
|
|
|
}
|
|
|
|
|
|
public void setRole(RoleEntity role) {
|
|
|
this.role = role;
|
|
|
}
|
|
|
|
|
|
@Column(name = "realName", length = 20, nullable = false)
|
|
|
public String getRealName() {
|
|
|
return realName;
|
|
|
}
|
|
|
|
|
|
public void setRealName(String realName) {
|
|
|
this.realName = realName;
|
|
|
}
|
|
|
|
|
|
public Date getLastLoginTime() {
|
|
|
return lastLoginTime;
|
|
|
}
|
|
|
|
|
|
public void setLastLoginTime(Date lastLoginTime) {
|
|
|
this.lastLoginTime = lastLoginTime;
|
|
|
}
|
|
|
|
|
|
public String getDescription() {
|
|
|
return description;
|
|
|
}
|
|
|
|
|
|
public void setDescription(String description) {
|
|
|
this.description = description;
|
|
|
}
|
|
|
|
|
|
public String getEmail() {
|
|
|
return email;
|
|
|
}
|
|
|
|
|
|
public void setEmail(String email) {
|
|
|
this.email = email;
|
|
|
}
|
|
|
|
|
|
public int getStatus() {
|
|
|
return status;
|
|
|
}
|
|
|
|
|
|
public void setStatus(int status) {
|
|
|
this.status = status;
|
|
|
}
|
|
|
|
|
|
@Column(name = "AGENT_ID")
|
|
|
public Long getAgent() {
|
|
|
return agent;
|
|
|
}
|
|
|
|
|
|
public void setAgent(Long agent) {
|
|
|
this.agent = agent;
|
|
|
}
|
|
|
/**
|
|
|
* 登录账号
|
|
|
*/
|
|
|
private String loginaccount;
|
|
|
|
|
|
/**
|
|
|
* 密码
|
|
|
*/
|
|
|
private String password;
|
|
|
|
|
|
/**
|
|
|
* 姓名
|
|
|
*/
|
|
|
private String realName;
|
|
|
|
|
|
/**
|
|
|
* 手机号码
|
|
|
*/
|
|
|
private String mobile;
|
|
|
|
|
|
/**
|
|
|
* 邮箱
|
|
|
*/
|
|
|
private String email;
|
|
|
|
|
|
/**
|
|
|
* 角色
|
|
|
*/
|
|
|
private RoleEntity role;
|
|
|
|
|
|
/**
|
|
|
* 上次登录时间
|
|
|
*/
|
|
|
private Date lastLoginTime;
|
|
|
|
|
|
/**
|
|
|
* 用户描述
|
|
|
*/
|
|
|
private String description;
|
|
|
|
|
|
/**
|
|
|
* 0 未启用 1启用
|
|
|
*/
|
|
|
private int status = 0;
|
|
|
|
|
|
/**
|
|
|
* 代理人
|
|
|
*/
|
|
|
private Long agent;
|
|
|
|
|
|
@Column(name = "loginaccount", nullable = false, length = 20)
|
|
|
public String getLoginaccount() {
|
|
|
return loginaccount;
|
|
|
}
|
|
|
|
|
|
public void setLoginaccount(String loginaccount) {
|
|
|
this.loginaccount = loginaccount;
|
|
|
}
|
|
|
|
|
|
@Column(name = "password", nullable = false)
|
|
|
public String getPassword() {
|
|
|
return password;
|
|
|
}
|
|
|
|
|
|
public void setPassword(String password) {
|
|
|
this.password = password;
|
|
|
}
|
|
|
|
|
|
@Column(name = "mobile", length = 20)
|
|
|
public String getMobile() {
|
|
|
return mobile;
|
|
|
}
|
|
|
|
|
|
public void setMobile(String mobile) {
|
|
|
this.mobile = mobile;
|
|
|
}
|
|
|
|
|
|
@JsonIgnore
|
|
|
@ManyToOne(fetch = FetchType.LAZY)
|
|
|
@JoinColumn(name = "role")
|
|
|
public RoleEntity getRole() {
|
|
|
return role;
|
|
|
}
|
|
|
|
|
|
public void setRole(RoleEntity role) {
|
|
|
this.role = role;
|
|
|
}
|
|
|
|
|
|
@Column(name = "realName", length = 20, nullable = false)
|
|
|
public String getRealName() {
|
|
|
return realName;
|
|
|
}
|
|
|
|
|
|
public void setRealName(String realName) {
|
|
|
this.realName = realName;
|
|
|
}
|
|
|
|
|
|
public Date getLastLoginTime() {
|
|
|
return lastLoginTime;
|
|
|
}
|
|
|
|
|
|
public void setLastLoginTime(Date lastLoginTime) {
|
|
|
this.lastLoginTime = lastLoginTime;
|
|
|
}
|
|
|
|
|
|
public String getDescription() {
|
|
|
return description;
|
|
|
}
|
|
|
|
|
|
public void setDescription(String description) {
|
|
|
this.description = description;
|
|
|
}
|
|
|
|
|
|
public String getEmail() {
|
|
|
return email;
|
|
|
}
|
|
|
|
|
|
public void setEmail(String email) {
|
|
|
this.email = email;
|
|
|
}
|
|
|
|
|
|
public int getStatus() {
|
|
|
return status;
|
|
|
}
|
|
|
|
|
|
public void setStatus(int status) {
|
|
|
this.status = status;
|
|
|
}
|
|
|
|
|
|
@Column(name = "AGENT_ID")
|
|
|
public Long getAgent() {
|
|
|
return agent;
|
|
|
}
|
|
|
|
|
|
public void setAgent(Long agent) {
|
|
|
this.agent = agent;
|
|
|
}
|
|
|
} |
...
|
...
|
|