package com.consum.model.po;
|
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.walker.jdbc.BasePo;
|
|
|
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
|
public class SLoginInfo extends BasePo<SLoginInfo> {
|
// 序列化版本号
|
private static final long serialVersionUID = 1L;
|
|
// 主键
|
private Long infoId = null;
|
@JsonIgnore
|
protected boolean isset_info_id = false;
|
|
// 属性列表
|
private String userName = null;
|
@JsonIgnore
|
protected boolean isset_user_name = false;
|
|
private String ipaddr = null;
|
@JsonIgnore
|
protected boolean isset_ipaddr = false;
|
|
private String loginLocation = null;
|
@JsonIgnore
|
protected boolean isset_login_location = false;
|
|
private String browser = null;
|
@JsonIgnore
|
protected boolean isset_browser = false;
|
|
private String os = null;
|
@JsonIgnore
|
protected boolean isset_os = false;
|
|
private String status = null;
|
@JsonIgnore
|
protected boolean isset_status = false;
|
|
private String msg = null;
|
@JsonIgnore
|
protected boolean isset_msg = false;
|
|
private Long loginTime = null;
|
@JsonIgnore
|
protected boolean isset_login_time = false;
|
|
/**
|
* 单位
|
*/
|
private String sysUserUnit;
|
|
public String getSysUserUnit() {
|
return sysUserUnit;
|
}
|
|
public void setSysUserUnit(String sysUserUnit) {
|
this.sysUserUnit = sysUserUnit;
|
}
|
|
public String getSysUserName() {
|
return sysUserName;
|
}
|
|
public void setSysUserName(String sysUserName) {
|
this.sysUserName = sysUserName;
|
}
|
|
/**
|
* 名字
|
*/
|
private String sysUserName;
|
|
|
/**
|
* 默认构造函数
|
*/
|
public SLoginInfo() {
|
}
|
|
/**
|
* 根据主键构造对象
|
*/
|
public SLoginInfo(Long info_id) {
|
this.setInfoId(info_id);
|
}
|
|
/**
|
* 设置主键值
|
*/
|
@Override
|
public void setPkValue(Object value) {
|
this.setInfoId((Long)value);
|
}
|
|
public Long getInfoId() {
|
return this.infoId;
|
}
|
|
public void setInfoId(Long infoId) {
|
this.infoId = infoId;
|
this.isset_info_id = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyInfoId() {
|
return this.infoId == null;
|
}
|
|
public String getUserName() {
|
return this.userName;
|
}
|
|
public void setUserName(String userName) {
|
this.userName = userName;
|
this.isset_user_name = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyUserName() {
|
return this.userName == null || this.userName.length() == 0;
|
}
|
|
public String getIpaddr() {
|
return this.ipaddr;
|
}
|
|
public void setIpaddr(String ipaddr) {
|
this.ipaddr = ipaddr;
|
this.isset_ipaddr = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyIpaddr() {
|
return this.ipaddr == null || this.ipaddr.length() == 0;
|
}
|
|
public String getLoginLocation() {
|
return this.loginLocation;
|
}
|
|
public void setLoginLocation(String loginLocation) {
|
this.loginLocation = loginLocation;
|
this.isset_login_location = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyLoginLocation() {
|
return this.loginLocation == null || this.loginLocation.length() == 0;
|
}
|
|
public String getBrowser() {
|
return this.browser;
|
}
|
|
public void setBrowser(String browser) {
|
this.browser = browser;
|
this.isset_browser = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyBrowser() {
|
return this.browser == null || this.browser.length() == 0;
|
}
|
|
public String getOs() {
|
return this.os;
|
}
|
|
public void setOs(String os) {
|
this.os = os;
|
this.isset_os = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyOs() {
|
return this.os == null || this.os.length() == 0;
|
}
|
|
public String getStatus() {
|
return this.status;
|
}
|
|
public void setStatus(String status) {
|
this.status = status;
|
this.isset_status = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyStatus() {
|
return this.status == null || this.status.length() == 0;
|
}
|
|
public String getMsg() {
|
return this.msg;
|
}
|
|
public void setMsg(String msg) {
|
this.msg = msg;
|
this.isset_msg = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyMsg() {
|
return this.msg == null || this.msg.length() == 0;
|
}
|
|
public Long getLoginTime() {
|
return this.loginTime;
|
}
|
|
public void setLoginTime(Long loginTime) {
|
this.loginTime = loginTime;
|
this.isset_login_time = true;
|
}
|
|
@JsonIgnore
|
public boolean isEmptyLoginTime() {
|
return this.loginTime == null;
|
}
|
|
/**
|
* 重写 toString() 方法
|
*/
|
@Override
|
public String toString() {
|
return new StringBuilder().append("info_id=").append(this.infoId).append("user_name=").append(this.userName)
|
.append("ipaddr=").append(this.ipaddr).append("login_location=").append(this.loginLocation)
|
.append("browser=").append(this.browser).append("os=").append(this.os).append("status=").append(this.status)
|
.append("msg=").append(this.msg).append("login_time=").append(this.loginTime).toString();
|
}
|
|
/**
|
* 克隆
|
*/
|
public SLoginInfo $clone() {
|
SLoginInfo s_login_info = new SLoginInfo();
|
|
// 数据库名称
|
//s_login_info.setDatabaseName_(this.getDatabaseName_());
|
|
// 主键
|
if (this.isset_info_id) {
|
s_login_info.setInfoId(this.getInfoId());
|
}
|
// 普通属性
|
if (this.isset_user_name) {
|
s_login_info.setUserName(this.getUserName());
|
}
|
if (this.isset_ipaddr) {
|
s_login_info.setIpaddr(this.getIpaddr());
|
}
|
if (this.isset_login_location) {
|
s_login_info.setLoginLocation(this.getLoginLocation());
|
}
|
if (this.isset_browser) {
|
s_login_info.setBrowser(this.getBrowser());
|
}
|
if (this.isset_os) {
|
s_login_info.setOs(this.getOs());
|
}
|
if (this.isset_status) {
|
s_login_info.setStatus(this.getStatus());
|
}
|
if (this.isset_msg) {
|
s_login_info.setMsg(this.getMsg());
|
}
|
if (this.isset_login_time) {
|
s_login_info.setLoginTime(this.getLoginTime());
|
}
|
return s_login_info;
|
}
|
}
|