czt
2025-05-29 753abfcaf090f79a4226693c2829a2d47b422058
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
package com.fzzy.igds.dzhwk.constant;
 
/**
 * 整个系统的业务分类
 * 
 * //    PRESSURE("pressure", "气压检测"),
 */
public enum BizType {
 
    GRAIN("grain", "粮情模块"),
    PEST("pest", "虫害模块"),
    GAS("gas", "气体模块"),
    AREATION("areation", "通风模块"),
    DEVICE_CONTROL("deviceControl", "设备操作"),
    N2("n2", "气调模块"),
    INOUT_IN("intou_in", "入库"),
    INOUT_OUT("intou_out", "出库"),
    TEMPCONTROL("temp", "环流控温"),
    WEATHER("weather", "气象站模块"),
    ES("es", "能耗模块"),
    SECURITY("security", "安防模块"),
    SYS("sys", "系统服务"),
    QUANTITY("quantity", "数量监管"),
    WARN("warn", "预警分析"),
    SCREEN("screen", "大屏模块"),
    SCREEN_INOUT("screen_inout", "出入库大屏模块"),
    SCREEN_CHECK("screen_check", "化验大屏模块");
    private String code;
    private String msg;
 
    private BizType(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
 
    public String getCode() {
        return code;
    }
 
    public String getMsg() {
        return msg;
    }
 
    public static String getMsg(String code) {
        if(null == code) return null;
 
        if(BizType.GRAIN.getCode().equals(code)) return BizType.GRAIN.getMsg();
        if(BizType.PEST.getCode().equals(code)) return BizType.PEST.getMsg();
        if(BizType.GAS.getCode().equals(code)) return BizType.GAS.getMsg();
        if(BizType.AREATION.getCode().equals(code)) return BizType.AREATION.getMsg();
        if(BizType.N2.getCode().equals(code)) return BizType.N2.getMsg();
        if(BizType.INOUT_IN.getCode().equals(code)) return BizType.INOUT_IN.getMsg();
        if(BizType.INOUT_OUT.getCode().equals(code)) return BizType.INOUT_OUT.getMsg();
        if(BizType.TEMPCONTROL.getCode().equals(code)) return BizType.TEMPCONTROL.getMsg();
        if(BizType.WEATHER.getCode().equals(code)) return BizType.WEATHER.getMsg();
        if(BizType.ES.getCode().equals(code)) return BizType.ES.getMsg();
        if(BizType.SECURITY.getCode().equals(code)) return BizType.SECURITY.getMsg();
        if(BizType.SYS.getCode().equals(code)) return BizType.SYS.getMsg();
        if(BizType.QUANTITY.getCode().equals(code)) return BizType.QUANTITY.getMsg();
        if(BizType.WARN.getCode().equals(code)) return BizType.WARN.getMsg();
        if(BizType.SCREEN.getCode().equals(code)) return BizType.SCREEN.getMsg();
        if(BizType.SCREEN_INOUT.getCode().equals(code)) return BizType.SCREEN_INOUT.getMsg();
        if(BizType.SCREEN_CHECK.getCode().equals(code)) return BizType.SCREEN_CHECK.getMsg();
        return code;
    }
}