fix(测试用例): 关联接口取消协议列表显示问题

--bug=1044475 --user=王旭 【功能用例】用例详情-关联接口用例-取消勾选全部协议后-列表仍展示全部数据 https://www.tapd.cn/55049933/s/1562051
This commit is contained in:
WangXu10 2024-08-13 17:19:10 +08:00 committed by 刘瑞斌
parent 21bcfda4de
commit 15de20c91b
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ public class AssociateApiProvider implements BaseAssociateApiProvider, BaseAssoc
@Override @Override
public List<TestCaseProviderDTO> getApiTestCaseList(String sourceType, String sourceName, String apiCaseColumnName, TestCasePageProviderRequest testCasePageProviderRequest) { public List<TestCaseProviderDTO> getApiTestCaseList(String sourceType, String sourceName, String apiCaseColumnName, TestCasePageProviderRequest testCasePageProviderRequest) {
if (CollectionUtils.isEmpty(testCasePageProviderRequest.getProtocols())) {
return new ArrayList<>();
}
return extApiTestCaseMapper.listByProviderRequest(sourceType, sourceName, apiCaseColumnName, testCasePageProviderRequest, false); return extApiTestCaseMapper.listByProviderRequest(sourceType, sourceName, apiCaseColumnName, testCasePageProviderRequest, false);
} }