fix(测试计划): 快捷修改报告名称失败

--bug=1040982 --user=宋昌昌 【测试计划】报告列表-快捷修改报告名称失败 https://www.tapd.cn/55049933/s/1519105
This commit is contained in:
song-cc-rock 2024-05-23 11:58:07 +08:00 committed by 刘瑞斌
parent ec46aedefc
commit d855781507
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ public class TestPlanReportController {
@PostMapping("/rename/{id}")
@Operation(summary = "测试计划-报告-重命名")
@RequiresPermissions(PermissionConstants.TEST_PLAN_REPORT_READ_UPDATE)
@CheckOwner(resourceId = "#request.getId()", resourceType = "test_plan_report")
@CheckOwner(resourceId = "#id", resourceType = "test_plan_report")
@Log(type = OperationLogType.UPDATE, expression = "#msClass.updateLog(#id)", msClass = TestPlanReportLogService.class)
public void rename(@PathVariable String id, @RequestBody Object name) {
testPlanReportService.rename(id, name.toString());