完成专项分析联调
This commit is contained in:
@@ -44,14 +44,13 @@ public class SpThroughServiceImpl extends MppServiceImpl<SpThroughMapper, SpThro
|
||||
String treeId = dicTreeId(spThroughParam);
|
||||
DictData dip = dicDataFeignClient.getDicDataByCode(DicDataEnum.VOLTAGE_DIP.getCode()).getData();
|
||||
if (ObjectUtil.isNotNull(dip)) {
|
||||
spThroughVO.setHighPressure(eventCount(spThroughParam, treeId, dip) + "");
|
||||
spThroughVO.setLowPressure(eventCount(spThroughParam, treeId, dip) + "");
|
||||
}
|
||||
DictData rise = dicDataFeignClient.getDicDataByCode(DicDataEnum.VOLTAGE_RISE.getCode()).getData();
|
||||
if (ObjectUtil.isNotNull(rise)) {
|
||||
spThroughVO.setLowPressure(eventCount(spThroughParam, treeId, rise) + "");
|
||||
spThroughVO.setHighPressure(eventCount(spThroughParam, treeId, rise) + "");
|
||||
}
|
||||
}
|
||||
|
||||
return spThroughVO;
|
||||
}
|
||||
|
||||
|
||||
@@ -53,10 +53,7 @@ import java.util.stream.Collectors;
|
||||
public class PowerStatisticsServiceImpl implements PowerStatisticsService {
|
||||
|
||||
private final RActivePowerRangeService rActivePowerRangeService;
|
||||
private final CommonService commonService;
|
||||
private final DecimalFormat df = new DecimalFormat(Param.DECIMAL_FORMATSTR);
|
||||
private final DecimalFormat dftwo = new DecimalFormat(Param.DECIMAL_FORMATTWOSTR);
|
||||
private final EpdFeignClient epdFeignClient;
|
||||
private final DataVFeignClient dataVFeignClient;
|
||||
private final DataIFeignClient dataIFeignClient;
|
||||
private final DataPltFeignClient dataPltFeignClient;
|
||||
@@ -140,8 +137,6 @@ public class PowerStatisticsServiceImpl implements PowerStatisticsService {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
return record.stream().sorted(Comparator.comparing(PowerStatisticsTargetVO::getTime)).collect(Collectors.toList());
|
||||
}
|
||||
@@ -298,7 +293,7 @@ public class PowerStatisticsServiceImpl implements PowerStatisticsService {
|
||||
if (timeCross.contains(time)) {
|
||||
return 1;
|
||||
}
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user