package com.xinelu.manage.dto.nursestationitem;

import com.xinelu.common.annotation.Excel;
import lombok.Data;

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

/**
 * @author wanghao
 * @create 2022/9/15 0015
 */
@Data
public class NurseStationItemImportDTO implements Serializable {

    private static final long serialVersionUID = 7168583453881428868L;
    /**
     * 护理站名称
     */
    @Excel(name = "护理站名称")
    private String nurseStationName;

    /**
     * 护理类型名称
     */
    private String nurseTypeName;

    /**
     * 护理项目名称
     */
    @Excel(name = "护理项目名称")
    private String nurseItemName;

    /**
     * 护理项目内容简介
     */
    @Excel(name = "护理项目内容简介")
    private String nurseItemContent;

    /**
     * 提前预约时长
     */
    @Excel(name = "提前预约时长")
    private String advanceAppointDuration;

    /**
     * 服务时长/计量单位
     */
    @Excel(name = "服务时长/计量单位")
    private String serveDurationUnit;

    /**
     * 价格
     */
    @Excel(name = "价格")
    private BigDecimal price;

    /**
     * 描述
     */
    @Excel(name = "描述")
    private String description;

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

    /**
     * 护理项目id
     */
    private Long nurseStationItemId;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        NurseStationItemImportDTO that = (NurseStationItemImportDTO) o;
        return Objects.equals(nurseStationName, that.nurseStationName) && Objects.equals(nurseItemName, that.nurseItemName) && Objects.equals(serveDurationUnit, that.serveDurationUnit);
    }

    @Override
    public int hashCode() {
        return Objects.hash(nurseStationName, nurseItemName, serveDurationUnit);
    }
}