fix(测试跟踪): 修复依赖关系&公共用例库高级搜索完整id查询失败问题
--bug=1033123 --user=王旭 【测试跟踪】测试用例-依赖关系-添加关联用例-按照自定义ID/标签搜索失败 https://www.tapd.cn/55049933/s/1447973
This commit is contained in:
parent
9a08bffa99
commit
75db7ff151
|
@ -74,6 +74,10 @@ public class TestCaseController {
|
||||||
@PostMapping("/public/list/{goPage}/{pageSize}")
|
@PostMapping("/public/list/{goPage}/{pageSize}")
|
||||||
@RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_READ)
|
@RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_READ)
|
||||||
public Pager<List<TestCaseDTO>> publicList(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody QueryTestCaseRequest request) {
|
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);
|
testCaseService.setPublicListRequestParam(request);
|
||||||
Page<Object> page = PageHelper.startPage(goPage, pageSize, true);
|
Page<Object> page = PageHelper.startPage(goPage, pageSize, true);
|
||||||
return PageUtils.setPageInfo(page, testCaseService.publicListTestCase(request));
|
return PageUtils.setPageInfo(page, testCaseService.publicListTestCase(request));
|
||||||
|
@ -149,6 +153,10 @@ public class TestCaseController {
|
||||||
@PostMapping("/relationship/relate/{goPage}/{pageSize}")
|
@PostMapping("/relationship/relate/{goPage}/{pageSize}")
|
||||||
@RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_READ)
|
@RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_READ)
|
||||||
public Pager<List<TestCaseDTO>> getRelationshipRelateList(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody QueryTestCaseRequest request) {
|
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);
|
return testCaseService.getRelationshipRelateList(request, goPage, pageSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue