This commit is contained in:
wurui
2023-04-06 20:02:05 +08:00
parent 836565c1cf
commit 989eb31a10

View File

@@ -77,12 +77,10 @@ public class THDistortionServiceImpl implements THDistortionService {
//查找畸变率 //查找畸变率
List<PublicDTO> condition = getCondition(lineIndexes, thDistortionParam.getSearchBeginTime(), thDistortionParam.getSearchEndTime()); List<PublicDTO> condition = getCondition(lineIndexes, thDistortionParam.getSearchBeginTime(), thDistortionParam.getSearchEndTime());
if(CollUtil.isNotEmpty(condition)){
thDistortionVO.setDistortion(condition.stream().mapToDouble(PublicDTO::getData).average().orElse(3.14159)); thDistortionVO.setDistortion(condition.stream().mapToDouble(PublicDTO::getData).average().orElse(3.14159));
//组装父级数据树 //组装父级数据树
List<THDistortionVO> treeList = getTreeData(lineIndexes, thDistortionParam); List<THDistortionVO> treeList = getTreeData(lineIndexes, thDistortionParam);
thDistortionVO.setChildren(treeList); thDistortionVO.setChildren(treeList);
}
} }
thDistortionVOS.add(thDistortionVO); thDistortionVOS.add(thDistortionVO);