package com.xinelu.manage.domain.questioninfo;

import com.xinelu.common.annotation.Excel;
import com.xinelu.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
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;

/**
 * 问卷基本信息对象 question_info
 *
 * @author xinelu
 * @date 2024-02-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "问卷基本信息对象", description = "question_info")
public class QuestionInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

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

    /**
     * 所属科室名称
     */
    @ApiModelProperty(value = "所属科室名称")
    @Excel(name = "所属科室名称")
    private String departmentName;

    /**
     * 病种id
     */
    @ApiModelProperty(value = "病种id")
    @Excel(name = "病种id")
    private Long diseaseTypeId;

    /**
     * 病种名称
     */
    @ApiModelProperty(value = "病种名称")
    @Excel(name = "病种名称")
    private String diseaseTypeName;

    /**
     * 问卷标题
     */
    @ApiModelProperty(value = "问卷标题")
    @Excel(name = "问卷标题")
    private String questionnaireName;

    /**
     * 问卷说明
     */
    @ApiModelProperty(value = "问卷说明")
    @Excel(name = "问卷说明")
    private String questionnaireDescription;

    /**
     * 作答方式，一页一题：ONE_PAGE_ONE_QUESTION，非一页一题：NOT_ONE_PAGE_ONE_QUESTION
     */
    @ApiModelProperty(value = "作答方式，一页一题：ONE_PAGE_ONE_QUESTION，非一页一题：NOT_ONE_PAGE_ONE_QUESTION")
    @Excel(name = "作答方式，一页一题：ONE_PAGE_ONE_QUESTION，非一页一题：NOT_ONE_PAGE_ONE_QUESTION")
    private String answeringMethod;

    /**
     * 问卷ID
     */
    @ApiModelProperty(value = "问卷ID")
    @Excel(name = "问卷ID")
    private String questionnaireId;

    /**
     * 问题个数
     */
    @ApiModelProperty(value = "问题个数")
    @Excel(name = "问题个数")
    private Integer questionCount;

    /**
     * 问卷总分值，小数点后两位
     */
    @ApiModelProperty(value = "问卷总分值，小数点后两位")
    @Excel(name = "问卷总分值，小数点后两位")
    private BigDecimal questionnaireTotalScore;

    /**
     * 问卷状态，已发布：PUBLISHED，未发布：UNPUBLISHED
     */
    @ApiModelProperty(value = "问卷状态，已发布：PUBLISHED，未发布：UNPUBLISHED")
    @Excel(name = "问卷状态，已发布：PUBLISHED，未发布：UNPUBLISHED")
    private String questionnaireStatus;

    /**
     * 问卷排序
     */
    @ApiModelProperty(value = "问卷排序")
    @Excel(name = "问卷排序")
    private Integer questionnaireSort;

    /**
     * 问卷备注信息
     */
    @ApiModelProperty(value = "问卷备注信息")
    @Excel(name = "问卷备注信息")
    private String questionnaireRemark;

    /**
     * 问卷类型，普通问卷：REGULAR_QUESTIONNAIRE,满意度问卷：SATISFACTION_QUESTIONNAIRE
     */
    @ApiModelProperty(value = "问卷类型")
    @Excel(name = "问卷类型")
    private String questionType;

	/**
	 * 公共库模板id
	 */
	private Long sourceTemplateId;

	/**
	 * 话术表ID
	 */
	private Long scriptInfoId;

	@ApiModelProperty(value = "话术名称")
	private String scriptName;

	/**
	 * 机器人模板ID(冗余字段)
	 */
	private String robotPublishId;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("departmentId", getDepartmentId())
                .append("departmentName", getDepartmentName())
                .append("diseaseTypeId", getDiseaseTypeId())
                .append("diseaseTypeName", getDiseaseTypeName())
                .append("questionnaireName", getQuestionnaireName())
                .append("questionnaireDescription", getQuestionnaireDescription())
                .append("answeringMethod", getAnsweringMethod())
                .append("questionnaireId", getQuestionnaireId())
                .append("questionCount", getQuestionCount())
                .append("questionnaireTotalScore", getQuestionnaireTotalScore())
                .append("questionnaireStatus", getQuestionnaireStatus())
                .append("questionnaireSort", getQuestionnaireSort())
                .append("questionnaireRemark", getQuestionnaireRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
