fix(测试跟踪): 测试计划关联用例,高级搜索多选框自定义字段搜索失败

--bug=1024933 --user=陈建星 【测试跟踪】github#23218,筛选多选下拉列表的值,报SQL异常 https://www.tapd.cn/55049933/s/1356789
This commit is contained in:
chenjianxing 2023-03-28 18:36:41 +08:00 committed by jianxing
parent 1a7cd30872
commit 5a47d8138c
2 changed files with 3 additions and 0 deletions

View File

@ -369,6 +369,7 @@ public class TestCaseNodeService extends NodeTreeService<TestCaseNodeDTO> {
if (testPlanService.isAllowedRepeatCase(request.getPlanId())) {
request.setRepeatCase(true);
}
ServiceUtils.setBaseQueryRequestCustomMultipleFields(request);
List<TestCaseNodeDTO> countMNodes = extTestCaseMapper.getTestPlanRelateCountNodes(request);
List<TestCaseNodeDTO> testCaseNodes = extTestCaseNodeMapper.getNodeTreeByProjectId(request.getProjectId());
return getNodeTreeWithPruningTreeByCaseCount(testCaseNodes, getCountMap(countMNodes));
@ -378,6 +379,7 @@ public class TestCaseNodeService extends NodeTreeService<TestCaseNodeDTO> {
request.setNodeIds(null);
List<TestCaseNodeDTO> countMNodes = extTestCaseMapper.getTestReviewRelateCountNodes(request);
List<TestCaseNodeDTO> testCaseNodes = extTestCaseNodeMapper.getNodeTreeByProjectId(request.getProjectId());
ServiceUtils.setBaseQueryRequestCustomMultipleFields(request);
return getNodeTreeWithPruningTreeByCaseCount(testCaseNodes, getCountMap(countMNodes));
}

View File

@ -973,6 +973,7 @@ public class TestCaseService {
}
public List<TestCaseDTO> getTestCaseByNotInPlan(QueryTestCaseRequest request) {
ServiceUtils.setBaseQueryRequestCustomMultipleFields(request);
return extTestCaseMapper.getTestCaseByNotInPlan(request);
}