解决生产环境接口空指针报错
This commit is contained in:
@ -141,8 +141,11 @@ public class SingleSiteServiceImpl implements ISingleSiteService {
|
|||||||
if (!StringUtils.isEmpty(siteId)) {
|
if (!StringUtils.isEmpty(siteId)) {
|
||||||
// 实时有功功率/实时无功功率
|
// 实时有功功率/实时无功功率
|
||||||
SiteMonitorRunningHeadInfoVo tempVo = emsPcsDataMapper.getSiteRunningHeadInfo(siteId);
|
SiteMonitorRunningHeadInfoVo tempVo = emsPcsDataMapper.getSiteRunningHeadInfo(siteId);
|
||||||
siteMonitorRunningHeadInfoVo.setTotalActivePower(tempVo.getTotalActivePower());
|
if (tempVo != null) {
|
||||||
siteMonitorRunningHeadInfoVo.setTotalReactivePower(tempVo.getTotalReactivePower());
|
siteMonitorRunningHeadInfoVo.setTotalActivePower(tempVo.getTotalActivePower());
|
||||||
|
siteMonitorRunningHeadInfoVo.setTotalReactivePower(tempVo.getTotalReactivePower());
|
||||||
|
}
|
||||||
|
|
||||||
// 今日充放电
|
// 今日充放电
|
||||||
LocalDateTime now = LocalDateTime.now();
|
LocalDateTime now = LocalDateTime.now();
|
||||||
LocalDateTime startOfDay = now.with(LocalTime.MIN);
|
LocalDateTime startOfDay = now.with(LocalTime.MIN);
|
||||||
|
|||||||
Reference in New Issue
Block a user