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

514 lines
14 KiB
Java
Raw Normal View History

2022-09-16 15:07:17 +08:00
package com.rzyc.model;
import com.common.utils.excel.ExcelColumn;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
/**
* @author
*/
public class Accident implements Serializable {
/**
* 事故id
*/
private String accidentid;
/**
* 企业id
*/
private String sysenterpriseid;
/**
* 事故类型id
*/
private String accidenttypeid;
/**
* 事故类型名
*/
private String accidenttype;
/**
* 属地
*/
private String orgcode;
/**
* 企业名
*/
@ExcelColumn(value = "企业名", col = 1)
private String entname;
/**
* 事故名称
*/
@ExcelColumn(value = "事故名称", col = 2)
private String accidentname;
/**
* 属地名
*/
@ExcelColumn(value = "属地名", col = 3)
private String orgname;
/**
* 事故单位
*/
private String unite;
/**
* 事故等级
*/
@ExcelColumn(value = "事故等级", col = 4)
private String accidentlevel;
/**
* 发生时间
*/
@JsonFormat(pattern = "yyyy-MM-dd")
private Date happentime;
/**
* 事发地点
*/
private String bookrelationadd;
/**
* 事故经过
*/
private String accidentcourse;
/**
* 事故原因
*/
@ExcelColumn(value = "事故原因", col = 6)
private String accidentreason;
/**
* 死亡人数
*/
@ExcelColumn(value = "死亡人数", col = 7)
private String deathcount;
/**
* 重伤人数
*/
@ExcelColumn(value = "重伤人数", col = 8)
private String seriousinjury;
/**
* 轻伤人数
*/
@ExcelColumn(value = "轻伤人数", col =9)
private Long minorwound;
/**
* 财产损失
*/
private String lossmoney;
/**
* 其他
*/
private String other;
/**
* 责任追究
*/
private String accountability;
/**
* 措施建议
*/
private String advice;
/**
* 受害者
*/
private String victim;
/**
* 发生环节
*/
private String happenLink;
/**
* 关联单位数
*/
private String togetherUnite;
/**
* 事故防范及整改
*/
private String acRectifica;
/**
* 事故行业
*/
private String industry;
@JsonFormat(pattern = "yyyy-MM-dd")
private Date createdon;
private String createdby;
@JsonFormat(pattern = "yyyy-MM-dd")
private Date modifiedon;
private String modifiedby;
@ExcelColumn(value = "发生时间", col = 5)
private String happenTime;
private static final long serialVersionUID = 1L;
public String getHappenTime() {
return happenTime;
}
public void setHappenTime(String happenTime) {
this.happenTime = happenTime;
}
public String getIndustry() {
return industry;
}
public void setIndustry(String industry) {
this.industry = industry;
}
public String getOther() {
return other;
}
public void setOther(String other) {
this.other = other;
}
public String getAccountability() {
return accountability;
}
public void setAccountability(String accountability) {
this.accountability = accountability;
}
public String getAdvice() {
return advice;
}
public void setAdvice(String advice) {
this.advice = advice;
}
public String getVictim() {
return victim;
}
public void setVictim(String victim) {
this.victim = victim;
}
public String getHappenLink() {
return happenLink;
}
public void setHappenLink(String happenLink) {
this.happenLink = happenLink;
}
public String getTogetherUnite() {
return togetherUnite;
}
public void setTogetherUnite(String togetherUnite) {
this.togetherUnite = togetherUnite;
}
public String getAcRectifica() {
return acRectifica;
}
public void setAcRectifica(String acRectifica) {
this.acRectifica = acRectifica;
}
public String getAccidenttype() {
return accidenttype;
}
public void setAccidenttype(String accidenttype) {
this.accidenttype = accidenttype;
}
public String getAccidentid() {
return accidentid;
}
public void setAccidentid(String accidentid) {
this.accidentid = accidentid;
}
public String getSysenterpriseid() {
return sysenterpriseid;
}
public void setSysenterpriseid(String sysenterpriseid) {
this.sysenterpriseid = sysenterpriseid;
}
public String getAccidenttypeid() {
return accidenttypeid;
}
public void setAccidenttypeid(String accidenttypeid) {
this.accidenttypeid = accidenttypeid;
}
public String getOrgcode() {
return orgcode;
}
public void setOrgcode(String orgcode) {
this.orgcode = orgcode;
}
public String getEntname() {
return entname;
}
public void setEntname(String entname) {
this.entname = entname;
}
public String getAccidentname() {
return accidentname;
}
public void setAccidentname(String accidentname) {
this.accidentname = accidentname;
}
public String getOrgname() {
return orgname;
}
public void setOrgname(String orgname) {
this.orgname = orgname;
}
public String getUnite() {
return unite;
}
public void setUnite(String unite) {
this.unite = unite;
}
public String getAccidentlevel() {
return accidentlevel;
}
public void setAccidentlevel(String accidentlevel) {
this.accidentlevel = accidentlevel;
}
public Date getHappentime() {
return happentime;
}
public void setHappentime(Date happentime) {
this.happentime = happentime;
}
public String getBookrelationadd() {
return bookrelationadd;
}
public void setBookrelationadd(String bookrelationadd) {
this.bookrelationadd = bookrelationadd;
}
public String getAccidentcourse() {
return accidentcourse;
}
public void setAccidentcourse(String accidentcourse) {
this.accidentcourse = accidentcourse;
}
public String getAccidentreason() {
return accidentreason;
}
public void setAccidentreason(String accidentreason) {
this.accidentreason = accidentreason;
}
public String getDeathcount() {
return deathcount;
}
public void setDeathcount(String deathcount) {
this.deathcount = deathcount;
}
public String getSeriousinjury() {
return seriousinjury;
}
public void setSeriousinjury(String seriousinjury) {
this.seriousinjury = seriousinjury;
}
public Long getMinorwound() {
return minorwound;
}
public void setMinorwound(Long minorwound) {
this.minorwound = minorwound;
}
public String getLossmoney() {
return lossmoney;
}
public void setLossmoney(String lossmoney) {
this.lossmoney = lossmoney;
}
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;
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
Accident other = (Accident) that;
return (this.getAccidentid() == null ? other.getAccidentid() == null : this.getAccidentid().equals(other.getAccidentid()))
&& (this.getSysenterpriseid() == null ? other.getSysenterpriseid() == null : this.getSysenterpriseid().equals(other.getSysenterpriseid()))
&& (this.getAccidenttypeid() == null ? other.getAccidenttypeid() == null : this.getAccidenttypeid().equals(other.getAccidenttypeid()))
&& (this.getOrgcode() == null ? other.getOrgcode() == null : this.getOrgcode().equals(other.getOrgcode()))
&& (this.getEntname() == null ? other.getEntname() == null : this.getEntname().equals(other.getEntname()))
&& (this.getAccidentname() == null ? other.getAccidentname() == null : this.getAccidentname().equals(other.getAccidentname()))
&& (this.getOrgname() == null ? other.getOrgname() == null : this.getOrgname().equals(other.getOrgname()))
&& (this.getUnite() == null ? other.getUnite() == null : this.getUnite().equals(other.getUnite()))
&& (this.getAccidentlevel() == null ? other.getAccidentlevel() == null : this.getAccidentlevel().equals(other.getAccidentlevel()))
&& (this.getHappentime() == null ? other.getHappentime() == null : this.getHappentime().equals(other.getHappentime()))
&& (this.getBookrelationadd() == null ? other.getBookrelationadd() == null : this.getBookrelationadd().equals(other.getBookrelationadd()))
&& (this.getAccidentcourse() == null ? other.getAccidentcourse() == null : this.getAccidentcourse().equals(other.getAccidentcourse()))
&& (this.getAccidentreason() == null ? other.getAccidentreason() == null : this.getAccidentreason().equals(other.getAccidentreason()))
&& (this.getDeathcount() == null ? other.getDeathcount() == null : this.getDeathcount().equals(other.getDeathcount()))
&& (this.getSeriousinjury() == null ? other.getSeriousinjury() == null : this.getSeriousinjury().equals(other.getSeriousinjury()))
&& (this.getMinorwound() == null ? other.getMinorwound() == null : this.getMinorwound().equals(other.getMinorwound()))
&& (this.getLossmoney() == null ? other.getLossmoney() == null : this.getLossmoney().equals(other.getLossmoney()))
&& (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()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getAccidentid() == null) ? 0 : getAccidentid().hashCode());
result = prime * result + ((getSysenterpriseid() == null) ? 0 : getSysenterpriseid().hashCode());
result = prime * result + ((getAccidenttypeid() == null) ? 0 : getAccidenttypeid().hashCode());
result = prime * result + ((getOrgcode() == null) ? 0 : getOrgcode().hashCode());
result = prime * result + ((getEntname() == null) ? 0 : getEntname().hashCode());
result = prime * result + ((getAccidentname() == null) ? 0 : getAccidentname().hashCode());
result = prime * result + ((getOrgname() == null) ? 0 : getOrgname().hashCode());
result = prime * result + ((getUnite() == null) ? 0 : getUnite().hashCode());
result = prime * result + ((getAccidentlevel() == null) ? 0 : getAccidentlevel().hashCode());
result = prime * result + ((getHappentime() == null) ? 0 : getHappentime().hashCode());
result = prime * result + ((getBookrelationadd() == null) ? 0 : getBookrelationadd().hashCode());
result = prime * result + ((getAccidentcourse() == null) ? 0 : getAccidentcourse().hashCode());
result = prime * result + ((getAccidentreason() == null) ? 0 : getAccidentreason().hashCode());
result = prime * result + ((getDeathcount() == null) ? 0 : getDeathcount().hashCode());
result = prime * result + ((getSeriousinjury() == null) ? 0 : getSeriousinjury().hashCode());
result = prime * result + ((getMinorwound() == null) ? 0 : getMinorwound().hashCode());
result = prime * result + ((getLossmoney() == null) ? 0 : getLossmoney().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());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", accidentid=").append(accidentid);
sb.append(", sysenterpriseid=").append(sysenterpriseid);
sb.append(", accidenttypeid=").append(accidenttypeid);
sb.append(", orgcode=").append(orgcode);
sb.append(", entname=").append(entname);
sb.append(", accidentname=").append(accidentname);
sb.append(", orgname=").append(orgname);
sb.append(", unite=").append(unite);
sb.append(", accidentlevel=").append(accidentlevel);
sb.append(", happentime=").append(happentime);
sb.append(", bookrelationadd=").append(bookrelationadd);
sb.append(", accidentcourse=").append(accidentcourse);
sb.append(", accidentreason=").append(accidentreason);
sb.append(", deathcount=").append(deathcount);
sb.append(", seriousinjury=").append(seriousinjury);
sb.append(", minorwound=").append(minorwound);
sb.append(", lossmoney=").append(lossmoney);
sb.append(", createdon=").append(createdon);
sb.append(", createdby=").append(createdby);
sb.append(", modifiedon=").append(modifiedon);
sb.append(", modifiedby=").append(modifiedby);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}