| | |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * @description: 工序 |
| | | * @description: 工序类型 |
| | | * @author: dzd |
| | | * @date: 2025/4/17 15:58 |
| | | * @date: 2025/4/21 10:17 |
| | | **/ |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum ProcessTypeEnum { |
| | | GL("GL", "鼓冷"), |
| | | LA("LA", "硫铵"), |
| | | CB("CB", "粗苯"), |
| | | TL("TL", "脱硫"), |
| | | GXJ_1("GXJ_1", "1#干熄焦"), |
| | | GXJ_2("GXJ_2", "2#干熄焦"), |
| | | GXJ_3("GXJ_3", "3#干熄焦"), |
| | | ALL("ALL", "总体"); |
| | | BM("bm", "备煤", "备煤工序-概况"), |
| | | LJ("lj", "炼焦", "炼焦工序-概况"), |
| | | GXJ("gxj", "干熄焦", "干熄焦工序-概况"), |
| | | HC("hc", "化产", "化产工序-概况"), |
| | | MQ("mq", "煤气", "焦化能源介质概况-煤气"), |
| | | ZQ("zq", "蒸汽", "焦化能源介质概况-蒸汽"), |
| | | DL("dl", "电力", "焦化能源介质概况-电力"), |
| | | UNKNOW("unkuow", "未知", "未知"); |
| | | private String code; |
| | | private String desc; |
| | | private String process; |
| | | private String reportName; |
| | | |
| | | public static ProcessTypeEnum getEumByCode(Integer code) { |
| | | if (code == null) { |
| | | return null; |
| | | } |
| | | |
| | | public static ProcessTypeEnum getEumByCode(String code) { |
| | | for (ProcessTypeEnum statusEnum : ProcessTypeEnum.values()) { |
| | | if (statusEnum.getCode().equals(code)) { |
| | | return statusEnum; |
| | | } |
| | | } |
| | | return null; |
| | | return UNKNOW; |
| | | } |
| | | |
| | | } |