package com.xinelu.manage.domain.questionsubjectoption;

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

/**
 * 问卷题目选项答案对象 question_subject_option
 *
 * @author xinelu
 * @date 2024-02-29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "问卷题目选项答案对象", description = "question_subject_option")
public class QuestionSubjectOption extends BaseEntity {
    private static final long serialVersionUID = 1L;

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

    /**
     * 问卷题目表id
     */
    @ApiModelProperty(value = "问卷题目表id")
    @Excel(name = "问卷题目表id")
    private Long questionnaireSubjectId;

    /**
     * 题目名称
     */
    @ApiModelProperty(value = "题目名称")
    @Excel(name = "题目名称")
    private String questionName;

    /**
     * 选项名称
     */
    @ApiModelProperty(value = "选项名称")
    @Excel(name = "选项名称")
    private String optionName;

    /**
     * 选项答案
     */
    @ApiModelProperty(value = "选项答案")
    @Excel(name = "选项答案")
    private String optionAnswer;

    /**
     * 选项分值
     */
    @ApiModelProperty(value = "选项分值")
    @Excel(name = "选项分值")
    private BigDecimal optionScore;

    /**
     * 选项排序
     */
    @ApiModelProperty(value = "选项排序")
    @Excel(name = "选项排序")
    private Integer optionSort;

    /**
     * 选项备注
     */
    @ApiModelProperty(value = "选项备注")
    @Excel(name = "选项备注")
    private String optionRemark;

	/**
	 * 匹配问题文本。如果带变量，则用竖线|分隔，分段匹配，各分段必须都匹配。
	 */
	private String speechContextText;

	/**
	 * 匹配意图描述，如果多个意图，用竖线|隔开，任意一个匹配即可。
	 */
	private String intent;

    /**
     * 冗余:整个问卷中是否包含不满意项;DISCONTENTED:不满意;CONTENTED:满意;默认CONTENTED;
     * 2024/12/2
     */
    private String contentedFlag;

    /**
     * 冗余:整个问卷中是否包含异常项;REMARKABLE:异常的;ROUTINE:正常的;默认ROUTINE
     * 2024/12/2
     */
    private String remarkableFlag;

	@Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("questionnaireSubjectId", getQuestionnaireSubjectId())
                .append("questionName", getQuestionName())
                .append("optionName", getOptionName())
                .append("optionAnswer", getOptionAnswer())
                .append("optionScore", getOptionScore())
                .append("optionSort", getOptionSort())
                .append("optionRemark", getOptionRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
