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
| package com.estate.expert.admin.domain.report;
|
| import com.estate.expert.admin.domain.common.option.IOptionVo;
| import lombok.Getter;
|
| import java.util.Map;
| import java.util.TreeMap;
|
| /**
| * 报告模板类型
| **/
| @Getter
| public enum ReportTemplateType implements IOptionVo {
|
| ThirdPartyReport("第三方评估报告",
| Map.of("工程概况样式", 1,
| "检查综合评价情况样式", 0,
| "检查评估结果样式", 0,
| "问题汇总表样式", 0)),
|
| DeviceReport("设备风险评估报告", null);
|
| final String desc;
|
| final Map<String,Integer> config;
|
| ReportTemplateType(String desc, Map<String,Integer> config) {
| this.desc = desc;
| this.config = config;
| }
|
| @Override
| public String getOptionCode() {
| return name();
| }
|
| @Override
| public String getOptionName() {
| return desc;
| }
| }
|
|