|
@@ -146,7 +146,9 @@ public class AnalysisServiceImpl implements AnalysisService {
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
public List<AnalysisResultVo> analysisResultList(AnalysisResultDto analysisResultDto) {
|
|
public List<AnalysisResultVo> analysisResultList(AnalysisResultDto analysisResultDto) {
|
|
- return analysisResultMapper.selectByCondition(analysisResultDto);
|
|
|
|
|
|
+ List<AnalysisResultVo> resultVos = analysisResultMapper.selectByCondition(analysisResultDto);
|
|
|
|
+ resultVos.stream().forEach(item -> item.setReportVos(resultReportMapper.selectByBatchCode(item.getBatchCode())));
|
|
|
|
+ return resultVos;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -256,16 +258,13 @@ public class AnalysisServiceImpl implements AnalysisService {
|
|
List<AnalysisDiagramRelationVo> newDiagramRelationVos = getNewDiagramRelations(batchCode, analysisTypeCode, fieldEngineCode,isIntranet);
|
|
List<AnalysisDiagramRelationVo> newDiagramRelationVos = getNewDiagramRelations(batchCode, analysisTypeCode, fieldEngineCode,isIntranet);
|
|
//查询评论
|
|
//查询评论
|
|
List<AnalysisCommentDescriptionVo> commentDescriptionVos = commentDescriptionMapper.selecByBatchCodeAndAnalysisTypeCode(batchCode,analysisTypeCode);
|
|
List<AnalysisCommentDescriptionVo> commentDescriptionVos = commentDescriptionMapper.selecByBatchCodeAndAnalysisTypeCode(batchCode,analysisTypeCode);
|
|
- //查询分析报告
|
|
|
|
- List<AnalysisResultReportVo> reportVos = resultReportMapper.selectByBatchCode(batchCode);
|
|
|
|
//根据分析类型设置分析结果
|
|
//根据分析类型设置分析结果
|
|
analysisTypeVos.forEach(analysisTypeVo -> {
|
|
analysisTypeVos.forEach(analysisTypeVo -> {
|
|
//设置相应参数
|
|
//设置相应参数
|
|
AnalysisDetailVo analysisDetailVo = getAnalysisDetailVo(analysisTypeVo,
|
|
AnalysisDetailVo analysisDetailVo = getAnalysisDetailVo(analysisTypeVo,
|
|
newGeneralFileVos,
|
|
newGeneralFileVos,
|
|
newDiagramRelationVos,
|
|
newDiagramRelationVos,
|
|
- commentDescriptionVos,
|
|
|
|
- reportVos);
|
|
|
|
|
|
+ commentDescriptionVos);
|
|
if(analysisDetailVo != null){
|
|
if(analysisDetailVo != null){
|
|
analysisDetailVos.add(analysisDetailVo);
|
|
analysisDetailVos.add(analysisDetailVo);
|
|
}
|
|
}
|
|
@@ -626,8 +625,7 @@ public class AnalysisServiceImpl implements AnalysisService {
|
|
private AnalysisDetailVo getAnalysisDetailVo(AnalysisTypeVo analysisTypeVo,
|
|
private AnalysisDetailVo getAnalysisDetailVo(AnalysisTypeVo analysisTypeVo,
|
|
List<AnalysisGeneralFileVo> newGeneralFileVos,
|
|
List<AnalysisGeneralFileVo> newGeneralFileVos,
|
|
List<AnalysisDiagramRelationVo> newDiagramRelationVos,
|
|
List<AnalysisDiagramRelationVo> newDiagramRelationVos,
|
|
- List<AnalysisCommentDescriptionVo> commentDescriptionVos,
|
|
|
|
- List<AnalysisResultReportVo> reportVos){
|
|
|
|
|
|
+ List<AnalysisCommentDescriptionVo> commentDescriptionVos){
|
|
List<AnalysisGeneralFileVo> generalFileVos = null;
|
|
List<AnalysisGeneralFileVo> generalFileVos = null;
|
|
if(CollectionUtils.isNotEmpty(newGeneralFileVos)) {
|
|
if(CollectionUtils.isNotEmpty(newGeneralFileVos)) {
|
|
generalFileVos = newGeneralFileVos.stream().filter(analysisGeneralFileVo -> analysisGeneralFileVo.getAnalysisTypeCode().equals(analysisTypeVo.getTypeCode())).collect(Collectors.toList());
|
|
generalFileVos = newGeneralFileVos.stream().filter(analysisGeneralFileVo -> analysisGeneralFileVo.getAnalysisTypeCode().equals(analysisTypeVo.getTypeCode())).collect(Collectors.toList());
|
|
@@ -644,8 +642,7 @@ public class AnalysisServiceImpl implements AnalysisService {
|
|
.setAnalysisTypeName(analysisTypeVo.getTypeName())
|
|
.setAnalysisTypeName(analysisTypeVo.getTypeName())
|
|
.setGeneralFiles(generalFileVos)
|
|
.setGeneralFiles(generalFileVos)
|
|
.setDiagramRelations(diagramRelationVos)
|
|
.setDiagramRelations(diagramRelationVos)
|
|
- .setCommentDescriptionVos(commentDescriptionVos)
|
|
|
|
- .setReportVos(reportVos);
|
|
|
|
|
|
+ .setCommentDescriptionVos(commentDescriptionVos);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|