From 5f60e3116bc4998e9c9a1b858fe9b414b75c7a7b Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Wed, 12 Jan 2022 15:36:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E6=8A=A5=E5=91=8A=E7=9C=8B=E4=B8=8D=E5=88=B0=E6=80=A7?= =?UTF-8?q?=E8=83=BD=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复测试计划执行报告看不到性能测试用例的问题 --- .../mapper/ext/ExtTestPlanLoadCaseMapper.java | 8 ++-- .../mapper/ext/ExtTestPlanLoadCaseMapper.xml | 13 +++--- .../service/TestPlanLoadCaseService.java | 4 +- .../track/service/TestPlanService.java | 36 +++++++-------- .../detail/component/LoadFailureResult.vue | 44 +++++++++++-------- 5 files changed, 55 insertions(+), 50 deletions(-) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.java b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.java index 6e54df5e65..086e59a6b2 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.java +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.java @@ -11,6 +11,7 @@ import java.util.List; public interface ExtTestPlanLoadCaseMapper { List selectIdsNotInPlan(@Param("request") LoadCaseRequest request); + List selectTestPlanLoadCaseList(@Param("request") LoadCaseRequest request); List selectByIdIn(@Param("request") LoadCaseRequest request); @@ -26,15 +27,16 @@ public interface ExtTestPlanLoadCaseMapper { List selectForPlanReport(String planId); List getCases(@Param("planId") String planId, @Param("status") String status); - List getCasesByIds(@Param("ids") Collection ids, @Param("planId") String planId, @Param("status") String status); + + List getCasesByIds(@Param("ids") Collection ids, @Param("reportIds") Collection reportIds); List selectPlanIds(); List getIdsOrderByUpdateTime(@Param("planId") String planId); - Long getPreOrder(@Param("planId")String planId, @Param("baseOrder") Long baseOrder); + Long getPreOrder(@Param("planId") String planId, @Param("baseOrder") Long baseOrder); - Long getLastOrder(@Param("planId")String planId, @Param("baseOrder") Long baseOrder); + Long getLastOrder(@Param("planId") String planId, @Param("baseOrder") Long baseOrder); List selectIdByLoadCaseReportIdAndStatusIsRun(String reportId); diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.xml index d4de7883d7..4e21eff534 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanLoadCaseMapper.xml @@ -278,17 +278,18 @@