fix(接口测试): mock测试查询期望的时候过滤掉非当前版本的接口数据
mock测试查询期望的时候过滤掉非当前版本的接口数据
This commit is contained in:
parent
823e92b8f8
commit
9e07c393eb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue