ValhallaReportDimension.java
809 Bytes
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
package cn.fw.valhalla.domain.enums;
import com.fasterxml.jackson.annotation.JsonCreator;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 维度
* <p>
* create at 2020-07-14
*
* @author zhangjj
*/
@AllArgsConstructor
public enum ValhallaReportDimension {
/**
* 门店
*/
D10("10"),
/**
* 人员
*/
D20("20"),
/**
* 来源
*/
D60("60"),
;
/**
* 值
*/
@Getter
private final String value;
@JsonCreator
public static ValhallaReportDimension ofValue(final String value) {
for (final ValhallaReportDimension instance : ValhallaReportDimension.values()) {
if (instance.getValue().equals(value)) {
return instance;
}
}
return null;
}
}