package com.xinelu.manage.dto.hospitalpersoninfo;

import com.xinelu.common.annotation.Excel;
import com.xinelu.common.core.domain.BaseDomain;
import com.xinelu.common.custominterface.Insert;
import com.xinelu.common.custominterface.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.validator.constraints.Length;

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

/**
 * 健康咨询-科室人员信息对象 hospital_person_info
 *
 * @author xinyilu
 * @date 2023-02-14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "健康咨询-科室人员信息对象", description = "hospital_person_info")
public class HospitalPersonInfoDtoo extends BaseDomain implements Serializable {
    private static final long serialVersionUID = 8750821883343940709L;
    /**
     * 主键id
     */
    private Long id;

    /**
     * 所属医院id
     */
    @ApiModelProperty(value = "所属医院id")
    @Excel(name = "所属医院id")
    private Long hospitalId;

    /**
     * 所属部门id
     */
    @ApiModelProperty(value = "所属部门id")
    @Excel(name = "所属部门id")
    private Long departmentId;

    /**
     * 科室人员编码
     */
    @ApiModelProperty(value = "科室人员编码")
    @Excel(name = "科室人员编码")
    private String personCode;

    /**
     * 科室人员名称
     */
    @ApiModelProperty(value = "科室人员名称")
    @Excel(name = "科室人员名称")
    @Length(max = 50, message = "科室人员名称不能超过50位", groups = {Insert.class, Update.class})
    private String personName;

    /**
     * 科室人员联系电话
     */
    @ApiModelProperty(value = "科室人员联系电话")
    @Excel(name = "科室人员联系电话")
    private String personPhone;

    /**
     * 科室人员地址
     */
    @ApiModelProperty(value = "科室人员地址")
    @Excel(name = "科室人员地址")
    @Length(max = 300, message = "科室人员地址不能超过300位", groups = {Insert.class, Update.class})
    private String personAddress;

    /**
     * 身份证号
     */
    @ApiModelProperty(value = "身份证号")
    @Excel(name = "身份证号")
    private String cardNo;
    private String personAccount;
    private String personPassword;

    /**
     * 人员职称，主任医师：CHIEF_PHYSICIAN，副主任医师：DEPUTY_CHIEF_PHYSICIAN，主治医师：ATTENDING_DOCTOR，医师：PHYSICIAN，医士：HEALER，住院医师：RESIDENT_PHYSICIAN
     */
    @ApiModelProperty(value = "人员职称，主任医师：CHIEF_PHYSICIAN，副主任医师：DEPUTY_CHIEF_PHYSICIAN，主治医师：ATTENDING_DOCTOR，医师：PHYSICIAN，医士：HEALER，住院医师：RESIDENT_PHYSICIAN")
    @Excel(name = "人员职称，主任医师：CHIEF_PHYSICIAN，副主任医师：DEPUTY_CHIEF_PHYSICIAN，主治医师：ATTENDING_DOCTOR，医师：PHYSICIAN，医士：HEALER，住院医师：RESIDENT_PHYSICIAN")
    private String academicTitle;

    /**
     * 咨询费用
     */
    @ApiModelProperty(value = "咨询费用")
    @Excel(name = "咨询费用")
    private BigDecimal consultingFee;

    /**
     * 个人简介
     */
    @ApiModelProperty(value = "个人简介")
    @Excel(name = "个人简介")
    private String personIntroduce;

    /**
     * 显示顺序
     */
    @ApiModelProperty(value = "显示顺序")
    @Excel(name = "显示顺序")
    private Integer personSort;

    /**
     * 科室人员头像地址
     */
    private String personPictureUrl;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("hospitalId", getHospitalId())
                .append("departmentId", getDepartmentId())
                .append("personCode", getPersonCode())
                .append("personName", getPersonName())
                .append("personPhone", getPersonPhone())
                .append("personAddress", getPersonAddress())
                .append("cardNo", getCardNo())
                .append("academicTitle", getAcademicTitle())
                .append("consultingFee", getConsultingFee())
                .append("personIntroduce", getPersonIntroduce())
                .append("personSort", getPersonSort())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
