package com.qianwen.smartman.modules.coproduction.enums;
|
|
import com.qianwen.core.tool.utils.Func;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/coproduction/enums/PlanCategoryEnum.class */
|
public enum PlanCategoryEnum {
|
PRODUCTION(1, "生产计划"),
|
MATERIAL(2, "来料计划");
|
|
private Integer code;
|
private String name;
|
|
PlanCategoryEnum(final Integer code, final String name) {
|
this.code = code;
|
this.name = name;
|
}
|
|
public Integer getCode() {
|
return this.code;
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
public static String of(Integer code) {
|
PlanCategoryEnum[] values;
|
for (PlanCategoryEnum v : values()) {
|
if (Func.equals(v.getCode(), code)) {
|
return v.getName();
|
}
|
}
|
return null;
|
}
|
|
public static Integer of(String name) {
|
PlanCategoryEnum[] values;
|
for (PlanCategoryEnum v : values()) {
|
if (Func.equals(v.getName(), name)) {
|
return v.getCode();
|
}
|
}
|
return null;
|
}
|
}
|