|
@@ -77,7 +77,7 @@ public class FtaAnalysisServiceImpl extends ServiceImpl<FtaAnalysisMapper, FtaAn
|
|
|
analysisTree.setId(analysis.getAnalysisId());
|
|
|
analysisTree.setLabel(analysis.getAnalysisName());
|
|
|
analysisTree.setShowInput(false);
|
|
|
- getFtaAnalysisTree(analysisTree, analysisList, analysisTree.getId());
|
|
|
+ getFtaAnalysisTree(analysisTree, analysisList);
|
|
|
result.add(analysisTree);
|
|
|
}
|
|
|
});
|
|
@@ -85,15 +85,15 @@ public class FtaAnalysisServiceImpl extends ServiceImpl<FtaAnalysisMapper, FtaAn
|
|
|
return ServerResponse.createBySuccess(vos);
|
|
|
}
|
|
|
|
|
|
- public FtaAnalysisTreeVo getFtaAnalysisTree(FtaAnalysisTreeVo ftaAnalysisTreeVo, List<FtaAnalysisTreeVo> allAnalysis, String fatherId) {
|
|
|
+ public FtaAnalysisTreeVo getFtaAnalysisTree(FtaAnalysisTreeVo ftaAnalysisTreeVo, List<FtaAnalysisTreeVo> allAnalysis) {
|
|
|
ArrayList<FtaAnalysisTreeVo> analysisTrees = new ArrayList<>();
|
|
|
allAnalysis.forEach(analysis -> {
|
|
|
- if (StringUtils.isNotBlank(analysis.getFatherId()) && analysis.getFatherId().equals(fatherId)) {
|
|
|
+ if (StringUtils.isNotBlank(analysis.getFatherId()) && analysis.getFatherId().equals(ftaAnalysisTreeVo.getAnalysisId())) {
|
|
|
FtaAnalysisTreeVo analysisTree = new FtaAnalysisTreeVo();
|
|
|
BeanUtils.copyProperties(analysis, analysisTree);
|
|
|
analysisTree.setLabel(analysis.getAnalysisName());
|
|
|
analysisTree.setShowInput(false);
|
|
|
- getFtaAnalysisTree(analysisTree, allAnalysis, analysisTree.getId());
|
|
|
+ getFtaAnalysisTree(analysisTree, allAnalysis);
|
|
|
analysisTrees.add(analysisTree);
|
|
|
}
|
|
|
});
|