diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiTaskReportDTO.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiTaskReportDTO.java index 01d7c954e9..c1a1768819 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiTaskReportDTO.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiTaskReportDTO.java @@ -26,6 +26,9 @@ public class ApiTaskReportDTO { @Schema(description = "结果") private String result; + @Schema(description = "状态") + private String status; + @Schema(description = "资源池ID") private String resourcePoolId; @Schema(description = "资源池名称") diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ExecTaskDetailDTO.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ExecTaskDetailDTO.java index 6bfb15c121..173a915ba8 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ExecTaskDetailDTO.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ExecTaskDetailDTO.java @@ -23,6 +23,9 @@ public class ExecTaskDetailDTO extends ApiScenarioReportDTO{ @Schema(description = "结果") private String result; + @Schema(description = "状态") + private String status; + @Schema(description = "节点") private String resourcePoolNode; diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/taskhub/ExecTaskItemDetailDTO.java b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/taskhub/ExecTaskItemDetailDTO.java index d32b8a9d54..2def9832e0 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/dto/taskhub/ExecTaskItemDetailDTO.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/dto/taskhub/ExecTaskItemDetailDTO.java @@ -33,6 +33,9 @@ public class ExecTaskItemDetailDTO implements Serializable { @Schema(description = "结果") private String result; + @Schema(description = "状态") + private String status; + @Schema(description = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED) private String resourcePoolId; diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtExecTaskMapper.xml b/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtExecTaskMapper.xml index 55a06c1a8c..aaef053319 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtExecTaskMapper.xml +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtExecTaskMapper.xml @@ -125,6 +125,7 @@ exec_task.integrated, exec_task.create_time as createTime, exec_task_item.result as result, + exec_task_item.status as status, exec_task_item.resource_pool_id as resourcePoolId, exec_task_item.resource_pool_node as resourcePoolNode, exec_task_item.thread_id as threadId,