ganzi-api/inventory-dao/src/main/java/com/rzyc/model/SysLogAuth.java
2022-09-16 15:07:17 +08:00

213 lines
7.2 KiB
Java

package com.rzyc.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
/**
* @author
*/
@ApiModel("认证日志")
public class SysLogAuth implements Serializable {
@ApiModelProperty("日志id")
private String syslogauthid;
private String authuserid;
@ApiModelProperty("用户名")
private String authusername;
@ApiModelProperty("类型")
private String authopttype;
private Date authopttime;
@ApiModelProperty("IP地质")
private String authoptip;
@ApiModelProperty("操作状态")
private String authoptstatus;
private String createdby;
@ApiModelProperty("时间")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
private Date createdon;
private String modifiedby;
private Date modifiedon;
private String sysenterpriseid;
private static final long serialVersionUID = 1L;
public String getSyslogauthid() {
return syslogauthid;
}
public void setSyslogauthid(String syslogauthid) {
this.syslogauthid = syslogauthid;
}
public String getAuthuserid() {
return authuserid;
}
public void setAuthuserid(String authuserid) {
this.authuserid = authuserid;
}
public String getAuthusername() {
return authusername;
}
public void setAuthusername(String authusername) {
this.authusername = authusername;
}
public String getAuthopttype() {
return authopttype;
}
public void setAuthopttype(String authopttype) {
this.authopttype = authopttype;
}
public Date getAuthopttime() {
return authopttime;
}
public void setAuthopttime(Date authopttime) {
this.authopttime = authopttime;
}
public String getAuthoptip() {
return authoptip;
}
public void setAuthoptip(String authoptip) {
this.authoptip = authoptip;
}
public String getAuthoptstatus() {
return authoptstatus;
}
public void setAuthoptstatus(String authoptstatus) {
this.authoptstatus = authoptstatus;
}
public String getCreatedby() {
return createdby;
}
public void setCreatedby(String createdby) {
this.createdby = createdby;
}
public Date getCreatedon() {
return createdon;
}
public void setCreatedon(Date createdon) {
this.createdon = createdon;
}
public String getModifiedby() {
return modifiedby;
}
public void setModifiedby(String modifiedby) {
this.modifiedby = modifiedby;
}
public Date getModifiedon() {
return modifiedon;
}
public void setModifiedon(Date modifiedon) {
this.modifiedon = modifiedon;
}
public String getSysenterpriseid() {
return sysenterpriseid;
}
public void setSysenterpriseid(String sysenterpriseid) {
this.sysenterpriseid = sysenterpriseid;
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
SysLogAuth other = (SysLogAuth) that;
return (this.getSyslogauthid() == null ? other.getSyslogauthid() == null : this.getSyslogauthid().equals(other.getSyslogauthid()))
&& (this.getAuthuserid() == null ? other.getAuthuserid() == null : this.getAuthuserid().equals(other.getAuthuserid()))
&& (this.getAuthusername() == null ? other.getAuthusername() == null : this.getAuthusername().equals(other.getAuthusername()))
&& (this.getAuthopttype() == null ? other.getAuthopttype() == null : this.getAuthopttype().equals(other.getAuthopttype()))
&& (this.getAuthopttime() == null ? other.getAuthopttime() == null : this.getAuthopttime().equals(other.getAuthopttime()))
&& (this.getAuthoptip() == null ? other.getAuthoptip() == null : this.getAuthoptip().equals(other.getAuthoptip()))
&& (this.getAuthoptstatus() == null ? other.getAuthoptstatus() == null : this.getAuthoptstatus().equals(other.getAuthoptstatus()))
&& (this.getCreatedby() == null ? other.getCreatedby() == null : this.getCreatedby().equals(other.getCreatedby()))
&& (this.getCreatedon() == null ? other.getCreatedon() == null : this.getCreatedon().equals(other.getCreatedon()))
&& (this.getModifiedby() == null ? other.getModifiedby() == null : this.getModifiedby().equals(other.getModifiedby()))
&& (this.getModifiedon() == null ? other.getModifiedon() == null : this.getModifiedon().equals(other.getModifiedon()))
&& (this.getSysenterpriseid() == null ? other.getSysenterpriseid() == null : this.getSysenterpriseid().equals(other.getSysenterpriseid()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getSyslogauthid() == null) ? 0 : getSyslogauthid().hashCode());
result = prime * result + ((getAuthuserid() == null) ? 0 : getAuthuserid().hashCode());
result = prime * result + ((getAuthusername() == null) ? 0 : getAuthusername().hashCode());
result = prime * result + ((getAuthopttype() == null) ? 0 : getAuthopttype().hashCode());
result = prime * result + ((getAuthopttime() == null) ? 0 : getAuthopttime().hashCode());
result = prime * result + ((getAuthoptip() == null) ? 0 : getAuthoptip().hashCode());
result = prime * result + ((getAuthoptstatus() == null) ? 0 : getAuthoptstatus().hashCode());
result = prime * result + ((getCreatedby() == null) ? 0 : getCreatedby().hashCode());
result = prime * result + ((getCreatedon() == null) ? 0 : getCreatedon().hashCode());
result = prime * result + ((getModifiedby() == null) ? 0 : getModifiedby().hashCode());
result = prime * result + ((getModifiedon() == null) ? 0 : getModifiedon().hashCode());
result = prime * result + ((getSysenterpriseid() == null) ? 0 : getSysenterpriseid().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", syslogauthid=").append(syslogauthid);
sb.append(", authuserid=").append(authuserid);
sb.append(", authusername=").append(authusername);
sb.append(", authopttype=").append(authopttype);
sb.append(", authopttime=").append(authopttime);
sb.append(", authoptip=").append(authoptip);
sb.append(", authoptstatus=").append(authoptstatus);
sb.append(", createdby=").append(createdby);
sb.append(", createdon=").append(createdon);
sb.append(", modifiedby=").append(modifiedby);
sb.append(", modifiedon=").append(modifiedon);
sb.append(", sysenterpriseid=").append(sysenterpriseid);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}