package com.yiboshi.science.entity;

import com.yiboshi.science.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.poi.hpsf.Decimal;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper=true)
@ApiModel(description = "评审项目表")
public class ComEvaluationItem extends BaseEntity {
    /** 评审表Id */
    @ApiModelProperty(value = "评审表Id", position = 1)
    @Length(max=36, message = "评审表Id")
    private String evaluationId;
    /** 父Id */
    @ApiModelProperty(value = "父Id", position = 2)
    private String parentId;
    /** 内容 */
    @ApiModelProperty(value = "内容", position = 2)
    @Length(max=200, message = "内容不能大于200")
    private String content;
    /** 单项得分 */
    @ApiModelProperty(value = "单项得分", position = 2)
    @Length(max=200, message = "单项得分不能大于200")
    private String scoreDetail;
    /** 排序 */
    @ApiModelProperty(value = "排序", position = 4)
    private Integer showIndex;
    /** 值类型：1单选、2多选、3打分 */
    @ApiModelProperty(value = "值类型：1单选、2多选、3打分", position = 5)
    private Integer valueType;
    /** 最大分值 */
    private Decimal maxScore;
    /** 备注 */
    @ApiModelProperty(value = "备注", position = 6)
    @Length(max=200, message = "备注不能大于200")
    private String remark;
    /** 状态 1 正常 0 注销 */
    private Integer state;
}
