fix(接口测试): 修复选中一条接口用例使用批量编辑用例等级,结果全部用例被修改的缺陷

--bug=1019614 --user=王孝刚 [接口测试]
github#19689选中一条接口用例使用批量编辑修改用例等级,结果所有用例的用例等级全都被修改了
https://www.tapd.cn/55049933/s/1295263
This commit is contained in:
wxg0103 2022-11-14 10:24:24 +08:00 committed by wxg0103
parent 0c7ee30f62
commit bc9998b9ec
1 changed files with 1 additions and 1 deletions

View File

@ -712,7 +712,7 @@ public class ApiTestCaseService {
public void editApiBathByParam(ApiTestBatchRequest request) {
List<String> ids = request.getIds();
if (request.isSelectAll()) {
ids = this.getAllApiCaseIdsByFontedSelect(request.getFilters(), request.getModuleIds(), request.getName(), request.getProjectId(), request.getProtocol(), request.getUnSelectIds(), request.getStatus(), null, request.getCombine());
ids = this.getAllApiCaseIdsByFontedSelect(request.getFilters(), request.getModuleIds(), request.getName(), request.getProjectId(), request.getProtocol(), request.getUnSelectIds(), request.getStatus(), request.getApiDefinitionId(), request.getCombine());
}
ApiTestCaseExample apiDefinitionExample = new ApiTestCaseExample();
apiDefinitionExample.createCriteria().andIdIn(ids);