fire_point/src/main/java/com/xkrs/model/entity/SysUserEntity.java

286 lines
6.4 KiB
Java
Raw Normal View History

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)")
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)
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;
/**
* 账号的使用天数
*/
private Integer dayNum;
/**
* 账号到期的时间
*/
private String overTime;
2021-08-06 11:36:13 +08:00
/**
* 账号类别
*/
@Column(length = 64,columnDefinition = "varchar(64)")
private String accountType;
@Column(length = 64,columnDefinition = "varchar(64)")
private String countyName;
/**
* 登录次数
*/
private Integer loginNum;
/**
* 用户最新登录时间
*/
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;
}
public String getCountyCode() {
return countyCode;
2021-07-12 14:51: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;
}
public String getAddTime() {
2021-07-12 14:51:34 +08:00
return addTime;
}
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;
}
public Integer getDayNum() {
return dayNum;
}
public void setDayNum(Integer dayNum) {
this.dayNum = dayNum;
}
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;
}
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;
}
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 + '\'' +
", countyCode='" + countyCode + '\'' +
2021-07-12 14:51:34 +08:00
", signature='" + signature + '\'' +
", activeFlag=" + activeFlag +
", statusCode=" + statusCode +
", addTime='" + addTime + '\'' +
2021-07-12 14:51:34 +08:00
", lastEntryTime=" + lastEntryTime +
", deleteFlag=" + deleteFlag +
", lastEntryIp='" + lastEntryIp + '\'' +
", dayNum=" + dayNum +
", overTime='" + overTime + '\'' +
2021-08-06 11:36:13 +08:00
", accountType='" + accountType + '\'' +
", countyName='" + countyName + '\'' +
", loginNum=" + loginNum +
", loginLastTime='" + loginLastTime + '\'' +
2021-07-12 14:51:34 +08:00
'}';
}
}