package com.ld.igds.constant; /** * 工单类型 * @author chen * */ public enum OrderType { Type_10("10", "门禁"); private String code; private String msg; OrderType(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(OrderType.Type_10.getCode().equals(code)) return OrderType.Type_10.getMsg(); return ""; } }