From 9566ef2589d227f71c73f6adbefb18d90317534e Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 2 Apr 2024 11:06:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=88=E5=88=A0=E9=99=A4=E5=9C=BA=E6=99=AF?= =?UTF-8?q?=EF=BC=8C=E5=9C=A8=E5=88=A0=E9=99=A4=E6=A8=A1=E5=9D=97=EF=BC=8C?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=8D=E5=9C=A8=E6=9C=AA=E8=A7=84=E5=88=92?= =?UTF-8?q?=E9=87=8C=E9=9D=A2=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1038312 --user=王孝刚 【接口测试】场景-回收站-a模块有a场景-删除a场景-再删除a模块-回收站显示该场景错误,未显示进入未规划场景内 https://www.tapd.cn/55049933/s/1486010 --- .../api/service/definition/ApiDefinitionModuleService.java | 2 +- .../api/service/scenario/ApiScenarioModuleService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiDefinitionModuleService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiDefinitionModuleService.java index 8563639ab1..40cd97e181 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiDefinitionModuleService.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiDefinitionModuleService.java @@ -178,7 +178,7 @@ public class ApiDefinitionModuleService extends ModuleTreeService { public void batchDeleteData(List ids, String userId, String projectId) { ApiDefinitionExample example = new ApiDefinitionExample(); - example.createCriteria().andModuleIdIn(ids).andDeletedEqualTo(false); + example.createCriteria().andModuleIdIn(ids); long apiCount = apiDefinitionMapper.countByExample(example); while (apiCount > 0) { PageHelper.startPage(1, 500); diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioModuleService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioModuleService.java index 0b0de685d3..8b2d6fb67a 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioModuleService.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioModuleService.java @@ -170,7 +170,7 @@ public class ApiScenarioModuleService extends ModuleTreeService { public void batchDeleteData(List ids, String userId, String projectId) { ApiScenarioExample example = new ApiScenarioExample(); - example.createCriteria().andModuleIdIn(ids).andDeletedEqualTo(false); + example.createCriteria().andModuleIdIn(ids); long apiCount = apiScenarioMapper.countByExample(example); while (apiCount > 0) { PageHelper.startPage(1, 500);