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
| package biz.report.agg;
|
| /**
| * @author kimi
| * @description
| * @date 2024-09-19 15:53
| */
|
|
| public enum AggPeroidType {
| month(1),
| quarter(3),
| year(12);
|
| private int cycleNum;
|
| AggPeroidType(int cycleNum) {
| this.cycleNum = cycleNum;
| }
|
| public static AggPeroidType parse(String type) {
| for (AggPeroidType value : values()) {
| if (value.name().equalsIgnoreCase(type)) {
| return value;
| }
| }
| return null;
| }
|
| public int getCycleNum() {
| return cycleNum;
| }
| }
|
|