package com.mortals.xhx.module.metting.model;
import java.util.Date;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.metting.model.vo.MettingRecordVo;
import lombok.Data;
/**
* 会议记录实体对象
*
* @author zxfei
* @date 2023-05-22
*/
@Data
public class MettingRecordEntity extends MettingRecordVo {
    private static final long serialVersionUID = 1L;

    /**
    * 会议名称
    */
    private String meetName;
    /**
    * 会议日期
    */
    private Date meetDate;
    /**
    * 开会开始时间
    */
    private Date meetTimeStart;
    /**
    * 开会结束时间
    */
    private Date meetTimeEnd;
    /**
    * 开会房间ID
    */
    private Long roomId;
    /**
    * 开会房间名称
    */
    private String roomName;
    /**
    * 开会部门名称
    */
    private String meetDeptName;
    /**
    * 会议状态(0.等待中,1.进行中,2.已结束)
    */
    private Integer meetStatus;
    /**
    * 会议结束方式(0.自动结束,1.手动结束)
    */
    private Integer finishMethod;
    /**
    * 备注
    */
    private String remark;
    @Override
    public int hashCode() {
         return this.getId().hashCode();
    }
    @Override
    public boolean equals(Object obj) {
        if (obj == null) return false;
        if (obj instanceof MettingRecordEntity) {
            MettingRecordEntity tmp = (MettingRecordEntity) obj;
            if (this.getId() == tmp.getId()) {
                 return true;
            }
        }
        return false;
    }

    public void initAttrValue(){

            this.meetName = "";

            this.meetDate = null;

            this.meetTimeStart = null;

            this.meetTimeEnd = null;

            this.roomId = null;

            this.roomName = "";

            this.meetDeptName = "";

            this.meetStatus = 0;

            this.finishMethod = 0;

            this.remark = "";
    }
}