300 lines
9.0 KiB
Java
300 lines
9.0 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 NewsCnt implements Serializable {
|
||
|
||
@ApiModelProperty("动态详情")
|
||
private String newscntid;
|
||
|
||
@ApiModelProperty("动态类型id")
|
||
private String newsclassid;
|
||
|
||
@ApiModelProperty("动态类型名")
|
||
private String dynamictype;
|
||
|
||
private Integer sortid;
|
||
|
||
@ApiModelProperty("动态标题")
|
||
private String newtitle;
|
||
|
||
/**
|
||
* 封面图
|
||
*/
|
||
@ApiModelProperty("封面图")
|
||
private String coverImage;
|
||
|
||
private String keyword;
|
||
|
||
private String syslabel;
|
||
|
||
private String newsource;
|
||
|
||
private Integer readnum;
|
||
|
||
private String sysediter;
|
||
|
||
@ApiModelProperty("发布时间")
|
||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
|
||
private Date publictime;
|
||
|
||
private Date createdon;
|
||
|
||
private String createdby;
|
||
|
||
private Date modifiedon;
|
||
|
||
private String modifiedby;
|
||
|
||
@ApiModelProperty("内容")
|
||
private String syscnt;
|
||
|
||
/**
|
||
* 部门id
|
||
*/
|
||
private String sysUnitId;
|
||
|
||
@ApiModelProperty("删除状态 1:正常 2:已删除")
|
||
private Integer delState;
|
||
|
||
private static final long serialVersionUID = 1L;
|
||
|
||
public Integer getDelState() {
|
||
return delState;
|
||
}
|
||
|
||
public void setDelState(Integer delState) {
|
||
this.delState = delState;
|
||
}
|
||
|
||
public String getDynamictype() {
|
||
return dynamictype;
|
||
}
|
||
|
||
public void setDynamictype(String dynamictype) {
|
||
this.dynamictype = dynamictype;
|
||
}
|
||
|
||
public String getSysUnitId() {
|
||
return sysUnitId;
|
||
}
|
||
|
||
public void setSysUnitId(String sysUnitId) {
|
||
this.sysUnitId = sysUnitId;
|
||
}
|
||
|
||
public String getCoverImage() {
|
||
return coverImage;
|
||
}
|
||
|
||
public void setCoverImage(String coverImage) {
|
||
this.coverImage = coverImage;
|
||
}
|
||
|
||
public String getNewscntid() {
|
||
return newscntid;
|
||
}
|
||
|
||
public void setNewscntid(String newscntid) {
|
||
this.newscntid = newscntid;
|
||
}
|
||
|
||
public String getNewsclassid() {
|
||
return newsclassid;
|
||
}
|
||
|
||
public void setNewsclassid(String newsclassid) {
|
||
this.newsclassid = newsclassid;
|
||
}
|
||
|
||
public Integer getSortid() {
|
||
return sortid;
|
||
}
|
||
|
||
public void setSortid(Integer sortid) {
|
||
this.sortid = sortid;
|
||
}
|
||
|
||
public String getNewtitle() {
|
||
return newtitle;
|
||
}
|
||
|
||
public void setNewtitle(String newtitle) {
|
||
this.newtitle = newtitle;
|
||
}
|
||
|
||
public String getKeyword() {
|
||
return keyword;
|
||
}
|
||
|
||
public void setKeyword(String keyword) {
|
||
this.keyword = keyword;
|
||
}
|
||
|
||
public String getSyslabel() {
|
||
return syslabel;
|
||
}
|
||
|
||
public void setSyslabel(String syslabel) {
|
||
this.syslabel = syslabel;
|
||
}
|
||
|
||
public String getNewsource() {
|
||
return newsource;
|
||
}
|
||
|
||
public void setNewsource(String newsource) {
|
||
this.newsource = newsource;
|
||
}
|
||
|
||
public Integer getReadnum() {
|
||
return readnum;
|
||
}
|
||
|
||
public void setReadnum(Integer readnum) {
|
||
this.readnum = readnum;
|
||
}
|
||
|
||
public String getSysediter() {
|
||
return sysediter;
|
||
}
|
||
|
||
public void setSysediter(String sysediter) {
|
||
this.sysediter = sysediter;
|
||
}
|
||
|
||
public Date getPublictime() {
|
||
return publictime;
|
||
}
|
||
|
||
public void setPublictime(Date publictime) {
|
||
this.publictime = publictime;
|
||
}
|
||
|
||
public Date getCreatedon() {
|
||
return createdon;
|
||
}
|
||
|
||
public void setCreatedon(Date createdon) {
|
||
this.createdon = createdon;
|
||
}
|
||
|
||
public String getCreatedby() {
|
||
return createdby;
|
||
}
|
||
|
||
public void setCreatedby(String createdby) {
|
||
this.createdby = createdby;
|
||
}
|
||
|
||
public Date getModifiedon() {
|
||
return modifiedon;
|
||
}
|
||
|
||
public void setModifiedon(Date modifiedon) {
|
||
this.modifiedon = modifiedon;
|
||
}
|
||
|
||
public String getModifiedby() {
|
||
return modifiedby;
|
||
}
|
||
|
||
public void setModifiedby(String modifiedby) {
|
||
this.modifiedby = modifiedby;
|
||
}
|
||
|
||
public String getSyscnt() {
|
||
return syscnt;
|
||
}
|
||
|
||
public void setSyscnt(String syscnt) {
|
||
this.syscnt = syscnt;
|
||
}
|
||
|
||
@Override
|
||
public boolean equals(Object that) {
|
||
if (this == that) {
|
||
return true;
|
||
}
|
||
if (that == null) {
|
||
return false;
|
||
}
|
||
if (getClass() != that.getClass()) {
|
||
return false;
|
||
}
|
||
NewsCnt other = (NewsCnt) that;
|
||
return (this.getNewscntid() == null ? other.getNewscntid() == null : this.getNewscntid().equals(other.getNewscntid()))
|
||
&& (this.getNewsclassid() == null ? other.getNewsclassid() == null : this.getNewsclassid().equals(other.getNewsclassid()))
|
||
&& (this.getSortid() == null ? other.getSortid() == null : this.getSortid().equals(other.getSortid()))
|
||
&& (this.getNewtitle() == null ? other.getNewtitle() == null : this.getNewtitle().equals(other.getNewtitle()))
|
||
&& (this.getKeyword() == null ? other.getKeyword() == null : this.getKeyword().equals(other.getKeyword()))
|
||
&& (this.getSyslabel() == null ? other.getSyslabel() == null : this.getSyslabel().equals(other.getSyslabel()))
|
||
&& (this.getNewsource() == null ? other.getNewsource() == null : this.getNewsource().equals(other.getNewsource()))
|
||
&& (this.getReadnum() == null ? other.getReadnum() == null : this.getReadnum().equals(other.getReadnum()))
|
||
&& (this.getSysediter() == null ? other.getSysediter() == null : this.getSysediter().equals(other.getSysediter()))
|
||
&& (this.getPublictime() == null ? other.getPublictime() == null : this.getPublictime().equals(other.getPublictime()))
|
||
&& (this.getCreatedon() == null ? other.getCreatedon() == null : this.getCreatedon().equals(other.getCreatedon()))
|
||
&& (this.getCreatedby() == null ? other.getCreatedby() == null : this.getCreatedby().equals(other.getCreatedby()))
|
||
&& (this.getModifiedon() == null ? other.getModifiedon() == null : this.getModifiedon().equals(other.getModifiedon()))
|
||
&& (this.getModifiedby() == null ? other.getModifiedby() == null : this.getModifiedby().equals(other.getModifiedby()))
|
||
&& (this.getSyscnt() == null ? other.getSyscnt() == null : this.getSyscnt().equals(other.getSyscnt()));
|
||
}
|
||
|
||
@Override
|
||
public int hashCode() {
|
||
final int prime = 31;
|
||
int result = 1;
|
||
result = prime * result + ((getNewscntid() == null) ? 0 : getNewscntid().hashCode());
|
||
result = prime * result + ((getNewsclassid() == null) ? 0 : getNewsclassid().hashCode());
|
||
result = prime * result + ((getSortid() == null) ? 0 : getSortid().hashCode());
|
||
result = prime * result + ((getNewtitle() == null) ? 0 : getNewtitle().hashCode());
|
||
result = prime * result + ((getKeyword() == null) ? 0 : getKeyword().hashCode());
|
||
result = prime * result + ((getSyslabel() == null) ? 0 : getSyslabel().hashCode());
|
||
result = prime * result + ((getNewsource() == null) ? 0 : getNewsource().hashCode());
|
||
result = prime * result + ((getReadnum() == null) ? 0 : getReadnum().hashCode());
|
||
result = prime * result + ((getSysediter() == null) ? 0 : getSysediter().hashCode());
|
||
result = prime * result + ((getPublictime() == null) ? 0 : getPublictime().hashCode());
|
||
result = prime * result + ((getCreatedon() == null) ? 0 : getCreatedon().hashCode());
|
||
result = prime * result + ((getCreatedby() == null) ? 0 : getCreatedby().hashCode());
|
||
result = prime * result + ((getModifiedon() == null) ? 0 : getModifiedon().hashCode());
|
||
result = prime * result + ((getModifiedby() == null) ? 0 : getModifiedby().hashCode());
|
||
result = prime * result + ((getSyscnt() == null) ? 0 : getSyscnt().hashCode());
|
||
return result;
|
||
}
|
||
|
||
@Override
|
||
public String toString() {
|
||
StringBuilder sb = new StringBuilder();
|
||
sb.append(getClass().getSimpleName());
|
||
sb.append(" [");
|
||
sb.append("Hash = ").append(hashCode());
|
||
sb.append(", newscntid=").append(newscntid);
|
||
sb.append(", newsclassid=").append(newsclassid);
|
||
sb.append(", sortid=").append(sortid);
|
||
sb.append(", newtitle=").append(newtitle);
|
||
sb.append(", keyword=").append(keyword);
|
||
sb.append(", syslabel=").append(syslabel);
|
||
sb.append(", newsource=").append(newsource);
|
||
sb.append(", readnum=").append(readnum);
|
||
sb.append(", sysediter=").append(sysediter);
|
||
sb.append(", publictime=").append(publictime);
|
||
sb.append(", createdon=").append(createdon);
|
||
sb.append(", createdby=").append(createdby);
|
||
sb.append(", modifiedon=").append(modifiedon);
|
||
sb.append(", modifiedby=").append(modifiedby);
|
||
sb.append(", syscnt=").append(syscnt);
|
||
sb.append(", serialVersionUID=").append(serialVersionUID);
|
||
sb.append("]");
|
||
return sb.toString();
|
||
}
|
||
}
|