模块新增温度数据
This commit is contained in:
@@ -29,6 +29,9 @@ public class EachModuleVO implements Serializable {
|
||||
@ApiModelProperty("模块输出电流")
|
||||
List<DataVo> modOutList;
|
||||
|
||||
@ApiModelProperty("模块温度")
|
||||
List<DataVo> temperatureList;
|
||||
|
||||
@Data
|
||||
public static class HarmonicVo implements Serializable {
|
||||
|
||||
|
||||
@@ -249,6 +249,7 @@ public class DataServiceImpl implements IDataService {
|
||||
|
||||
List<EachModuleVO.DataVo> list2 = new ArrayList<>();
|
||||
List<EachModuleVO.DataVo> list3 = new ArrayList<>();
|
||||
List<EachModuleVO.DataVo> list4 = new ArrayList<>();
|
||||
|
||||
//获取模块状态数据
|
||||
List<StatisticalDataDTO> dto = commonService.getEachModule(commonQueryParam);
|
||||
@@ -279,8 +280,14 @@ public class DataServiceImpl implements IDataService {
|
||||
vo2.setPhasicType(item.getPhaseType());
|
||||
vo2.setData(Objects.isNull(item.getAvgValue()) ? 3.14159 : Double.parseDouble(df.format(item.getAvgValue())));
|
||||
|
||||
EachModuleVO.DataVo vo3 = new EachModuleVO.DataVo();
|
||||
vo3.setTime(LocalDateTime.ofInstant(item.getTime().minus(8, ChronoUnit.HOURS), ZoneId.systemDefault()));
|
||||
vo3.setPhasicType(item.getPhaseType());
|
||||
vo3.setData(Objects.isNull(item.getMinValue()) ? 3.14159 : Double.parseDouble(df.format(item.getAvgValue())));
|
||||
|
||||
list2.add(vo1);
|
||||
list3.add(vo2);
|
||||
list4.add(vo3);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -372,6 +379,7 @@ public class DataServiceImpl implements IDataService {
|
||||
}
|
||||
moduleVO.setModOutList(list2);
|
||||
moduleVO.setLoadList(list3);
|
||||
moduleVO.setTemperatureList(list4);
|
||||
result.add(moduleVO);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user