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; } }