ganzi-api/inventory-dao/src/main/java/com/rzyc/model/SysStatute.java

184 lines
5.4 KiB
Java
Raw Normal View History

2022-09-16 15:07:17 +08:00
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 SysStatute implements Serializable {
/**
* 法规id
*/
@ApiModelProperty("法规、法规章节id")
private String statuteId;
/**
* 法规标题
*/
@ApiModelProperty("法规名、法规章节名")
private String statuteTitle;
/**
* 父级id
*/
@ApiModelProperty("父级id")
private String parentId;
/**
* 排序
*/
@ApiModelProperty("排序")
private Integer statuteSort;
/**
* 修改人
*/
private String modified;
/**
* 创建人
*/
private String created;
/**
* 修改时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
private Date modifyTime;
/**
* 创建时间
*/
@ApiModelProperty("创建时间")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
private Date createTime;
private static final long serialVersionUID = 1L;
public String getStatuteId() {
return statuteId;
}
public void setStatuteId(String statuteId) {
this.statuteId = statuteId;
}
public String getStatuteTitle() {
return statuteTitle;
}
public void setStatuteTitle(String statuteTitle) {
this.statuteTitle = statuteTitle;
}
public String getParentId() {
return parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public Integer getStatuteSort() {
return statuteSort;
}
public void setStatuteSort(Integer statuteSort) {
this.statuteSort = statuteSort;
}
public String getModified() {
return modified;
}
public void setModified(String modified) {
this.modified = modified;
}
public String getCreated() {
return created;
}
public void setCreated(String created) {
this.created = created;
}
public Date getModifyTime() {
return modifyTime;
}
public void setModifyTime(Date modifyTime) {
this.modifyTime = modifyTime;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
SysStatute other = (SysStatute) that;
return (this.getStatuteId() == null ? other.getStatuteId() == null : this.getStatuteId().equals(other.getStatuteId()))
&& (this.getStatuteTitle() == null ? other.getStatuteTitle() == null : this.getStatuteTitle().equals(other.getStatuteTitle()))
&& (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()))
&& (this.getStatuteSort() == null ? other.getStatuteSort() == null : this.getStatuteSort().equals(other.getStatuteSort()))
&& (this.getModified() == null ? other.getModified() == null : this.getModified().equals(other.getModified()))
&& (this.getCreated() == null ? other.getCreated() == null : this.getCreated().equals(other.getCreated()))
&& (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getStatuteId() == null) ? 0 : getStatuteId().hashCode());
result = prime * result + ((getStatuteTitle() == null) ? 0 : getStatuteTitle().hashCode());
result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
result = prime * result + ((getStatuteSort() == null) ? 0 : getStatuteSort().hashCode());
result = prime * result + ((getModified() == null) ? 0 : getModified().hashCode());
result = prime * result + ((getCreated() == null) ? 0 : getCreated().hashCode());
result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", statuteId=").append(statuteId);
sb.append(", statuteTitle=").append(statuteTitle);
sb.append(", parentId=").append(parentId);
sb.append(", statuteSort=").append(statuteSort);
sb.append(", modified=").append(modified);
sb.append(", created=").append(created);
sb.append(", modifyTime=").append(modifyTime);
sb.append(", createTime=").append(createTime);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}