|
|
@ -12,6 +12,41 @@ import org.springframework.util.StringUtils;
|
|
|
|
public class PtlPcnEnumUtil {
|
|
|
|
public class PtlPcnEnumUtil {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 控制器状态
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
|
|
|
public enum PTL_CONTROL_STATUS {
|
|
|
|
|
|
|
|
CONNECT(10, "连接"),
|
|
|
|
|
|
|
|
BREAK(20, "断开");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
|
|
|
return value;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
|
|
|
return description;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private PTL_CONTROL_STATUS(int value, String description) {
|
|
|
|
|
|
|
|
this.value = value;
|
|
|
|
|
|
|
|
this.description = description;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static String valueOf(int val) {
|
|
|
|
|
|
|
|
String tmp = null;
|
|
|
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
|
|
|
if (values()[i].value == val) {
|
|
|
|
|
|
|
|
tmp = values()[i].description;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return tmp;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 标签器LED数字解析枚举
|
|
|
|
* 标签器LED数字解析枚举
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
@ -251,22 +286,85 @@ public class PtlPcnEnumUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 反馈信号子命令(灭灯状态)
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
|
|
|
public enum SIGNAL_CHILD_CMD {
|
|
|
|
|
|
|
|
CHILD_CMD_06H("06", 6, "正常"),
|
|
|
|
|
|
|
|
CHILD_CMD_07H("07", 7, "缺货"),
|
|
|
|
|
|
|
|
CHILD_CMD_09H("09", 9, "标签自检"),
|
|
|
|
|
|
|
|
CHILD_CMD_0AH("0A", 10, "亮灯错误"),
|
|
|
|
|
|
|
|
CHILD_CMD_0BH("0B", 11, "查询设备故障,返回设备故障"),
|
|
|
|
|
|
|
|
CHILD_CMD_0CH("0C", 12, "设备无法执行命令,用错命令"),
|
|
|
|
|
|
|
|
CHILD_CMD_0DH("0D", 13, "卡键,按键卡住"),
|
|
|
|
|
|
|
|
CHILD_CMD_0FH("0F", 15, "返回库存模式下的缺货量"),
|
|
|
|
|
|
|
|
CHILD_CMD_64H("64", 100, "熄灭情况下返回"),
|
|
|
|
|
|
|
|
CHILD_CMD_FAH("FA", 250, "设备的 F/W 模型信息"),
|
|
|
|
|
|
|
|
CHILD_CMD_FCH("FC", 252, "标签产品信息");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String code;
|
|
|
|
|
|
|
|
private Integer value;
|
|
|
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SIGNAL_CHILD_CMD(String code, Integer value, String description) {
|
|
|
|
|
|
|
|
this.code = code;
|
|
|
|
|
|
|
|
this.value = value;
|
|
|
|
|
|
|
|
this.description = description;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static SIGNAL_CHILD_CMD getByValue(String code) {
|
|
|
|
|
|
|
|
for (SIGNAL_CHILD_CMD signalChildCmd : values()) {
|
|
|
|
|
|
|
|
if (signalChildCmd.getCode() == code) {
|
|
|
|
|
|
|
|
return signalChildCmd;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static Integer codeOfValue(String code) {
|
|
|
|
|
|
|
|
Integer tmp = null;
|
|
|
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
|
|
|
if (values()[i].code.equals(code)) {
|
|
|
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return tmp;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
|
|
|
return code;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Integer getValue() {
|
|
|
|
|
|
|
|
return value;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
|
|
|
return description;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 标签显示器亮灯颜色枚举
|
|
|
|
* 标签显示器亮灯颜色枚举
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum TAG_LIGHT_COLOR_CMD {
|
|
|
|
public enum TAG_LIGHT_COLOR_CMD {
|
|
|
|
TAG_LIGHT_COLOR_RED("00", "红"),
|
|
|
|
TAG_LIGHT_COLOR_RED("00", 0, "红"),
|
|
|
|
TAG_LIGHT_COLOR_GREEN("01", "绿"),
|
|
|
|
TAG_LIGHT_COLOR_GREEN("01", 1, "绿"),
|
|
|
|
TAG_LIGHT_COLOR_ORANGE("02", "橙"),
|
|
|
|
TAG_LIGHT_COLOR_ORANGE("02", 2, "橙"),
|
|
|
|
TAG_LIGHT_COLOR_BLUE("03", "蓝"),
|
|
|
|
TAG_LIGHT_COLOR_BLUE("03", 3, "蓝"),
|
|
|
|
TAG_LIGHT_COLOR_PINK_RED("04", "粉红"),
|
|
|
|
TAG_LIGHT_COLOR_PINK_RED("04", 4, "粉红"),
|
|
|
|
TAG_LIGHT_COLOR_BLUE_GREEN("05", "蓝绿");
|
|
|
|
TAG_LIGHT_COLOR_BLUE_GREEN("05", 5, "蓝绿");
|
|
|
|
|
|
|
|
|
|
|
|
private String code;
|
|
|
|
private String code;
|
|
|
|
|
|
|
|
private Integer value;
|
|
|
|
private String description;
|
|
|
|
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.code = code;
|
|
|
|
|
|
|
|
this.value = value;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -279,10 +377,24 @@ public class PtlPcnEnumUtil {
|
|
|
|
return null;
|
|
|
|
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() {
|
|
|
|
public String getCode() {
|
|
|
|
return code;
|
|
|
|
return code;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Integer getValue() {
|
|
|
|
|
|
|
|
return value;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
public String getDescription() {
|
|
|
|
return description;
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -320,24 +432,26 @@ public class PtlPcnEnumUtil {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum FINISH_TAG_LIGHT_MUSIC_CMD {
|
|
|
|
public enum FINISH_TAG_LIGHT_MUSIC_CMD {
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_00H("00", "Jingle bells"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_00H("00", 0, "Jingle bells"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_01H("01", "Carmen"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_01H("01", 1, "Carmen"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_02H("02", "Happy Chinese new year"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_02H("02", 2, "Happy Chinese new year"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_03H("03", "Edelweiss"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_03H("03", 3, "Edelweiss"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_04H("04", "Going home"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_04H("04", 4, "Going home"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_05H("05", "PAPALA"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_05H("05", 5, "PAPALA"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_06H("06", "Classical"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_06H("06", 6, "Classical"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_07H("07", "Listen to the rhythm of the falling rain"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_07H("07", 7, "Listen to the rhythm of the falling rain"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_08H("08", "Rock and roll"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_08H("08", 8, "Rock and roll"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_09H("09", "Happy birthday"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_09H("09", 9, "Happy birthday"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_0AH("0A", "Do Re Me"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_0AH("0A", 10, "Do Re Me"),
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_0BH("0B", "Strauss");
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_0BH("0B", 11, "Strauss");
|
|
|
|
|
|
|
|
|
|
|
|
private String code;
|
|
|
|
private String code;
|
|
|
|
|
|
|
|
private Integer value;
|
|
|
|
private String description;
|
|
|
|
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.code = code;
|
|
|
|
|
|
|
|
this.value = value;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -350,10 +464,24 @@ public class PtlPcnEnumUtil {
|
|
|
|
return null;
|
|
|
|
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() {
|
|
|
|
public String getCode() {
|
|
|
|
return code;
|
|
|
|
return code;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Integer getValue() {
|
|
|
|
|
|
|
|
return value;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
public String getDescription() {
|
|
|
|
return description;
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -555,6 +683,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
public enum MonitorProcessMessageType {
|
|
|
|
public enum MonitorProcessMessageType {
|
|
|
|
CONNECT_CONTROL_CMD(10, "CONNECT_CONTROL_CMD", "connectControlService", "连接控制器"),
|
|
|
|
CONNECT_CONTROL_CMD(10, "CONNECT_CONTROL_CMD", "connectControlService", "连接控制器"),
|
|
|
|
DISCONNECT_CONTROL_CMD(20, "DISCONNECT_CONTROL_CMD", "disconnectControlService", "断开控制器"),
|
|
|
|
DISCONNECT_CONTROL_CMD(20, "DISCONNECT_CONTROL_CMD", "disconnectControlService", "断开控制器"),
|
|
|
|
|
|
|
|
EXCEPTION__DISCONNECT_CONTROL_CMD(25, "EXCEPTION_DISCONNECT_CONTROL_CMD", "disconnectControlService", "断开控制器"),
|
|
|
|
LIGHT_ON_CMD(30, "LIGHT_ON_CMD", "lightOnService", "亮灯命令"),
|
|
|
|
LIGHT_ON_CMD(30, "LIGHT_ON_CMD", "lightOnService", "亮灯命令"),
|
|
|
|
LIGHT_OFF_CMD(40, "LIGHT_OFF_CMD", "lightOffService", "灭灯命令"),
|
|
|
|
LIGHT_OFF_CMD(40, "LIGHT_OFF_CMD", "lightOffService", "灭灯命令"),
|
|
|
|
CONTROL_SIGNAL_CMD(50, "CONTROL_SIGNAL_CMD", "controlSignalService", "控制器反馈信号"),
|
|
|
|
CONTROL_SIGNAL_CMD(50, "CONTROL_SIGNAL_CMD", "controlSignalService", "控制器反馈信号"),
|
|
|
@ -607,7 +736,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
DISCONNECT_CONTROL_CMD(20, "DISCONNECT_CONTROL_CMD", "disconnectControlService", "断开控制器"),
|
|
|
|
DISCONNECT_CONTROL_CMD(20, "DISCONNECT_CONTROL_CMD", "disconnectControlService", "断开控制器"),
|
|
|
|
REFRESH_CONTROL_CMD(30, "REFRESH_CONTROL_CMD", "refreshControlService", "刷新"),
|
|
|
|
REFRESH_CONTROL_CMD(30, "REFRESH_CONTROL_CMD", "refreshControlService", "刷新"),
|
|
|
|
SCAN_CONTROL_CMD(40, "SCAN_CONTROL_CMD", "scanControlService", "扫描"),
|
|
|
|
SCAN_CONTROL_CMD(40, "SCAN_CONTROL_CMD", "scanControlService", "扫描"),
|
|
|
|
INIT_CONTROL_CMD(50, "INIT_MODULE_CONTROL_CMD", "initModuleControlService", "初始化页面");
|
|
|
|
INIT_MODULE_CONTROL_CMD(50, "INIT_MODULE_CONTROL_CMD", "initModuleControlService", "初始化页面");
|
|
|
|
// UNLOCK_CONTROL_CMD(50, "UNLOCK_CONTROL_CMD", "unlockControlService", "解锁"),
|
|
|
|
// UNLOCK_CONTROL_CMD(50, "UNLOCK_CONTROL_CMD", "unlockControlService", "解锁"),
|
|
|
|
// LABEL_SELF_CHECK_CONTROL_CMD(60, "labelSelfCheck", "labelSelfCheckControlService", "标签自检"),
|
|
|
|
// LABEL_SELF_CHECK_CONTROL_CMD(60, "labelSelfCheck", "labelSelfCheckControlService", "标签自检"),
|
|
|
|
// LIGHT_DETAIL_CONTROL_CMD(70, "LABEL_SELF_CHECK_CONTROL_CMD", "lightDetailControlService", "亮灯明细");
|
|
|
|
// LIGHT_DETAIL_CONTROL_CMD(70, "LABEL_SELF_CHECK_CONTROL_CMD", "lightDetailControlService", "亮灯明细");
|
|
|
@ -665,6 +794,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
WsBusiType(int value, String code, String description) {
|
|
|
|
WsBusiType(int value, String code, String description) {
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
|
|
|
|
|
this.code = code;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
public int getValue() {
|
|
|
@ -739,35 +869,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum PtlControlStatus {
|
|
|
|
public enum AREA_SECTION_TASK_DETAIL_STATUS {
|
|
|
|
CONNECT(10, "CONNECT", "连接"),
|
|
|
|
|
|
|
|
DISCONNECT(20, "DISCONNECT", "断开");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
|
|
|
private String code;
|
|
|
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PtlControlStatus(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;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
|
|
|
public enum SectionTaskDetailStatus {
|
|
|
|
|
|
|
|
CREATE(10, "CREATE", "创建"),
|
|
|
|
CREATE(10, "CREATE", "创建"),
|
|
|
|
COMPLETE(20, "COMPLETE", "完成");
|
|
|
|
COMPLETE(20, "COMPLETE", "完成");
|
|
|
|
|
|
|
|
|
|
|
@ -775,7 +877,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
private String code;
|
|
|
|
private String code;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
SectionTaskDetailStatus(int value, String code, String description) {
|
|
|
|
AREA_SECTION_TASK_DETAIL_STATUS(int value, String code, String description) {
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.code = code;
|
|
|
|
this.code = code;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
@ -901,7 +1003,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
* PTL_区段、区域亮灯任务状态
|
|
|
|
* PTL_区段、区域亮灯任务状态
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum AREA_SECTION_TASKL_STATUS {
|
|
|
|
public enum AREA_SECTION_TASK_STATUS {
|
|
|
|
CREATE(10, "CREATE", "新建"),
|
|
|
|
CREATE(10, "CREATE", "新建"),
|
|
|
|
RECEIPT(20, "RECEIPT", "执行中"),
|
|
|
|
RECEIPT(20, "RECEIPT", "执行中"),
|
|
|
|
RECEIPT_FINISH(30, "RECEIPT_FINISH", "已完成");
|
|
|
|
RECEIPT_FINISH(30, "RECEIPT_FINISH", "已完成");
|
|
|
@ -910,7 +1012,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
private String code;
|
|
|
|
private String code;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
AREA_SECTION_TASKL_STATUS(int value, String code, String description) {
|
|
|
|
AREA_SECTION_TASK_STATUS(int value, String code, String description) {
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.code = code;
|
|
|
|
this.code = code;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
@ -1133,4 +1235,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;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|