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; } }