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