package com.xinelu.manage.domain.hospitalpersoncertificate;

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 java.io.Serializable;
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;

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

    /**
     * 科室人员表id
     */
    @ApiModelProperty(value = "科室人员表id")
    @Excel(name = "科室人员表id")
    private Long hospitalPersonId;

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

    /**
     * 证书编号
     */
    @ApiModelProperty(value = "证书编号")
    @Excel(name = "证书编号")
    private String certificateCode;

    /**
     * 证书图片存放路径
     */
    @ApiModelProperty(value = "证书图片存放路径")
    @Excel(name = "证书图片存放路径")
    private String certificateUrl;

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


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("hospitalPersonId", getHospitalPersonId())
                .append("certificateName", getCertificateName())
                .append("certificateCode", getCertificateCode())
                .append("certificateUrl", getCertificateUrl())
                .append("certificateSort", getCertificateSort())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
