From aeb6486e68a6c476274e5ca084f199c25e5d91c7 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Tue, 20 Feb 2024 11:52:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=94=A8=E4=BE=8B=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=B9=E9=87=8F=E5=8F=96=E6=B6=88=E5=85=B3?= =?UTF-8?q?=E8=81=94=E7=94=A8=E4=BE=8B=E6=97=B6=E7=94=A8=E4=BE=8B=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E4=B8=8D=E5=AF=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1035795 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001035795 --- .../functional/service/CaseReviewFunctionalCaseService.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewFunctionalCaseService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewFunctionalCaseService.java index 8e4075ab75..5cbe4ebf2a 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewFunctionalCaseService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewFunctionalCaseService.java @@ -189,7 +189,7 @@ public class CaseReviewFunctionalCaseService { } /** - * 批量删除 + * 批量取消 * * @param request request */ @@ -198,10 +198,12 @@ public class CaseReviewFunctionalCaseService { if (CollectionUtils.isNotEmpty(ids)) { CaseReviewFunctionalCaseExample example = new CaseReviewFunctionalCaseExample(); example.createCriteria().andIdIn(ids); + List caseReviewFunctionalCases = caseReviewFunctionalCaseMapper.selectByExample(example); + List caseIds = caseReviewFunctionalCases.stream().map(CaseReviewFunctionalCase::getCaseId).distinct().toList(); caseReviewFunctionalCaseMapper.deleteByExample(example); Map param = new HashMap<>(); param.put(CaseEvent.Param.REVIEW_ID, request.getReviewId()); - param.put(CaseEvent.Param.CASE_IDS, ids); + param.put(CaseEvent.Param.CASE_IDS, caseIds); param.put(CaseEvent.Param.USER_ID, userId); param.put(CaseEvent.Param.EVENT_NAME, CaseEvent.Event.DISASSOCIATE); provider.updateCaseReview(param);