diff --git a/src/main/java/com/dispose/common/DisposeTaskStatus.java b/src/main/java/com/dispose/common/DisposeTaskStatus.java index ffbd07cb..273940f5 100644 --- a/src/main/java/com/dispose/common/DisposeTaskStatus.java +++ b/src/main/java/com/dispose/common/DisposeTaskStatus.java @@ -30,6 +30,16 @@ public enum DisposeTaskStatus implements BaseEnum { * The Task expired. */ TASK_EXPIRED(5, "过期"), + + /** + * Task start failed dispose task status. + */ + TASK_START_FAILED(6, "启动失败"), + + /** + * Task stop failed dispose task status. + */ + TASK_STOP_FAILED(7, "停止失败"), ; /** diff --git a/src/main/resources/mappers/DeviceTask.xml b/src/main/resources/mappers/DeviceTask.xml index 04c4c88b..0badf1c0 100644 --- a/src/main/resources/mappers/DeviceTask.xml +++ b/src/main/resources/mappers/DeviceTask.xml @@ -57,6 +57,7 @@ FROM device_task WHERE status = ${@com.dispose.common.DisposeTaskStatus@TASK_NEW.getValue()} OR status = ${@com.dispose.common.DisposeTaskStatus@TASK_STARTING.getValue()} + OR status = ${@com.dispose.common.DisposeTaskStatus@TASK_START_FAILED.getValue()}