fix(测试跟踪): 修复依赖关系&公共用例库高级搜索完整id查询失败问题

--bug=1033123 --user=王旭 【测试跟踪】测试用例-依赖关系-添加关联用例-按照自定义ID/标签搜索失败 https://www.tapd.cn/55049933/s/1447973
This commit is contained in:
WangXu10 2023-12-25 14:48:08 +08:00 committed by 刘瑞斌
parent 9a08bffa99
commit 75db7ff151
1 changed files with 8 additions and 0 deletions

View File

@ -74,6 +74,10 @@ public class TestCaseController {
@PostMapping("/public/list/{goPage}/{pageSize}")
@RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_READ)
public Pager<List<TestCaseDTO>> publicList(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody QueryTestCaseRequest request) {
ProjectApplication projectApplication = projectApplicationService.getProjectApplication(SessionUtils.getCurrentProjectId(), ProjectApplicationType.CASE_CUSTOM_NUM.name());
if (projectApplication != null && StringUtils.isNotEmpty(projectApplication.getTypeValue()) && request.getCombine() != null) {
request.getCombine().put("caseCustomNum", projectApplication.getTypeValue());
}
testCaseService.setPublicListRequestParam(request);
Page<Object> page = PageHelper.startPage(goPage, pageSize, true);
return PageUtils.setPageInfo(page, testCaseService.publicListTestCase(request));
@ -149,6 +153,10 @@ public class TestCaseController {
@PostMapping("/relationship/relate/{goPage}/{pageSize}")
@RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_READ)
public Pager<List<TestCaseDTO>> getRelationshipRelateList(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody QueryTestCaseRequest request) {
ProjectApplication projectApplication = projectApplicationService.getProjectApplication(request.getProjectId(), ProjectApplicationType.CASE_CUSTOM_NUM.name());
if (projectApplication != null && StringUtils.isNotEmpty(projectApplication.getTypeValue()) && request.getCombine() != null) {
request.getCombine().put("caseCustomNum", projectApplication.getTypeValue());
}
return testCaseService.getRelationshipRelateList(request, goPage, pageSize);
}