diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/controller/FunctionalTestCaseController.java b/backend/services/case-management/src/main/java/io/metersphere/functional/controller/FunctionalTestCaseController.java index 0b5bc84ea0..928202dadd 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/controller/FunctionalTestCaseController.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/controller/FunctionalTestCaseController.java @@ -86,7 +86,7 @@ public class FunctionalTestCaseController { @PostMapping("/has/associate/case/page") @Operation(summary = "用例管理-功能用例-关联其他用例-获取已关联的用例列表") @RequiresPermissions(value = {PermissionConstants.FUNCTIONAL_CASE_READ, PermissionConstants.FUNCTIONAL_CASE_READ_UPDATE, PermissionConstants.FUNCTIONAL_CASE_READ_DELETE}, logical = Logical.OR) - @CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project") + @CheckOwner(resourceId = "#request.sourceId", resourceType = "functional_case") public Pager> getAssociateOtherCaseList(@Validated @RequestBody FunctionalCaseTestRequest request) { Page page = PageHelper.startPage(request.getCurrent(), request.getPageSize()); return PageUtils.setPageInfo(page, functionalTestCaseService.hasAssociatePage(request)); diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/request/DisassociateOtherCaseRequest.java b/backend/services/case-management/src/main/java/io/metersphere/functional/request/DisassociateOtherCaseRequest.java index 39f851c4d9..1815ff9e7c 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/request/DisassociateOtherCaseRequest.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/request/DisassociateOtherCaseRequest.java @@ -8,7 +8,7 @@ import lombok.Data; @Data public class DisassociateOtherCaseRequest extends BaseFunctionalCaseBatchDTO { - @Schema(description = "功能用例选择的项目id", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(description = "功能用例id", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case.id.not_blank}") private String caseId;