DataAssessmentItemTreeModel.java 4.7 KB
package com.skua.modules.assessment.model;

import com.skua.core.aspect.annotation.Dict;
import com.skua.modules.assessment.vo.DataAssessmentItemVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 评分项表 存储树结构数据的实体类
 *
 * @author 11389
 */
@Data
public class DataAssessmentItemTreeModel implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 对应SysDepart中的id字段,前端数据树中的key
     */
    private String key;
    /**
     * 对应SysDepart中的id字段,前端数据树中的value
     */
    private String value;
    /**
     * 对应depart_name字段,前端数据树中的title
     */
    private String title;
    private boolean isLeaf;

    // 以下所有字段均与DataAssessmentItem相同
    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    private String id;
    /**
     * 父id
     */
    @ApiModelProperty(value = "父id")
    private String pid;
    /**
     * 当前评分细项允许最大数值
     */
    @ApiModelProperty(value = "当前评分细项允许最大数值")
    private String fillMax;
    /**
     * 当前评分细项允许最小数值
     */
    @ApiModelProperty(value = "当前评分细项允许最小数值")
    private String fillMin;
    /**
     * 当前评分细项问题说明
     */
    @ApiModelProperty(value = "当前评分细项问题说明")
    private String fillName;
    /**
     * 当前评分项总分
     */
    @ApiModelProperty(value = "当前评分项总分")
    private String itemTotalSorce;
    /**
     * 查询字段
     */
    @ApiModelProperty(value = "分数存储字段")
    private String field;
    /**
     * 分类级别
     */
    @ApiModelProperty(value = "评分分类级别")
    private String fillType;
    /**
     * 分类级别
     */
    @ApiModelProperty(value = "评分分类")
    private String type;
    /**
     * 总分类型(2奖励总分,1基础总分)
     */
    @ApiModelProperty(value = "总分类型(2奖励总分,1基础总分)")
    private String totalType;
    /**
     * 意见属性
     */
    @ApiModelProperty(value = "意见属性")
    private String messageField;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private String sort;
    /**
     * score
     */
    @ApiModelProperty(value = "fieldValue")
    private String fieldValue;

    private String attr1;
    private String attr2;
    private String attr3;
    private String attr4;
    private String attr5;
    private String attr6;
    private String attr7;
    private String attr8;
    private String attr9;
    private String attr10;

    /**评价分数*/
    @ApiModelProperty(value = "评价分数")
    private String dataScore;

    /**自我评价分数*/
    @Excel(name = "自我评价分数", width = 15)
    @ApiModelProperty(value = "自我评价分数")
    private String selfDataScore;

    /**评价意见*/
    @ApiModelProperty(value = "评价意见")
    private String dataRecord;

    @Dict(dictTable = "sys_depart",dicCode = "id",dicText = "depart_name")
    private String departId;

    /**
     * message
     */
    @ApiModelProperty(value = "messageFieldValue")
    private String messageFieldValue;

    private List<DataAssessmentItemTreeModel> children = new ArrayList<>();

    public DataAssessmentItemTreeModel(DataAssessmentItemVO item) {
        this.key = item.getId();
        this.value = item.getId();
        this.title = item.getFillName();
        this.id = item.getId();
        this.pid = item.getPid();
        this.fillMax = item.getFillMax();
        this.fillMin = item.getFillMin();
        this.fillName = item.getFillName();
        this.itemTotalSorce = item.getItemTotalSorce();
        this.field = item.getField();
        this.fillType = item.getFillType();
        this.type = item.getType();
        this.totalType = item.getTotalType();
        this.messageField = item.getMessageField();
        this.sort = item.getSort();
        this.messageFieldValue = item.getMessageFieldValue();
        this.fieldValue = item.getFieldValue();
        this.attr1 = item.getAttr1();
        this.attr2 = item.getAttr2();
        this.attr3 = item.getAttr3();
        this.attr4 = item.getAttr4();
        this.attr5 = item.getAttr5();
        this.attr6 = item.getAttr6();
        this.attr7 = item.getAttr7();
        this.attr8 = item.getAttr8();
        this.attr9 = item.getAttr9();
        this.attr10 = item.getAttr10();
        this.dataRecord = item.getDataRecord();
        this.dataScore = item.getDataScore();
        this.selfDataScore=item.getSelfDataScore();
        this.departId = item.getDepartId();

    }


}