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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
| package com.iailab.common.enums;
|
| import lombok.AllArgsConstructor;
| import lombok.Getter;
|
| /**
| * @author DongYukun
| * @Description
| * @createTime 2024年05月12日 9:57:00
| */
| @Getter
| @AllArgsConstructor
| public enum CdbmEnum {
|
| //报表
| PLAN("plan", "计划","t"),
| CL("cl", "产量","t"),
| DBL("dbl", "达标率","%"),
| HF("hf", "灰分","%"),
| SF("sf", "水分","%"),
| LF("lf", "硫分","%"),
| RZ("rz", "热值","cal/g"),
|
| YIN("yin","阴离子消耗","kg"),
| YANG("yang","阳离子消耗","kg"),
| JH("jh","介耗","kg"),
|
| DXHM("groundsales","地销混煤","t"),
| XZKWY("medblock","洗中块外运","t"),
| XXKWY("nubmeasure","洗小块外运","t"),
| GSWY("gangue","矸石外运","t"),
| XKZZ("reshipped","小块转载","t"),
| HCWYT("trainTon","火车外运吨数","t"),
| HCWYC("trainCount","火车外运列数","列"),
|
| //测点
| AP1("M0000100373","1#低压风机出口压力","kpa"),
| AP2("M0000100374","2#低压风机出口压力","kpa"),
| HJMD3318("M0000100030","3318线路合介密度","kg/L"),
| HJMD3319("M0000100031","3319线路合介密度","kg/L"),
| HJMD315("M0000100084","307合介桶密度","kg/L"),
| HJMD316("M0000100078","308合介桶密度","kg/L"),
| BF401("M0000100108","401浓缩池出料浓度(底流浓度)","kg/L"),
| BF402("M0000100114","402浓缩池出料浓度(底流浓度)","kg/L"),
| BF501("M0000100120","501浓缩池出料浓度(底流浓度)","kg/L"),
| BF504("M0000100120","504浓缩池出料浓度(底流浓度)","kg/L"),
|
| PDC721("721.DayTotal","721皮带秤累计","t"),
| PDC722("722.DayTotal","722皮带秤累计","t");
| private String code;
| private String desc;
| private String unit;//单位
|
| public static CdbmEnum getEumByCode(String code) {
| if (code == null) {
| return null;
| }
|
| for (CdbmEnum cdbmEnum : CdbmEnum.values()) {
| if (cdbmEnum.getCode().equals(code)) {
| return cdbmEnum;
| }
| }
| return null;
| }
|
| public static CdbmEnum getEumByName(String name) {
| if (name == null) {
| return null;
| }
|
| for (CdbmEnum cdbmEnum : CdbmEnum.values()) {
| if (cdbmEnum.name().equals(name)) {
| return cdbmEnum;
| }
| }
| return null;
| }
| }
|
|