refactor(测试计划): 修改测试计划报告入参名称

Closes 29551
This commit is contained in:
Jianguo-Genius 2024-07-18 15:35:36 +08:00 committed by 建国
parent 58067129d9
commit a0c75660c5
1 changed files with 5 additions and 6 deletions

View File

@ -67,13 +67,12 @@ public class TestPlanReportController {
return testPlanReportService.getReport(reportId); return testPlanReportService.getReport(reportId);
} }
@GetMapping("/status/{planId}") @GetMapping("/status/{reportId}")
@RequiresPermissions(PermissionConstants.PROJECT_TRACK_REPORT_READ) @RequiresPermissions(PermissionConstants.PROJECT_TRACK_REPORT_READ)
public String getStatus(@PathVariable String planId) { public String getStatus(@PathVariable String reportId) {
testPlanReportService.checkOwner(planId, SessionUtils.getUserId()); testPlanReportService.checkOwner(reportId, SessionUtils.getUserId());
TestPlanReport report = testPlanReportService.getTestPlanReport(planId); TestPlanReport report = testPlanReportService.getTestPlanReport(reportId);
String status = report.getStatus(); return report.getStatus();
return status;
} }
@PostMapping("/delete") @PostMapping("/delete")