package com.qianwen.smartman.modules.tpm.enums;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/tpm/enums/PlanDelayStatusEnum.class */
|
public enum PlanDelayStatusEnum {
|
T0(0, "未延期"),
|
T1(1, "已延期");
|
|
private final int type;
|
private final String desc;
|
|
PlanDelayStatusEnum(final int type, final String desc) {
|
this.type = type;
|
this.desc = desc;
|
}
|
|
public int getType() {
|
return this.type;
|
}
|
|
public String getDesc() {
|
return this.desc;
|
}
|
|
public static PlanDelayStatusEnum of(Integer type) {
|
if (type == null) {
|
return null;
|
}
|
PlanDelayStatusEnum[] values = values();
|
for (PlanDelayStatusEnum planDelayStatusEnum : values) {
|
if (planDelayStatusEnum.type == type.intValue()) {
|
return planDelayStatusEnum;
|
}
|
}
|
return null;
|
}
|
|
public static String getDescDetail(Integer type) {
|
if (type == null) {
|
return null;
|
}
|
PlanDelayStatusEnum[] values = values();
|
for (PlanDelayStatusEnum planDelayStatusEnum : values) {
|
if (planDelayStatusEnum.type == type.intValue()) {
|
return planDelayStatusEnum.getDesc();
|
}
|
}
|
return null;
|
}
|
}
|