|
|
|
@ -314,7 +314,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
|
|
|
|
|
public static SIGNAL_CHILD_CMD getByValue(String code) {
|
|
|
|
|
for (SIGNAL_CHILD_CMD signalChildCmd : values()) {
|
|
|
|
|
if (signalChildCmd.getCode() == code) {
|
|
|
|
|
if (signalChildCmd.getCode().equals(code)) {
|
|
|
|
|
return signalChildCmd;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -351,12 +351,12 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum TAG_LIGHT_COLOR_CMD {
|
|
|
|
|
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, "蓝绿");
|
|
|
|
|
TAG_LIGHT_COLOR_RED("00", 1, "红"),
|
|
|
|
|
TAG_LIGHT_COLOR_GREEN("01", 2, "绿"),
|
|
|
|
|
TAG_LIGHT_COLOR_ORANGE("02", 3, "橙"),
|
|
|
|
|
TAG_LIGHT_COLOR_BLUE("03", 4, "蓝"),
|
|
|
|
|
TAG_LIGHT_COLOR_PINK_RED("04", 5, "粉红"),
|
|
|
|
|
TAG_LIGHT_COLOR_BLUE_GREEN("05", 6, "蓝绿");
|
|
|
|
|
|
|
|
|
|
private String code;
|
|
|
|
|
private Integer value;
|
|
|
|
@ -370,7 +370,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
|
|
|
|
|
public static TAG_LIGHT_COLOR_CMD getByValue(String code) {
|
|
|
|
|
for (TAG_LIGHT_COLOR_CMD tagLightColorCmd : values()) {
|
|
|
|
|
if (tagLightColorCmd.getCode() == code) {
|
|
|
|
|
if (tagLightColorCmd.getCode().equals(code)) {
|
|
|
|
|
return tagLightColorCmd;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -417,6 +417,15 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static TAG_LIGHT_TYPE getByValue(int value) {
|
|
|
|
|
for (TAG_LIGHT_TYPE tagLightType : values()) {
|
|
|
|
|
if (tagLightType.getValue() == value) {
|
|
|
|
|
return tagLightType;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
@ -432,18 +441,18 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum FINISH_TAG_LIGHT_MUSIC_CMD {
|
|
|
|
|
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");
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_00H("00", 1, "Jingle bells"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_01H("01", 2, "Carmen"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_02H("02", 3, "Happy Chinese new year"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_03H("03", 4, "Edelweiss"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_04H("04", 5, "Going home"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_05H("05", 6, "PAPALA"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_06H("06", 7, "Classical"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_07H("07", 8, "Listen to the rhythm of the falling rain"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_08H("08", 9, "Rock and roll"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_09H("09", 10, "Happy birthday"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_0AH("0A", 11, "Do Re Me"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_0BH("0B", 12, "Strauss");
|
|
|
|
|
|
|
|
|
|
private String code;
|
|
|
|
|
private Integer value;
|
|
|
|
@ -457,7 +466,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
|
|
|
|
|
public static FINISH_TAG_LIGHT_MUSIC_CMD getByValue(String code) {
|
|
|
|
|
for (FINISH_TAG_LIGHT_MUSIC_CMD finishTagLightMusicCmd : values()) {
|
|
|
|
|
if (finishTagLightMusicCmd.getCode() == code) {
|
|
|
|
|
if (finishTagLightMusicCmd.getCode().equals(code)) {
|
|
|
|
|
return finishTagLightMusicCmd;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -520,7 +529,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
|
|
|
|
|
public static FINISH_TAG_LIGHT_VOLUME_CMD getByValue(String code) {
|
|
|
|
|
for (FINISH_TAG_LIGHT_VOLUME_CMD finishTagLightVolumeCmd : values()) {
|
|
|
|
|
if (finishTagLightVolumeCmd.getCode() == code) {
|
|
|
|
|
if (finishTagLightVolumeCmd.getCode().equals(code)) {
|
|
|
|
|
return finishTagLightVolumeCmd;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -680,21 +689,22 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MonitorProcessMessageType {
|
|
|
|
|
public enum MONITOR_PROCESS_MESSAGE_TYPE {
|
|
|
|
|
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", "控制器反馈信号"),
|
|
|
|
|
INTERFACE_SIGNAL_CMD(60, "INTERFACE_SIGNAL_CMD", "", "发送给界面actor通过websocket返回");
|
|
|
|
|
INTERFACE_SIGNAL_CMD(60, "INTERFACE_SIGNAL_CMD", "", "发送给界面actor通过websocket返回"),
|
|
|
|
|
REFRESH_CONTROL_CMD(70, "REFRESH_CONTROL_CMD", "refreshControlService", "刷新");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String callClass;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
MonitorProcessMessageType(int value, String code, String callClass, String description) {
|
|
|
|
|
MONITOR_PROCESS_MESSAGE_TYPE(int value, String code, String callClass, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.callClass = callClass;
|
|
|
|
@ -717,11 +727,11 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static MonitorProcessMessageType getTypeByValue(String code) {
|
|
|
|
|
public static MONITOR_PROCESS_MESSAGE_TYPE getTypeByValue(String code) {
|
|
|
|
|
if (StringUtils.isEmpty(code)) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
for (MonitorProcessMessageType enums : MonitorProcessMessageType.values()) {
|
|
|
|
|
for (MONITOR_PROCESS_MESSAGE_TYPE enums : MONITOR_PROCESS_MESSAGE_TYPE.values()) {
|
|
|
|
|
if (enums.getCode().equals(code)) {
|
|
|
|
|
return enums;
|
|
|
|
|
}
|
|
|
|
@ -731,12 +741,13 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum InterfaceSignalMessageType {
|
|
|
|
|
public enum INTERFACE_SIGNAL_MESSAGE_TYPE {
|
|
|
|
|
CONNECT_CONTROL_CMD(10, "CONNECT_CONTROL_CMD", "connectControlService", "连接控制器"),
|
|
|
|
|
DISCONNECT_CONTROL_CMD(20, "DISCONNECT_CONTROL_CMD", "disconnectControlService", "断开控制器"),
|
|
|
|
|
REFRESH_CONTROL_CMD(30, "REFRESH_CONTROL_CMD", "refreshControlService", "刷新"),
|
|
|
|
|
SCAN_CONTROL_CMD(40, "SCAN_CONTROL_CMD", "scanControlService", "扫描"),
|
|
|
|
|
INIT_MODULE_CONTROL_CMD(50, "INIT_MODULE_CONTROL_CMD", "initModuleControlService", "初始化页面");
|
|
|
|
|
INIT_MODULE_CONTROL_CMD(50, "INIT_MODULE_CONTROL_CMD", "initModuleControlService", "初始化页面"),
|
|
|
|
|
GET_CONTROL_DATA_CONTROL_CMD(60, "GET_CONTROL_DATA_CONTROL_CMD", "getControlDataControlService", "获取控制器数据");
|
|
|
|
|
// UNLOCK_CONTROL_CMD(50, "UNLOCK_CONTROL_CMD", "unlockControlService", "解锁"),
|
|
|
|
|
// LABEL_SELF_CHECK_CONTROL_CMD(60, "labelSelfCheck", "labelSelfCheckControlService", "标签自检"),
|
|
|
|
|
// LIGHT_DETAIL_CONTROL_CMD(70, "LABEL_SELF_CHECK_CONTROL_CMD", "lightDetailControlService", "亮灯明细");
|
|
|
|
@ -746,7 +757,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
private String callClass;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
InterfaceSignalMessageType(int value, String code, String callClass, String description) {
|
|
|
|
|
INTERFACE_SIGNAL_MESSAGE_TYPE(int value, String code, String callClass, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.callClass = callClass;
|
|
|
|
@ -769,11 +780,11 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static InterfaceSignalMessageType getTypeByValue(String code) {
|
|
|
|
|
public static INTERFACE_SIGNAL_MESSAGE_TYPE getTypeByValue(String code) {
|
|
|
|
|
if (StringUtils.isEmpty(code)) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
for (InterfaceSignalMessageType enums : InterfaceSignalMessageType.values()) {
|
|
|
|
|
for (INTERFACE_SIGNAL_MESSAGE_TYPE enums : INTERFACE_SIGNAL_MESSAGE_TYPE.values()) {
|
|
|
|
|
if (enums.getCode().equals(code)) {
|
|
|
|
|
return enums;
|
|
|
|
|
}
|
|
|
|
@ -782,25 +793,33 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 生成任务actor message type
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum WsBusiType {
|
|
|
|
|
MONITOR_PROCESS(10, "MONITOR_PROCESS", "控制器相关"),
|
|
|
|
|
INTERFACE_PROCESS(10, "INTERFACE_PROCESS", "界面处理");
|
|
|
|
|
public enum GEN_TASK_MESSAGE_TYPE {
|
|
|
|
|
GEN_TASK_CMD(10, "GEN_TASK_CMD", "", "生成任务");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String callClass;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
WsBusiType(int value, String code, String description) {
|
|
|
|
|
GEN_TASK_MESSAGE_TYPE(int value, String code, String callClass, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = description;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.callClass = callClass;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCallClass() {
|
|
|
|
|
return callClass;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
@ -808,22 +827,33 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static INTERFACE_SIGNAL_MESSAGE_TYPE getTypeByValue(String code) {
|
|
|
|
|
if (StringUtils.isEmpty(code)) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
for (INTERFACE_SIGNAL_MESSAGE_TYPE enums : INTERFACE_SIGNAL_MESSAGE_TYPE.values()) {
|
|
|
|
|
if (enums.getCode().equals(code)) {
|
|
|
|
|
return enums;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum WsDataType {
|
|
|
|
|
TEXT(10, "TEXT", "正常信息"),
|
|
|
|
|
EXP_TEXT(20, "EXP_TEXT", "异常信息"),
|
|
|
|
|
TABLE(30, "TABLE", "表格");
|
|
|
|
|
public enum WsBusiType {
|
|
|
|
|
MONITOR_PROCESS(10, "MONITOR_PROCESS", "控制器相关"),
|
|
|
|
|
INTERFACE_PROCESS(20, "INTERFACE_PROCESS", "界面处理");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
WsDataType(int value, String code, String description) {
|
|
|
|
|
WsBusiType(int value, String code, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.description = description;
|
|
|
|
|
this.code = code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
@ -840,16 +870,16 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum STATUS_TYPE {
|
|
|
|
|
START(10, "START", "开始状态"),
|
|
|
|
|
FINISH(20, "FINISH", "完成状态"),
|
|
|
|
|
TERMINATE(30, "TERMINATE", "中断状态");
|
|
|
|
|
public enum WsDataType {
|
|
|
|
|
TEXT(10, "TEXT", "正常信息"),
|
|
|
|
|
EXP_TEXT(20, "EXP_TEXT", "异常信息"),
|
|
|
|
|
TABLE(30, "TABLE", "表格");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
STATUS_TYPE(int value, String code, String description) {
|
|
|
|
|
WsDataType(int value, String code, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.description = description;
|
|
|
|
@ -869,15 +899,16 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum AREA_SECTION_TASK_DETAIL_STATUS {
|
|
|
|
|
CREATE(10, "CREATE", "创建"),
|
|
|
|
|
COMPLETE(20, "COMPLETE", "完成");
|
|
|
|
|
public enum STATUS_TYPE {
|
|
|
|
|
START(10, "START", "开始状态"),
|
|
|
|
|
FINISH(20, "FINISH", "完成状态"),
|
|
|
|
|
TERMINATE(30, "TERMINATE", "中断状态");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
AREA_SECTION_TASK_DETAIL_STATUS(int value, String code, String description) {
|
|
|
|
|
STATUS_TYPE(int value, String code, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.description = description;
|
|
|
|
@ -896,22 +927,18 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 生成任务actor message type
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum GenTaskMessageType {
|
|
|
|
|
GEN_TASK_CMD(10, "GEN_TASK_CMD", "", "生成任务");
|
|
|
|
|
public enum AREA_SECTION_TASK_DETAIL_STATUS {
|
|
|
|
|
CREATE(10, "CREATE", "创建"),
|
|
|
|
|
COMPLETE(20, "COMPLETE", "完成");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String callClass;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
GenTaskMessageType(int value, String code, String callClass, String description) {
|
|
|
|
|
AREA_SECTION_TASK_DETAIL_STATUS(int value, String code, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.callClass = callClass;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -919,10 +946,6 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCallClass() {
|
|
|
|
|
return callClass;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
@ -930,18 +953,6 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static InterfaceSignalMessageType getTypeByValue(String code) {
|
|
|
|
|
if (StringUtils.isEmpty(code)) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
for (InterfaceSignalMessageType enums : InterfaceSignalMessageType.values()) {
|
|
|
|
|
if (enums.getCode().equals(code)) {
|
|
|
|
|
return enums;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -1349,7 +1360,7 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum SYNC_PATTERN {
|
|
|
|
|
|
|
|
|
|
UPDATE(1, "修改"),
|
|
|
|
|
UPDATE(1, "新增或修改"),
|
|
|
|
|
INSERT(2, "新增");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
@ -1388,4 +1399,402 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ptl-pcn定时任务状态
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum PTL_PCN_TASK_STATUS {
|
|
|
|
|
|
|
|
|
|
OPEN(1, "开启"),
|
|
|
|
|
CLOSE(2, "关闭");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
PTL_PCN_TASK_STATUS(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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* mes-pcn定时任务同步结果状态
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum PTL_PCN_TASK_SYNC_STATUS {
|
|
|
|
|
|
|
|
|
|
SUCCESS(1, "ptl主服务定时任务工作清单同步成功"),
|
|
|
|
|
ERROR(2, "ptl主服务定时任务工作清单同步失败");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
PTL_PCN_TASK_SYNC_STATUS(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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 单据主表类型(ASN,PO,MOVE,QC)
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MASTER_ORDER_TYPE {
|
|
|
|
|
CREATE(10, "NORMAL", "正常");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
MASTER_ORDER_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 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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static int descOf(String desc) {
|
|
|
|
|
int tmp = 1;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].description.equals(desc)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
return valueOf(val);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 区域任务状态(ASN,PO,MOVE,QC)
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum MASTER_ORDER_STATUS {
|
|
|
|
|
CREATE(10, "CREATE", "创建"),
|
|
|
|
|
RECEIPT(20, "IN_PROGRESS", "处理中"),
|
|
|
|
|
RECEIPT_FINISH(30, "COMPLETED", "已完成"),
|
|
|
|
|
CANCELLED(40, "CANCELLED", "已取消");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
MASTER_ORDER_STATUS(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 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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static int descOf(String desc) {
|
|
|
|
|
int tmp = 1;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].description.equals(desc)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
return valueOf(val);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 区域任务类型(ASN,PO,MOVE,QC)
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum AREA_SECTION_TASK_TYPE {
|
|
|
|
|
CREATE(10, "CREATE", "JIT任务"),
|
|
|
|
|
RECEIPT(20, "IN_PROGRESS", "单据任务"),
|
|
|
|
|
RECEIPT_FINISH(30, "COMPLETED", "单点任务");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
AREA_SECTION_TASK_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 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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static int descOf(String desc) {
|
|
|
|
|
int tmp = 1;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].description.equals(desc)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
return valueOf(val);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 区域任务状态(ASN,PO,MOVE,QC)
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum AREA_TASK_STATUS {
|
|
|
|
|
CREATE(10, "CREATE", "创建"),
|
|
|
|
|
RECEIPT(20, "IN_PROGRESS", "处理中"),
|
|
|
|
|
RECEIPT_FINISH(30, "COMPLETED", "已完成");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
AREA_TASK_STATUS(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 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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static int descOf(String desc) {
|
|
|
|
|
int tmp = 1;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].description.equals(desc)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
return valueOf(val);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 区域任务类型(ASN,PO,MOVE,QC)
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum AREA_TASK_TYPE {
|
|
|
|
|
CREATE(10, "JIT_TASK", "JIT任务"),
|
|
|
|
|
RECEIPT(20, "DOCUMENT_TASK", "单据任务"),
|
|
|
|
|
RECEIPT_FINISH(30, "SINGLE_POINT_TASK", "单点任务");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
AREA_TASK_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 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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static int descOf(String desc) {
|
|
|
|
|
int tmp = 1;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].description.equals(desc)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
return valueOf(val);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* redis过期时间
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum EXPIRE_TIME {
|
|
|
|
|
|
|
|
|
|
NEVER(-1, "不过期"),
|
|
|
|
|
ONE_HOUR(3600, "一小时"),
|
|
|
|
|
FIVE_MINS(300, "5分钟"),
|
|
|
|
|
HALF_HOUR(1800, "半小时"),
|
|
|
|
|
ONE_QUARTER(900, "一刻钟"),
|
|
|
|
|
ONE_MIN(60, "一分钟");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
EXPIRE_TIME(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 String valueOfDescription2(int val) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].value == val) {
|
|
|
|
|
tmp = values()[i].description.equals("已审批") ? "审批" : values()[i].description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|