优化
This commit is contained in:
@ -4,9 +4,8 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.xzzn.ems.domain.EmsBatteryData;
|
||||
import com.xzzn.ems.domain.vo.BMSBatteryClusterDataList;
|
||||
import com.xzzn.ems.domain.vo.BatteryClusterDataDetailVo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import com.xzzn.ems.domain.vo.BatteryDataStatsListVo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
|
@ -52,7 +52,7 @@ public class HomePageServiceImpl implements IHomePageService
|
||||
if (!StringUtils.isEmpty(siteId)) {
|
||||
// 站点基本信息
|
||||
EmsSiteSetting emsSite = emsSiteMapper.selectEmsSiteSettingBySiteId(siteId);
|
||||
if (emsSite != null) {
|
||||
if (StringUtils.isNotEmpty(siteId)) {
|
||||
// 装机功率+装机容量
|
||||
singleSiteBaseInfo.setSiteName(emsSite.getSiteName());
|
||||
singleSiteBaseInfo.setInstalledCap(emsSite.getInstallCapacity());
|
||||
|
@ -169,7 +169,7 @@ public class SingleSiteServiceImpl implements ISingleSiteService {
|
||||
bmsOverViewVoList = emsBatteryStackMapper.selectEmsBatteryStackBySiteId(siteId);
|
||||
if (!CollectionUtils.isEmpty(bmsOverViewVoList)) {
|
||||
for (BMSOverViewVo bmsOverViewVo : bmsOverViewVoList) {
|
||||
// 获取单体电池数据-待确认
|
||||
// 获取单体电池数据
|
||||
String stackDeviceId = bmsOverViewVo.getDeviceId();
|
||||
if (!StringUtils.isEmpty(stackDeviceId)) {
|
||||
List<BMSBatteryDataList> batteryDataList = new ArrayList<>();
|
||||
|
Reference in New Issue
Block a user