yangys
2024-04-04 ed4a5236bab800094be4a8378f5098eebe3de6ac
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
39
40
41
42
43
44
45
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;
    }
}