From 14b21ca544f121cb9c946a6accdd2013342d8f5a Mon Sep 17 00:00:00 2001 From: "song.tianyang" Date: Fri, 22 Jan 2021 15:21:37 +0800 Subject: [PATCH 01/10] =?UTF-8?q?feat:=20=E6=8E=A5=E5=8F=A3=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E9=A6=96=E9=A1=B5-=E8=BF=90=E8=A1=8C=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 接口测试首页-运行中的定时任务增加字段 --- .../dto/datacount/response/TaskInfoResult.java | 4 ++-- .../base/mapper/ext/ExtApiTestCaseMapper.xml | 7 +++++++ .../base/mapper/ext/ExtScheduleMapper.xml | 4 ++-- .../api/automation/schedule/ScheduleMaintain.vue | 2 +- .../api/homepage/components/RunningTaskList.vue | 15 ++++++++++++--- frontend/src/i18n/en-US.js | 3 +++ frontend/src/i18n/zh-CN.js | 3 +++ frontend/src/i18n/zh-TW.js | 3 +++ 8 files changed, 33 insertions(+), 8 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/dto/datacount/response/TaskInfoResult.java b/backend/src/main/java/io/metersphere/api/dto/datacount/response/TaskInfoResult.java index e9eff7cf0b..6c90913005 100644 --- a/backend/src/main/java/io/metersphere/api/dto/datacount/response/TaskInfoResult.java +++ b/backend/src/main/java/io/metersphere/api/dto/datacount/response/TaskInfoResult.java @@ -13,8 +13,8 @@ public class TaskInfoResult { private int index; //任务ID private String taskID; - //场景名称 - private String scenario; + //任务名称 + private String name; //场景ID private String scenarioId; //规则 diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml index b5c9256f6a..7d0e59cd5d 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestCaseMapper.xml @@ -198,6 +198,7 @@ FROM api_test_case t1 LEFT JOIN api_definition_exec_result t2 ON t1.last_result_id = t2.id + inner join api_definition a on t1.api_definition_id = a.id LEFT JOIN USER u1 ON t1.update_user_id = u1.id LEFT JOIN USER u2 ON t1.create_user_id = u2.id LEFT JOIN USER u3 ON t2.user_id = u3.id @@ -224,6 +225,12 @@ AND t1.api_definition_id = #{request.apiDefinitionId} + + and a.module_id in + + #{nodeId} + + diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtScheduleMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtScheduleMapper.xml index 7f6e5e2802..f17df6bc52 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtScheduleMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtScheduleMapper.xml @@ -50,14 +50,14 @@ AND create_time BETWEEN #{startTime} and #{endTime}