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.qianwen.smartman.modules.mdc.enums;
|
| /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/mdc/enums/StatisticalMethodEnum.class */
| public enum StatisticalMethodEnum {
| SHIFT(1, "班次"),
| DAY(2, "日"),
| WEEK(3, "周"),
| MONTH(4, "月");
|
| private final Integer code;
| private final String mode;
|
| StatisticalMethodEnum(final Integer code, final String mode) {
| this.code = code;
| this.mode = mode;
| }
|
| public Integer getCode() {
| return this.code;
| }
|
| public String getMode() {
| return this.mode;
| }
|
| public static StatisticalMethodEnum of(Integer code) {
| if (code == null) {
| return DAY;
| }
| StatisticalMethodEnum[] values = values();
| for (StatisticalMethodEnum methodEnum : values) {
| if (methodEnum.code.equals(code)) {
| return methodEnum;
| }
| }
| return DAY;
| }
| }
|
|