报告逻辑

This commit is contained in:
even 2025-07-31 10:56:44 +08:00
parent 8b1a9a0235
commit 67cf21fa3b
2 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ public class SastBinaryWorker extends BaseWorker {
sastReportCreateReq.setFormat(SastConstant.REPORT_FORMAT_PDF);
sastReportCreateReq.setApplicationIds(Collections.singletonList(applicationId));
log.info("获取报告请求参数{}",JSON.toJSONString(sastReportCreateReq));
return sastService.reportIndex(sastReportCreateReq);
return sastService.reportDownload(sastService.reportIndex(sastReportCreateReq));
}
private JSONObject getJSONString(String reportId){
return sastService.jsonReportDownload(reportId);

View File

@ -166,7 +166,7 @@ public class SastWorker extends BaseWorker {
sastReportCreateReq.setFormat(SastConstant.REPORT_FORMAT_PDF);
sastReportCreateReq.setApplicationIds(Collections.singletonList(applicationId));
log.info("获取报告请求参数{}",JSON.toJSONString(sastReportCreateReq));
return sastService.reportIndex(sastReportCreateReq);
return sastService.reportDownload(sastService.reportIndex(sastReportCreateReq));
}
private JSONObject getJSONString(String reportId){
return sastService.jsonReportDownload(reportId);