|
@ -1,123 +0,0 @@
|
|
|
package com.yihu.jw.base.login;// default package
|
|
|
|
|
|
import com.yihu.jw.IdEntityWithOperation;
|
|
|
|
|
|
import javax.persistence.*;
|
|
|
import java.util.Date;
|
|
|
|
|
|
/**
|
|
|
* 账号实体 包含医生 患者的账号
|
|
|
*/
|
|
|
@Entity
|
|
|
@Table(name = "wlyy_login_account")
|
|
|
public class WlyyLoginAccountDO extends IdEntityWithOperation implements java.io.Serializable {
|
|
|
|
|
|
private String userType;//'用户类型 1居民 2医生 或者行政管理员'
|
|
|
private String password;//'密码'
|
|
|
private String salt;//'盐值'
|
|
|
private String accountStatus;//'状态 ( -2 锁定 -1 删除,0可用 )'
|
|
|
private String saasId;//'saas配置id'
|
|
|
private String email;//'邮箱'
|
|
|
|
|
|
// Constructors
|
|
|
|
|
|
/** default constructor */
|
|
|
public WlyyLoginAccountDO() {
|
|
|
}
|
|
|
|
|
|
/** minimal constructor */
|
|
|
public WlyyLoginAccountDO(Date createTime, Date updateTime) {
|
|
|
|
|
|
this.createTime = createTime;
|
|
|
this.updateTime = updateTime;
|
|
|
}
|
|
|
|
|
|
/** full constructor */
|
|
|
public WlyyLoginAccountDO( String userType,
|
|
|
String password, String salt, String accountStatus, Date createTime,
|
|
|
Date updateTime, String saasId, String email) {
|
|
|
this.userType = userType;
|
|
|
this.password = password;
|
|
|
this.salt = salt;
|
|
|
this.accountStatus = accountStatus;
|
|
|
this.createTime = createTime;
|
|
|
this.updateTime = updateTime;
|
|
|
this.saasId = saasId;
|
|
|
this.email = email;
|
|
|
}
|
|
|
|
|
|
@Column(name = "user_type", precision = 2, scale = 0)
|
|
|
public String getUserType() {
|
|
|
return this.userType;
|
|
|
}
|
|
|
|
|
|
public void setUserType(String userType) {
|
|
|
this.userType = userType;
|
|
|
}
|
|
|
|
|
|
@Column(name = "password", length = 100)
|
|
|
public String getPassword() {
|
|
|
return this.password;
|
|
|
}
|
|
|
|
|
|
public void setPassword(String password) {
|
|
|
this.password = password;
|
|
|
}
|
|
|
|
|
|
@Column(name = "salt", length = 100)
|
|
|
public String getSalt() {
|
|
|
return this.salt;
|
|
|
}
|
|
|
|
|
|
public void setSalt(String salt) {
|
|
|
this.salt = salt;
|
|
|
}
|
|
|
|
|
|
@Column(name = "account_status", precision = 2, scale = 0)
|
|
|
public String getAccountStatus() {
|
|
|
return this.accountStatus;
|
|
|
}
|
|
|
|
|
|
public void setAccountStatus(String accountStatus) {
|
|
|
this.accountStatus = accountStatus;
|
|
|
}
|
|
|
|
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
|
@Column(name = "create_time", nullable = false, length = 0)
|
|
|
public Date getCreateTime() {
|
|
|
return this.createTime;
|
|
|
}
|
|
|
|
|
|
public void setCreateTime(Date createTime) {
|
|
|
this.createTime = createTime;
|
|
|
}
|
|
|
|
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
|
@Column(name = "update_time", nullable = false, length = 0)
|
|
|
public Date getUpdateTime() {
|
|
|
return this.updateTime;
|
|
|
}
|
|
|
|
|
|
public void setUpdateTime(Date updateTime) {
|
|
|
this.updateTime = updateTime;
|
|
|
}
|
|
|
|
|
|
@Column(name = "saas_id", length = 100)
|
|
|
public String getSaasId() {
|
|
|
return this.saasId;
|
|
|
}
|
|
|
|
|
|
public void setSaasId(String saasId) {
|
|
|
this.saasId = saasId;
|
|
|
}
|
|
|
|
|
|
@Column(name = "email", length = 100)
|
|
|
public String getEmail() {
|
|
|
return this.email;
|
|
|
}
|
|
|
|
|
|
public void setEmail(String email) {
|
|
|
this.email = email;
|
|
|
}
|
|
|
|
|
|
}
|