2021-07-12 14:51:34 +08:00
|
|
|
|
package com.xkrs.model.entity;
|
|
|
|
|
|
|
|
|
|
import javax.persistence.*;
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SysUser 表实体类
|
|
|
|
|
* @author tajochen
|
|
|
|
|
*/
|
|
|
|
|
@Entity
|
|
|
|
|
@Table(name="sys_user")
|
|
|
|
|
public class SysUserEntity implements Serializable {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 指定主键,建立自增序列,主键值取自序列
|
|
|
|
|
*/
|
|
|
|
|
@Id
|
|
|
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sys_user_seq_gen")
|
|
|
|
|
@SequenceGenerator(name = "sys_user_seq_gen", sequenceName = "sys_user_id_seq",allocationSize = 1)
|
|
|
|
|
private Integer id;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 用户名
|
|
|
|
|
*/
|
|
|
|
|
@Column(length = 16, nullable = false, unique = true, columnDefinition = "varchar(16)")
|
|
|
|
|
private String userName;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 用户真实姓名
|
|
|
|
|
*/
|
|
|
|
|
@Column(length = 32, columnDefinition = "varchar(32)")
|
|
|
|
|
private String reallyName;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 密码
|
|
|
|
|
*/
|
|
|
|
|
@Column(length = 64, nullable = false, columnDefinition = "varchar(64)")
|
|
|
|
|
private String password;
|
|
|
|
|
|
|
|
|
|
@Column(length = 32, nullable = false, columnDefinition = "varchar(32)")
|
|
|
|
|
private String salt;
|
|
|
|
|
|
|
|
|
|
@Column(length = 16, unique = true, columnDefinition = "varchar(16)")
|
|
|
|
|
private String telephone;
|
|
|
|
|
|
|
|
|
|
@Column(length = 32, columnDefinition = "varchar(32)")
|
2021-07-14 16:06:34 +08:00
|
|
|
|
private String countyCode;
|
2021-07-12 14:51:34 +08:00
|
|
|
|
|
|
|
|
|
@Column(columnDefinition = "varchar(192)")
|
|
|
|
|
private String signature;
|
|
|
|
|
|
|
|
|
|
@Column(nullable = false)
|
|
|
|
|
private Integer activeFlag;
|
|
|
|
|
|
|
|
|
|
@Column(nullable = false,columnDefinition = "smallint")
|
|
|
|
|
private Integer statusCode;
|
|
|
|
|
|
|
|
|
|
@Column(nullable = false)
|
2021-07-14 16:06:34 +08:00
|
|
|
|
private String addTime;
|
2021-07-12 14:51:34 +08:00
|
|
|
|
|
|
|
|
|
private LocalDateTime lastEntryTime;
|
|
|
|
|
|
|
|
|
|
@Column(nullable = false)
|
|
|
|
|
private Integer deleteFlag;
|
|
|
|
|
|
|
|
|
|
@Column(columnDefinition = "varchar(64)")
|
|
|
|
|
private String lastEntryIp;
|
|
|
|
|
|
2021-07-14 09:23:53 +08:00
|
|
|
|
/**
|
|
|
|
|
* 账号的使用天数
|
|
|
|
|
*/
|
|
|
|
|
private Integer dayNum;
|
|
|
|
|
|
2021-07-14 16:06:34 +08:00
|
|
|
|
/**
|
|
|
|
|
* 账号到期的时间
|
|
|
|
|
*/
|
|
|
|
|
private String overTime;
|
|
|
|
|
|
2021-08-06 11:36:13 +08:00
|
|
|
|
/**
|
|
|
|
|
* 账号类别
|
|
|
|
|
*/
|
|
|
|
|
@Column(length = 64,columnDefinition = "varchar(64)")
|
|
|
|
|
private String accountType;
|
|
|
|
|
|
2021-08-10 08:41:17 +08:00
|
|
|
|
@Column(length = 64,columnDefinition = "varchar(64)")
|
|
|
|
|
private String countyName;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 登录次数
|
|
|
|
|
*/
|
|
|
|
|
private Integer loginNum;
|
|
|
|
|
|
2021-11-17 14:55:09 +08:00
|
|
|
|
/**
|
|
|
|
|
* 用户最新登录时间
|
|
|
|
|
*/
|
|
|
|
|
private String loginLastTime;
|
|
|
|
|
|
2021-07-12 14:51:34 +08:00
|
|
|
|
public Integer getId() {
|
|
|
|
|
return id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setId(Integer id) {
|
|
|
|
|
this.id = id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getUserName() {
|
|
|
|
|
return userName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setUserName(String userName) {
|
|
|
|
|
this.userName = userName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getReallyName() {
|
|
|
|
|
return reallyName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setReallyName(String reallyName) {
|
|
|
|
|
this.reallyName = reallyName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getPassword() {
|
|
|
|
|
return password;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setPassword(String password) {
|
|
|
|
|
this.password = password;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getSalt() {
|
|
|
|
|
return salt;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSalt(String salt) {
|
|
|
|
|
this.salt = salt;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getTelephone() {
|
|
|
|
|
return telephone;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setTelephone(String telephone) {
|
|
|
|
|
this.telephone = telephone;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-14 16:06:34 +08:00
|
|
|
|
public String getCountyCode() {
|
|
|
|
|
return countyCode;
|
2021-07-12 14:51:34 +08:00
|
|
|
|
}
|
|
|
|
|
|
2021-07-14 16:06:34 +08:00
|
|
|
|
public void setCountyCode(String countyCode) {
|
|
|
|
|
this.countyCode = countyCode;
|
2021-07-12 14:51:34 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getSignature() {
|
|
|
|
|
return signature;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSignature(String signature) {
|
|
|
|
|
this.signature = signature;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getActiveFlag() {
|
|
|
|
|
return activeFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setActiveFlag(Integer activeFlag) {
|
|
|
|
|
this.activeFlag = activeFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getStatusCode() {
|
|
|
|
|
return statusCode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setStatusCode(Integer statusCode) {
|
|
|
|
|
this.statusCode = statusCode;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-14 16:06:34 +08:00
|
|
|
|
public String getAddTime() {
|
2021-07-12 14:51:34 +08:00
|
|
|
|
return addTime;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-14 16:06:34 +08:00
|
|
|
|
public void setAddTime(String addTime) {
|
2021-07-12 14:51:34 +08:00
|
|
|
|
this.addTime = addTime;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public LocalDateTime getLastEntryTime() {
|
|
|
|
|
return lastEntryTime;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setLastEntryTime(LocalDateTime lastEntryTime) {
|
|
|
|
|
this.lastEntryTime = lastEntryTime;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getDeleteFlag() {
|
|
|
|
|
return deleteFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setDeleteFlag(Integer deleteFlag) {
|
|
|
|
|
this.deleteFlag = deleteFlag;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getLastEntryIp() {
|
|
|
|
|
return lastEntryIp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setLastEntryIp(String lastEntryIp) {
|
|
|
|
|
this.lastEntryIp = lastEntryIp;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-14 09:23:53 +08:00
|
|
|
|
public Integer getDayNum() {
|
|
|
|
|
return dayNum;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setDayNum(Integer dayNum) {
|
|
|
|
|
this.dayNum = dayNum;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-14 16:06:34 +08:00
|
|
|
|
public String getOverTime() {
|
|
|
|
|
return overTime;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setOverTime(String overTime) {
|
|
|
|
|
this.overTime = overTime;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-06 11:36:13 +08:00
|
|
|
|
public String getAccountType() {
|
|
|
|
|
return accountType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setAccountType(String accountType) {
|
|
|
|
|
this.accountType = accountType;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-10 08:41:17 +08:00
|
|
|
|
public String getCountyName() {
|
|
|
|
|
return countyName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setCountyName(String countyName) {
|
|
|
|
|
this.countyName = countyName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getLoginNum() {
|
|
|
|
|
return loginNum;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setLoginNum(Integer loginNum) {
|
|
|
|
|
this.loginNum = loginNum;
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-17 14:55:09 +08:00
|
|
|
|
public String getLoginLastTime() {
|
|
|
|
|
return loginLastTime;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setLoginLastTime(String loginLastTime) {
|
|
|
|
|
this.loginLastTime = loginLastTime;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-12 14:51:34 +08:00
|
|
|
|
@Override
|
|
|
|
|
public String toString() {
|
|
|
|
|
return "SysUserEntity{" +
|
|
|
|
|
"id=" + id +
|
|
|
|
|
", userName='" + userName + '\'' +
|
|
|
|
|
", reallyName='" + reallyName + '\'' +
|
|
|
|
|
", password='" + password + '\'' +
|
|
|
|
|
", salt='" + salt + '\'' +
|
|
|
|
|
", telephone='" + telephone + '\'' +
|
2021-07-14 16:06:34 +08:00
|
|
|
|
", countyCode='" + countyCode + '\'' +
|
2021-07-12 14:51:34 +08:00
|
|
|
|
", signature='" + signature + '\'' +
|
|
|
|
|
", activeFlag=" + activeFlag +
|
|
|
|
|
", statusCode=" + statusCode +
|
2021-07-14 16:06:34 +08:00
|
|
|
|
", addTime='" + addTime + '\'' +
|
2021-07-12 14:51:34 +08:00
|
|
|
|
", lastEntryTime=" + lastEntryTime +
|
|
|
|
|
", deleteFlag=" + deleteFlag +
|
|
|
|
|
", lastEntryIp='" + lastEntryIp + '\'' +
|
2021-07-14 09:23:53 +08:00
|
|
|
|
", dayNum=" + dayNum +
|
2021-07-14 16:06:34 +08:00
|
|
|
|
", overTime='" + overTime + '\'' +
|
2021-08-06 11:36:13 +08:00
|
|
|
|
", accountType='" + accountType + '\'' +
|
2021-08-10 08:41:17 +08:00
|
|
|
|
", countyName='" + countyName + '\'' +
|
|
|
|
|
", loginNum=" + loginNum +
|
2021-11-17 14:55:09 +08:00
|
|
|
|
", loginLastTime='" + loginLastTime + '\'' +
|
2021-07-12 14:51:34 +08:00
|
|
|
|
'}';
|
|
|
|
|
}
|
|
|
|
|
}
|