From 79ef04115309a68e01ce7ee3d4ecfd6a8a510fb8 Mon Sep 17 00:00:00 2001 From: "song.tianyang" Date: Fri, 25 Dec 2020 11:08:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=EF=BC=8C=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E6=95=B0=E9=87=8F?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=EF=BC=8C=E7=BB=9F=E8=AE=A1=E4=BA=86=E6=89=8B?= =?UTF-8?q?=E5=8A=A8=E6=89=A7=E8=A1=8C=E7=9A=84=E6=AC=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复接口测试,定时任务数量统计,统计了手动执行的次数的问题 --- .../mapper/ext/ExtApiScenarioReportMapper.xml | 4 +- .../mapper/ext/ExtApiTestReportMapper.xml | 4 +- .../base/mapper/ext/ExtScheduleMapper.xml | 6 +- .../api/homepage/ApiTestHomePage.vue | 73 ++++++++++--------- 4 files changed, 45 insertions(+), 42 deletions(-) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioReportMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioReportMapper.xml index 0048ae51c0..8acd2c9948 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioReportMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioReportMapper.xml @@ -181,7 +181,7 @@ INNER JOIN ( SELECT acitem.`name`,acitem.id FROM api_scenario acitem INNER JOIN `schedule` sc ON acitem.id = sc.resource_id ) ac on ar.scenario_id = ac.id - WHERE acr.project_id = #{projectId} AND ar.create_time BETWEEN #{firstDayTimestamp} AND #{lastDayTimestamp} + WHERE acr.project_id = #{projectId} AND ar.trigger_mode = 'SCHEDULE' AND ar.create_time BETWEEN #{firstDayTimestamp} AND #{lastDayTimestamp} \ No newline at end of file diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestReportMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestReportMapper.xml index fec8a3e2c8..7683c73738 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestReportMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestReportMapper.xml @@ -159,7 +159,7 @@ INNER JOIN api_test_report testReport ON testReportDetail.report_id = testReport.id WHERE sch.resource_id IN ( SELECT id FROM api_test WHERE project_id = #{projectId,jdbcType=VARCHAR} - ) + ) AND testReport.trigger_mode = 'SCHEDULE' GROUP BY groupField; @@ -170,6 +170,6 @@ WHERE sch.resource_id IN ( SELECT id FROM api_test WHERE project_id = #{projectId,jdbcType=VARCHAR} ) - AND testReport.create_time BETWEEN #{startTime} and #{endTime} + AND testReport.trigger_mode = 'SCHEDULE' AND testReport.create_time BETWEEN #{startTime} and #{endTime} \ No newline at end of file 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 9134566d53..1b72bfc145 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 @@ -46,9 +46,11 @@ diff --git a/frontend/src/business/components/api/homepage/ApiTestHomePage.vue b/frontend/src/business/components/api/homepage/ApiTestHomePage.vue index 1c54476b84..922b7948c4 100644 --- a/frontend/src/business/components/api/homepage/ApiTestHomePage.vue +++ b/frontend/src/business/components/api/homepage/ApiTestHomePage.vue @@ -2,14 +2,22 @@
-
+
🤔️天凉了,保温杯买了吗?
-
- 😔觉得MeterSphere不好用就来 https://github.com/metersphere/metersphere/issues 吐个槽吧! +
+ 😔觉得MeterSphere不好用就来 + https://github.com/metersphere/metersphere/issues + + 吐个槽吧!
-
- 😄觉得MeterSphere好用就来 https://github.com/metersphere/metersphere 点个star吧! +
+ 😄觉得MeterSphere好用就来 + https://github.com/metersphere/metersphere + + 点个star吧!
😊 MeterSphere温馨提醒 —— 多喝热水哟! @@ -19,25 +27,25 @@ - + - + - + - + - - + + - + @@ -48,7 +56,7 @@