DataAssessmentItemTreeModel.java
4.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
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();
}
}