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