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

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

Loading…
Cancel
Save