package com.mortals.xhx.module.site.model;
import com.mortals.xhx.module.site.model.vo.SiteMatterVo;
import lombok.Data;
/**
 * 站点事项实体对象
 *
 * @author zxfei
 * @date 2024-03-09
 */
@Data
public class SiteMatterEntity extends SiteMatterVo {
    private static final long serialVersionUID = 1L;

    /**
     * 站点ID
     */
    private Long siteId;
    /**
     * 站点名称
     */
    private String siteName;
    /**
     * 事项ID
     */
    private Long matterId;
    /**
     * 事项名称
     */
    private String matterName;
    /**
     * 事项编码
     */
    private String matterCode;
    /**
     * 部门ID
     */
    private Long deptId;
    /**
     * 部门名称
     */
    private String deptName;
    /**
     * 事项类型
     */
    private String eventTypeShow;
    /**
     * 事项来源
     */
    private Integer source;
    /**
     * 热门(0.否,1.是)
     */
    private Integer hot;
    /**
     * 显示(0.否,1.是)
     */
    private Integer display;
    /**
     * 部门编号
     */
    private String deptCode;
    /**
     * 代办帮办(0.否,1.是)
     */
    private Integer agent;
    /**
     * 代办姓名
     */
    private String agentName;
    /**
     * 代办电话
     */
    private String agentPhone;
    /**
     * 职务
     */
    private String agentPost;
    /**
     * 大厅事项入驻(0.否,1.是)
     */
    private Integer hallCheckIn;
    @Override
    public int hashCode() {
        return this.getId().hashCode();
    }
    @Override
    public boolean equals(Object obj) {
        if (obj == null) return false;
        if (obj instanceof SiteMatterEntity) {
            SiteMatterEntity tmp = (SiteMatterEntity) obj;
            if (this.getId() == tmp.getId()) {
                return true;
            }
        }
        return false;
    }

    public void initAttrValue(){
        this.siteId = null;
        this.siteName = "";
        this.matterId = null;
        this.matterName = "";
        this.matterCode = "";
        this.deptId = null;
        this.deptName = "";
        this.eventTypeShow = "";
        this.source = 0;
        this.hot = 0;
        this.display = 1;
        this.deptCode = "";
        this.agent = 0;
        this.agentName = "";
        this.agentPhone = "";
        this.agentPost = "";
        this.hallCheckIn = 0;
    }
}