0611 ljc report模块修改

This commit is contained in:
HopeLi 2025-06-11 15:39:02 +08:00
parent 3693633d9e
commit b9b611ad7e
2 changed files with 4 additions and 3 deletions

View File

@ -70,9 +70,9 @@ public class ReportController {
}
@GetMapping(path = "/findByScaTaskId")
public CommonResult<ReportTaskResp> findByScaTaskId(@RequestParam @NotNull String taskId) throws Exception {
ReportTaskResp taskResp = reportService.findByScaTaskId(taskId);
@PostMapping(path = "/findByScaTaskId")
public CommonResult<ReportTaskResp> findByScaTaskId(@RequestBody @Valid BaseIdReq req) throws Exception {
ReportTaskResp taskResp = reportService.findByScaTaskId(req.getTaskId());
return CommonResult.success(taskResp);
}

View File

@ -18,5 +18,6 @@ public class BaseIdReq {
private String pid;
private String childId;
private String projectId;
private String taskId;
private List<Integer> reportIds;
}