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
| package com.iailab.module.ansteel.common.enums;
|
| import lombok.AllArgsConstructor;
| import lombok.Getter;
|
| /**
| * @description: 工序类型
| * @author: dzd
| * @date: 2025/4/21 10:17
| **/
| @Getter
| @AllArgsConstructor
| public enum ProcessTypeEnum {
| BM("bm", "备煤", "备煤工序-概况"),
| LJ("lj", "炼焦", "炼焦工序-概况"),
| GXJ("gxj", "干熄焦", "干熄焦工序-概况"),
| HC("hc", "化产", "化产工序-概况"),
| MQ("mq", "煤气", "焦化能源介质概况-煤气"),
| ZQ("zq", "蒸汽", "焦化能源介质概况-蒸汽"),
| DL("dl", "电力", "焦化能源介质概况-电力"),
| UNKNOW("unkuow", "未知", "未知");
| private String code;
| private String process;
| private String reportName;
|
| public static ProcessTypeEnum getEumByCode(String code) {
| for (ProcessTypeEnum statusEnum : ProcessTypeEnum.values()) {
| if (statusEnum.getCode().equals(code)) {
| return statusEnum;
| }
| }
| return UNKNOW;
| }
|
| }
|
|