|
@@ -515,6 +515,10 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
AlgorithmPO algorithmBaseInfoVo = getAlgorithmInfo(po);
|
|
AlgorithmPO algorithmBaseInfoVo = getAlgorithmInfo(po);
|
|
|
|
|
|
ProjectReportVo projectReportVo = new ProjectReportVo();
|
|
ProjectReportVo projectReportVo = new ProjectReportVo();
|
|
|
|
+
|
|
|
|
+ projectReportVo.setProjectId(po.getProjectId());
|
|
|
|
+ projectReportVo.setProjectName(po.getProjectName());
|
|
|
|
+
|
|
projectReportVo.setAlgorithmName(algorithmBaseInfoVo.getAlgorithmName());
|
|
projectReportVo.setAlgorithmName(algorithmBaseInfoVo.getAlgorithmName());
|
|
// Double algorithmScore = po.getAlgorithmScore();
|
|
// Double algorithmScore = po.getAlgorithmScore();
|
|
// projectReportVo.setAlgorithmScore(algorithmScore);
|
|
// projectReportVo.setAlgorithmScore(algorithmScore);
|
|
@@ -1918,9 +1922,8 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
ResponseBodyVO bodyVO = selectProjectReportById(param);
|
|
ResponseBodyVO bodyVO = selectProjectReportById(param);
|
|
ProjectReportVo vo = (ProjectReportVo)bodyVO.getInfo();
|
|
ProjectReportVo vo = (ProjectReportVo)bodyVO.getInfo();
|
|
|
|
|
|
-
|
|
|
|
//下载
|
|
//下载
|
|
- String fileName="评价报告";
|
|
|
|
|
|
+ String fileName=vo.getProjectId()+"_"+vo.getProjectName();
|
|
response.setContentType("application/x-download");
|
|
response.setContentType("application/x-download");
|
|
response.addHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(fileName, "UTF-8") + ".pdf");
|
|
response.addHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(fileName, "UTF-8") + ".pdf");
|
|
os = new BufferedOutputStream(response.getOutputStream());
|
|
os = new BufferedOutputStream(response.getOutputStream());
|
|
@@ -1982,7 +1985,7 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
//表头
|
|
//表头
|
|
PdfPTable pdfPTable = new PdfPTable(5);
|
|
PdfPTable pdfPTable = new PdfPTable(5);
|
|
pdfPTable.setHeaderRows(1);//换页每页显示表头
|
|
pdfPTable.setHeaderRows(1);//换页每页显示表头
|
|
- addTitleList(pdfPTable, font, new String[]{"测试项目","场景数量","测试权重","测试得分","得分率"});
|
|
|
|
|
|
+ addTitleList(pdfPTable, font, new String[]{"测试项目","场景数量","测试权重(%)","测试得分","得分率"});
|
|
|
|
|
|
//数据
|
|
//数据
|
|
List<AlgorithmScoreVo> algorithmScoreList = vo.getAlgorithmScoreList();
|
|
List<AlgorithmScoreVo> algorithmScoreList = vo.getAlgorithmScoreList();
|