fix(测试计划): 修复测试计划校验资源报错的缺陷
This commit is contained in:
parent
f38a2de3a5
commit
a00711c533
|
@ -102,7 +102,7 @@ public class TestPlanFunctionalCaseController {
|
|||
|
||||
@PostMapping("/associate/bug/page")
|
||||
@Operation(summary = "测试计划-计划详情-功能用例-获取缺陷列表")
|
||||
@CheckOwner(resourceId = "#request.getProjectId", resourceType = "project")
|
||||
@CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project")
|
||||
@RequiresPermissions(PermissionConstants.TEST_PLAN_READ)
|
||||
public Pager<List<BugProviderDTO>> associateBugList(@Validated @RequestBody BugPageProviderRequest request) {
|
||||
Page<Object> page = PageHelper.startPage(request.getCurrent(), request.getPageSize());
|
||||
|
@ -112,7 +112,7 @@ public class TestPlanFunctionalCaseController {
|
|||
@PostMapping("/associate/bug")
|
||||
@Operation(summary = "测试计划-计划详情-功能用例-关联其他用例-关联缺陷")
|
||||
@RequiresPermissions(PermissionConstants.TEST_PLAN_READ_EXECUTE)
|
||||
@CheckOwner(resourceId = "#request.getTestPlanCaseId()", resourceType = "test_plan_functional_case")
|
||||
@CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project")
|
||||
public void associateBug(@Validated @RequestBody TestPlanCaseAssociateBugRequest request) {
|
||||
testPlanFunctionalCaseService.associateBug(request, SessionUtils.getUserId());
|
||||
}
|
||||
|
@ -121,7 +121,6 @@ public class TestPlanFunctionalCaseController {
|
|||
@Operation(summary = "用例管理-功能用例-关联其他用例-取消关联缺陷")
|
||||
@RequiresPermissions(PermissionConstants.TEST_PLAN_READ_EXECUTE)
|
||||
@Log(type = OperationLogType.DISASSOCIATE, expression = "#msClass.disassociateBugLog(#id)", msClass = TestPlanFunctionalCaseService.class)
|
||||
@CheckOwner(resourceId = "#id", resourceType = "bug_relation_case")
|
||||
public void disassociateBug(@PathVariable String id) {
|
||||
testPlanFunctionalCaseService.disassociateBug(id);
|
||||
}
|
||||
|
@ -145,7 +144,7 @@ public class TestPlanFunctionalCaseController {
|
|||
@PostMapping("/has/associate/bug/page")
|
||||
@Operation(summary = "测试计划-计划详情-功能用例-获取已关联的缺陷列表")
|
||||
@RequiresPermissions(PermissionConstants.TEST_PLAN_READ_EXECUTE)
|
||||
@CheckOwner(resourceId = "#request.getTestPlanCaseId()", resourceType = "test_plan_functional_case")
|
||||
@CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project")
|
||||
public Pager<List<BugProviderDTO>> getAssociateBugList(@Validated @RequestBody AssociateBugPageRequest request) {
|
||||
Page<Object> page = PageHelper.startPage(request.getCurrent(), request.getPageSize());
|
||||
return PageUtils.setPageInfo(page, testPlanFunctionalCaseService.hasAssociateBugPage(request));
|
||||
|
|
Loading…
Reference in New Issue