模块新增温度数据
This commit is contained in:
@@ -280,14 +280,15 @@ public class DataServiceImpl implements IDataService {
|
|||||||
vo2.setPhasicType(item.getPhaseType());
|
vo2.setPhasicType(item.getPhaseType());
|
||||||
vo2.setData(Objects.isNull(item.getAvgValue()) ? 3.14159 : Double.parseDouble(df.format(item.getAvgValue())));
|
vo2.setData(Objects.isNull(item.getAvgValue()) ? 3.14159 : Double.parseDouble(df.format(item.getAvgValue())));
|
||||||
|
|
||||||
|
if (Objects.equals(item.getPhaseType(),"M")) {
|
||||||
EachModuleVO.DataVo vo3 = new EachModuleVO.DataVo();
|
EachModuleVO.DataVo vo3 = new EachModuleVO.DataVo();
|
||||||
vo3.setTime(LocalDateTime.ofInstant(item.getTime().minus(8, ChronoUnit.HOURS), ZoneId.systemDefault()));
|
vo3.setTime(LocalDateTime.ofInstant(item.getTime().minus(8, ChronoUnit.HOURS), ZoneId.systemDefault()));
|
||||||
vo3.setPhasicType(item.getPhaseType());
|
vo3.setPhasicType(item.getPhaseType());
|
||||||
vo3.setData(Objects.isNull(item.getMinValue()) ? 3.14159 : Double.parseDouble(df.format(item.getMinValue())));
|
vo3.setData(Objects.isNull(item.getMinValue()) ? 3.14159 : Double.parseDouble(df.format(item.getMinValue())));
|
||||||
|
list4.add(vo3);
|
||||||
|
}
|
||||||
list2.add(vo1);
|
list2.add(vo1);
|
||||||
list3.add(vo2);
|
list3.add(vo2);
|
||||||
list4.add(vo3);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user