fix(接口测试): 修复先删除场景,在删除模块,数据不在未规划里面的缺陷

--bug=1038312 --user=王孝刚
【接口测试】场景-回收站-a模块有a场景-删除a场景-再删除a模块-回收站显示该场景错误,未显示进入未规划场景内
https://www.tapd.cn/55049933/s/1486010
This commit is contained in:
wxg0103 2024-04-02 11:06:51 +08:00 committed by 刘瑞斌
parent 0beb6ebc10
commit 9566ef2589
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ public class ApiDefinitionModuleService extends ModuleTreeService {
public void batchDeleteData(List<String> ids, String userId, String projectId) { public void batchDeleteData(List<String> ids, String userId, String projectId) {
ApiDefinitionExample example = new ApiDefinitionExample(); ApiDefinitionExample example = new ApiDefinitionExample();
example.createCriteria().andModuleIdIn(ids).andDeletedEqualTo(false); example.createCriteria().andModuleIdIn(ids);
long apiCount = apiDefinitionMapper.countByExample(example); long apiCount = apiDefinitionMapper.countByExample(example);
while (apiCount > 0) { while (apiCount > 0) {
PageHelper.startPage(1, 500); PageHelper.startPage(1, 500);

View File

@ -170,7 +170,7 @@ public class ApiScenarioModuleService extends ModuleTreeService {
public void batchDeleteData(List<String> ids, String userId, String projectId) { public void batchDeleteData(List<String> ids, String userId, String projectId) {
ApiScenarioExample example = new ApiScenarioExample(); ApiScenarioExample example = new ApiScenarioExample();
example.createCriteria().andModuleIdIn(ids).andDeletedEqualTo(false); example.createCriteria().andModuleIdIn(ids);
long apiCount = apiScenarioMapper.countByExample(example); long apiCount = apiScenarioMapper.countByExample(example);
while (apiCount > 0) { while (apiCount > 0) {
PageHelper.startPage(1, 500); PageHelper.startPage(1, 500);