From cf92062657bfeaa1f70f0b094cad51988dc4a795 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Mon, 10 Jan 2022 18:07:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1009499 --user=lyh 【github#9167】测试计划报告批量删除功能bug https://www.tapd.cn/55049933/s/1090099 Closes #9167 --- .../metersphere/track/service/TestPlanReportService.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanReportService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanReportService.java index d6a6ebc3f9..936fcdc441 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanReportService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanReportService.java @@ -980,7 +980,7 @@ public class TestPlanReportService { public void delete(QueryTestPlanReportRequest request) { List deleteReportIds = request.getDataIds(); if (request.isSelectAllDate()) { - deleteReportIds = this.getAllApiIdsByFontedSelect(request.getFilters(), request.getName(), request.getProjectId(), request.getUnSelectIds()); + deleteReportIds = this.getAllApiIdsByFontedSelect(request.getFilters(), request.getName(), request.getProjectId(), request.getUnSelectIds(), request.getCombine()); } if (CollectionUtils.isNotEmpty(deleteReportIds)) { TestPlanReportExample deleteReportExample = new TestPlanReportExample(); @@ -998,12 +998,15 @@ public class TestPlanReportService { } } - private List getAllApiIdsByFontedSelect(Map> filters, String name, String projectId, List unSelectIds) { + private List getAllApiIdsByFontedSelect(Map> filters, String name, String projectId, List unSelectIds, Map combine) { QueryTestPlanReportRequest request = new QueryTestPlanReportRequest(); request.setFilters(filters); request.setName(name); request.setProjectId(projectId); request.setWorkspaceId(SessionUtils.getCurrentWorkspaceId()); + if (combine != null) { + request.setCombine(combine); + } List resList = extTestPlanReportMapper.list(request); List ids = new ArrayList<>(0); if (!resList.isEmpty()) {