package com.xinelu.manage.dto.nursestationperson;


import com.xinelu.common.annotation.Excel;
import com.xinelu.common.core.domain.BaseDomain;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author ljh
 * @version 1.0
 * Create by 2022/9/16 12:52
 */
@Data
public class NurseStationPersonImportDTO extends BaseDomain implements Serializable {
    private static final long serialVersionUID = -679491873860039664L;

    /**
     * 护理站人员名称
     */
    @Excel(name = "人员姓名")
    private String nursePersonName;

    /**
     * 性别
     */
    @Excel(name = "性别")
    private String sex;

    /**
     * 联系电话
     */
    @Excel(name = "电话")
    private String phone;

    /**
     * 居住地址
     */
    @Excel(name = "住址")
    private String address;

    /**
     * 护理站名称
     */
    @Excel(name = "所属护理站")
    private String nurseStationName;

    /**
     * 护理站人员类型
     */
    private String nursePersonType;

    /**
     * 护理站ID
     */
    private Long nurseStationId;

    /**
     * 科室编码
     */
    private String departmentCode;

    /**
     * 创建人Id
     */
    private Long userId;

    /**
     * 护理站人员编码
     */
    private String nursePersonCode;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        NurseStationPersonImportDTO that = (NurseStationPersonImportDTO) o;
        return Objects.equals(phone, that.phone);
    }

    @Override
    public int hashCode() {
        return Objects.hash(phone);
    }
}