fix(测试跟踪): 关联接口用例SQL报错问题
--bug=1018198 --user=宋昌昌 【测试跟踪】测试用例-关联测试-关联接口用例报sql错 https://www.tapd.cn/55049933/s/1263423
This commit is contained in:
parent
65036684b8
commit
cc7ae74c7f
|
@ -1024,7 +1024,8 @@ public class ApiTestCaseService {
|
|||
public List<ApiTestCase> getApiCaseByIds(List<String> apiCaseIds) {
|
||||
if (CollectionUtils.isNotEmpty(apiCaseIds)) {
|
||||
ApiTestCaseExample example = new ApiTestCaseExample();
|
||||
example.createCriteria().andIdIn(apiCaseIds).andStatusNotEqualTo(CommonConstants.TrashStatus);
|
||||
example.createCriteria().andIdIn(apiCaseIds);
|
||||
example.or().andStatusNotEqualTo(CommonConstants.TrashStatus).andStatusIsNull();
|
||||
return apiTestCaseMapper.selectByExample(example);
|
||||
}
|
||||
return new ArrayList<>();
|
||||
|
|
|
@ -2172,9 +2172,7 @@ public class ApiScenarioService {
|
|||
public List<ApiScenario> getScenarioCaseByIds(List<String> ids) {
|
||||
if (CollectionUtils.isNotEmpty(ids)) {
|
||||
ApiScenarioExample example = new ApiScenarioExample();
|
||||
example.createCriteria()
|
||||
.andIdIn(ids)
|
||||
.andStatusNotEqualTo(CommonConstants.TrashStatus);
|
||||
example.createCriteria().andIdIn(ids).andStatusNotEqualTo(CommonConstants.TrashStatus);
|
||||
return apiScenarioMapper.selectByExample(example);
|
||||
}
|
||||
return new ArrayList<>();
|
||||
|
|
Loading…
Reference in New Issue