parent
58067129d9
commit
a0c75660c5
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue