diff --git a/modules/i3plus-pojo-mes/src/main/java/cn/estsh/i3plus/pojo/mes/model/StepResult.java b/modules/i3plus-pojo-mes/src/main/java/cn/estsh/i3plus/pojo/mes/model/StepResult.java index 7e880f4..1a8f7c8 100644 --- a/modules/i3plus-pojo-mes/src/main/java/cn/estsh/i3plus/pojo/mes/model/StepResult.java +++ b/modules/i3plus-pojo-mes/src/main/java/cn/estsh/i3plus/pojo/mes/model/StepResult.java @@ -93,6 +93,10 @@ public class StepResult { return new StepResult<>(true, data, ""); } + public static StepResult getNewSuccessData(T data, String nextTriggerEvent) { + return new StepResult<>(true, data, "", nextTriggerEvent); + } + public static StepResult getSuccessData(Collection data, String msg) { return new StepResult(true, data, msg); } @@ -126,6 +130,13 @@ public class StepResult { this.msg = msg; } + public StepResult(boolean isCompleted, T data, String msg, String nextTriggerEvent) { + this.isCompleted = isCompleted; + this.data = data; + this.msg = msg; + this.nextTriggerEvent = nextTriggerEvent; + } + public StepResult(boolean isCompleted, Collection dataCollection, String msg) { this.isCompleted = isCompleted; this.dataCollection = dataCollection;