fix(接口测试): mock测试查询期望的时候过滤掉非当前版本的接口数据

mock测试查询期望的时候过滤掉非当前版本的接口数据
This commit is contained in:
song-tianyang 2022-07-14 17:04:08 +08:00 committed by TIanyang
parent 823e92b8f8
commit 9e07c393eb
1 changed files with 1 additions and 1 deletions

View File

@ -2088,7 +2088,7 @@ public class ApiDefinitionService {
return new ArrayList<>();
} else {
ApiDefinitionExample example = new ApiDefinitionExample();
example.createCriteria().andMethodEqualTo(method).andProjectIdEqualTo(projectId).andStatusNotEqualTo("Trash").andProtocolEqualTo("HTTP");
example.createCriteria().andMethodEqualTo(method).andProjectIdEqualTo(projectId).andStatusNotEqualTo("Trash").andProtocolEqualTo("HTTP").andLatestEqualTo(true);
List<ApiDefinition> apiList = apiDefinitionMapper.selectByExample(example);
List<String> apiIdList = new ArrayList<>();
boolean urlSuffixEndEmpty = false;