|
|
|
@ -290,18 +290,20 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum TAG_LIGHT_COLOR_CMD {
|
|
|
|
|
TAG_LIGHT_COLOR_RED("00", "红"),
|
|
|
|
|
TAG_LIGHT_COLOR_GREEN("01", "绿"),
|
|
|
|
|
TAG_LIGHT_COLOR_ORANGE("02", "橙"),
|
|
|
|
|
TAG_LIGHT_COLOR_BLUE("03", "蓝"),
|
|
|
|
|
TAG_LIGHT_COLOR_PINK_RED("04", "粉红"),
|
|
|
|
|
TAG_LIGHT_COLOR_BLUE_GREEN("05", "蓝绿");
|
|
|
|
|
TAG_LIGHT_COLOR_RED("00", 0, "红"),
|
|
|
|
|
TAG_LIGHT_COLOR_GREEN("01", 1, "绿"),
|
|
|
|
|
TAG_LIGHT_COLOR_ORANGE("02", 2, "橙"),
|
|
|
|
|
TAG_LIGHT_COLOR_BLUE("03", 3, "蓝"),
|
|
|
|
|
TAG_LIGHT_COLOR_PINK_RED("04", 4, "粉红"),
|
|
|
|
|
TAG_LIGHT_COLOR_BLUE_GREEN("05", 5, "蓝绿");
|
|
|
|
|
|
|
|
|
|
private String code;
|
|
|
|
|
private Integer value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
TAG_LIGHT_COLOR_CMD(String code, String description) {
|
|
|
|
|
TAG_LIGHT_COLOR_CMD(String code, Integer value, String description) {
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -314,10 +316,24 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOf(int value) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].value == value) {
|
|
|
|
|
tmp = values()[i].code;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
@ -355,24 +371,26 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum FINISH_TAG_LIGHT_MUSIC_CMD {
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_00H("00", "Jingle bells"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_01H("01", "Carmen"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_02H("02", "Happy Chinese new year"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_03H("03", "Edelweiss"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_04H("04", "Going home"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_05H("05", "PAPALA"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_06H("06", "Classical"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_07H("07", "Listen to the rhythm of the falling rain"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_08H("08", "Rock and roll"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_09H("09", "Happy birthday"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_0AH("0A", "Do Re Me"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_0BH("0B", "Strauss");
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_00H("00", 0, "Jingle bells"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_01H("01", 1, "Carmen"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_02H("02", 2, "Happy Chinese new year"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_03H("03", 3, "Edelweiss"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_04H("04", 4, "Going home"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_05H("05", 5, "PAPALA"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_06H("06", 6, "Classical"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_07H("07", 7, "Listen to the rhythm of the falling rain"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_08H("08", 8, "Rock and roll"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_09H("09", 9, "Happy birthday"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_0AH("0A", 10, "Do Re Me"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_0BH("0B", 11, "Strauss");
|
|
|
|
|
|
|
|
|
|
private String code;
|
|
|
|
|
private Integer value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_CMD(String code, String description) {
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_CMD(String code, Integer value, String description) {
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -385,10 +403,24 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOf(int value) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].value == value) {
|
|
|
|
|
tmp = values()[i].code;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
@ -590,7 +622,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
public enum MonitorProcessMessageType {
|
|
|
|
|
CONNECT_CONTROL_CMD(10, "CONNECT_CONTROL_CMD", "connectControlService", "连接控制器"),
|
|
|
|
|
DISCONNECT_CONTROL_CMD(20, "DISCONNECT_CONTROL_CMD", "disconnectControlService", "断开控制器"),
|
|
|
|
|
EXCEPTION__DISCONNECT_CONTROL_CMD(25, "EXCEPTION__DISCONNECT_CONTROL_CMD", "disconnectControlService", "断开控制器"),
|
|
|
|
|
EXCEPTION__DISCONNECT_CONTROL_CMD(25, "EXCEPTION_DISCONNECT_CONTROL_CMD", "disconnectControlService", "断开控制器"),
|
|
|
|
|
LIGHT_ON_CMD(30, "LIGHT_ON_CMD", "lightOnService", "亮灯命令"),
|
|
|
|
|
LIGHT_OFF_CMD(40, "LIGHT_OFF_CMD", "lightOffService", "灭灯命令"),
|
|
|
|
|
CONTROL_SIGNAL_CMD(50, "CONTROL_SIGNAL_CMD", "controlSignalService", "控制器反馈信号"),
|
|
|
|
@ -1142,4 +1174,157 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 系统配置表枚举
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum CONFIG_TYPE {
|
|
|
|
|
FASTDFS_SAVE_PATH(10, "SAVE_PATH", ""),
|
|
|
|
|
NGINX_HOST(20, "NGINX_HOST", ""),
|
|
|
|
|
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"),
|
|
|
|
|
PCN_PUSH(70, "SYNC_DATA_URL", "PCN_PUSH"),
|
|
|
|
|
FDFS_DOWNLOAD(80, "SYNC_DATA_URL", "FDFS_DOWNLOAD"),
|
|
|
|
|
REWORK_REPAIR(90, "REWORK_REPAIR", ""),
|
|
|
|
|
OPC_LINK_SERVER_URL(100, "OPC_LINK", "OPC_LINK_SERVER_URL"),
|
|
|
|
|
OPC_LINK_USERNAME(110, "OPC_LINK", "OPC_LINK_USERNAME"),
|
|
|
|
|
OPC_LINK_PASSWORD(120, "OPC_LINK", "OPC_LINK_PASSWORD"),
|
|
|
|
|
OPC_LINK_REALM(130, "OPC_LINK", "OPC_LINK_REALM"),
|
|
|
|
|
OPC_LINK_CALLBACK(140, "OPC_LINK", "OPC_LINK_CALLBACK"),
|
|
|
|
|
SUPPLY_SWITCH(150, "SUPPLY_SWITCH", ""),
|
|
|
|
|
PCN_LOGIN(160, "PCN_LOGIN", ""),
|
|
|
|
|
PCN_MENU(170, "PCN_MENU", ""),
|
|
|
|
|
PCN_MODULE(180, "PCN_MODULE", ""),
|
|
|
|
|
PCN_LOGOUT(190, "PCN_LOGOUT", ""),
|
|
|
|
|
UPDATE_LOCALE_RES(200, "LOCALE_RES_URL", "LOCALE_RES_URL"),
|
|
|
|
|
PCN_SYS_LOCALE_LANGUAGE(210, "PCN_SYS_LOCALE_LANGUAGE", ""),
|
|
|
|
|
PCN_SYS_ALL_LANGUAGE(220,"PCN_SYS_ALL_LANGUAGE","PCN_SYS_ALL_LANGUAGE"),
|
|
|
|
|
PCN_SYS_RESOURCE_KEY_LANGUAGE(230,"PCN_SYS_RESOURCE_KEY_LANGUAGE","PCN_SYS_RESOURCE_KEY_LANGUAGE");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
CONFIG_TYPE(int value, String code, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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].description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PCN同步PTL主数据同步类型枚举
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum SYNC_TYPE {
|
|
|
|
|
|
|
|
|
|
GET_PTL_DATA(1, "pcn获取Ptl数据"),
|
|
|
|
|
DATA_TO_PTL(2, "pcn推送数据至ptl");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
SYNC_TYPE(int value, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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].description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static Integer descriptionOfValue(String description) {
|
|
|
|
|
Integer tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].description.equals(description)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PCN同步PTL主数据同步方式枚举
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum SYNC_PATTERN {
|
|
|
|
|
|
|
|
|
|
UPDATE(1, "修改"),
|
|
|
|
|
INSERT(2, "新增");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
SYNC_PATTERN(int value, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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].description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static Integer descriptionOfValue(String description) {
|
|
|
|
|
Integer tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].description.equals(description)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|