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
| package com.iailab.module.data.common.enums;
|
| import lombok.AllArgsConstructor;
| import lombok.Getter;
|
| /**
| * 指标类型
| *
| * @author PanZhibao
| * @Description
| * @createTime 2023年05月03日 19:10:00
| */
| @Getter
| @AllArgsConstructor
| public enum ItemTypeEnum {
|
| ATOM("ATOM", "原子指标"),
|
| DER("DER", "派生指标"),
|
| CAL("CAL", "复合指标");
|
| private String code;
| private String desc;
|
| public static ItemTypeEnum getEumByCode(String code) {
| if (code == null) {
| return null;
| }
|
| for (ItemTypeEnum statusEnum : ItemTypeEnum.values()) {
| if (statusEnum.getCode().equals(code)) {
| return statusEnum;
| }
| }
| return null;
| }
| }
|
|