From 795c12813639ff0501a10c89f45272277609edf0 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Fri, 20 Sep 2024 13:12:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A1=B9=E7=9B=AE=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8C=E6=AD=A5=E9=9C=80=E6=B1=82=E9=83=A8?= =?UTF-8?q?=E5=88=86=E9=9C=80=E6=B1=82=E6=9C=AA=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=1046816 --user郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001046816 --- .../io/metersphere/functional/service/DemandSyncService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/DemandSyncService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/DemandSyncService.java index 6941360972..b543662895 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/DemandSyncService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/DemandSyncService.java @@ -97,10 +97,12 @@ public class DemandSyncService { demandRelateQueryRequest.setRelateDemandIds(new ArrayList<>(demandIds)); PlatformDemandDTO demands = platform.getDemands(demandRelateQueryRequest); if (demands == null) { + deleteIds.addAll(demandIds); return; } List demandList = demands.getList(); if (CollectionUtils.isEmpty(demandList)) { + deleteIds.addAll(demandIds); return; } List platformIds = demandList.stream().map(PlatformDemandDTO.Demand::getDemandId).toList();