yun-zuoyi
陈思洁 6 years ago
commit 3b235acda0

@ -2800,7 +2800,7 @@ public class MesEnumUtil {
FASTDFS_SAVE_PATH(10, "SAVE_PATH", ""), FASTDFS_SAVE_PATH(10, "SAVE_PATH", ""),
NGINX_IP(20, "NGINX_HOST", ""), NGINX_IP(20, "NGINX_HOST", ""),
MES_STATION_SOCKET(30, "MES_STATION_SOCKET", ""), MES_STATION_SOCKET(30, "mes_station_socket", ""),
GATEWAY_IP(40, "GATEWAY_HOST", ""), GATEWAY_IP(40, "GATEWAY_HOST", ""),
UPDATE_SYNC_TIME(50, "SYNC_DATA_URL", "UPDATE_SYNC_TIME"), UPDATE_SYNC_TIME(50, "SYNC_DATA_URL", "UPDATE_SYNC_TIME"),
PCN_PULL(60, "SYNC_DATA_URL", "PCN_PULL"), PCN_PULL(60, "SYNC_DATA_URL", "PCN_PULL"),
@ -2820,12 +2820,12 @@ public class MesEnumUtil {
private int value; private int value;
private String code; private String code;
private String cfgKey; private String description;
CONFIG_TYPE(int value, String code, String cfgKey) { CONFIG_TYPE(int value, String code, String description) {
this.value = value; this.value = value;
this.code = code; this.code = code;
this.cfgKey = cfgKey; this.description = description;
} }
public int getValue() { public int getValue() {
@ -2836,15 +2836,15 @@ public class MesEnumUtil {
return code; return code;
} }
public String getCfgKey() { public String getDescription() {
return cfgKey; return description;
} }
public static String valueOfDescription(int val) { public static String valueOfDescription(int val) {
String tmp = null; String tmp = null;
for (int i = 0; i < values().length; i++) { for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) { if (values()[i].value == val) {
tmp = values()[i].cfgKey; tmp = values()[i].description;
} }
} }
return tmp; return tmp;

Loading…
Cancel
Save