BMS总览-获取堆下面簇数据
This commit is contained in:
@ -21,16 +21,16 @@ public class BMSBatteryDataList {
|
|||||||
private BigDecimal currentSoc;
|
private BigDecimal currentSoc;
|
||||||
|
|
||||||
/** 单体最高电压 (V) */
|
/** 单体最高电压 (V) */
|
||||||
private BigDecimal maxVoltage;
|
private BigDecimal maxCellVoltage;
|
||||||
|
|
||||||
/** 单体最低电压 (V) */
|
/** 单体最低电压 (V) */
|
||||||
private BigDecimal minVoltage;
|
private BigDecimal minCellVoltage;
|
||||||
|
|
||||||
/** 单体最高温度 (℃) */
|
/** 单体最高温度 (℃) */
|
||||||
private BigDecimal maxTemperature;
|
private BigDecimal maxCellTemp;
|
||||||
|
|
||||||
/** 单体最低温度 (℃) */
|
/** 单体最低温度 (℃) */
|
||||||
private BigDecimal minTemperature;
|
private BigDecimal minCellTemp;
|
||||||
|
|
||||||
/** 换电站id */
|
/** 换电站id */
|
||||||
private String siteId;
|
private String siteId;
|
||||||
@ -46,36 +46,52 @@ public class BMSBatteryDataList {
|
|||||||
this.clusterId = clusterId;
|
this.clusterId = clusterId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BigDecimal getMinTemperature() {
|
public String getStackDeviceId() {
|
||||||
return minTemperature;
|
return stackDeviceId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMinTemperature(BigDecimal minTemperature) {
|
public void setStackDeviceId(String stackDeviceId) {
|
||||||
this.minTemperature = minTemperature;
|
this.stackDeviceId = stackDeviceId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BigDecimal getMaxTemperature() {
|
public String getSiteId() {
|
||||||
return maxTemperature;
|
return siteId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMaxTemperature(BigDecimal maxTemperature) {
|
public void setSiteId(String siteId) {
|
||||||
this.maxTemperature = maxTemperature;
|
this.siteId = siteId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BigDecimal getMinVoltage() {
|
public BigDecimal getMinCellTemp() {
|
||||||
return minVoltage;
|
return minCellTemp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMinVoltage(BigDecimal minVoltage) {
|
public void setMinCellTemp(BigDecimal minCellTemp) {
|
||||||
this.minVoltage = minVoltage;
|
this.minCellTemp = minCellTemp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BigDecimal getMaxVoltage() {
|
public BigDecimal getMaxCellTemp() {
|
||||||
return maxVoltage;
|
return maxCellTemp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMaxVoltage(BigDecimal maxVoltage) {
|
public void setMaxCellTemp(BigDecimal maxCellTemp) {
|
||||||
this.maxVoltage = maxVoltage;
|
this.maxCellTemp = maxCellTemp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getMinCellVoltage() {
|
||||||
|
return minCellVoltage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMinCellVoltage(BigDecimal minCellVoltage) {
|
||||||
|
this.minCellVoltage = minCellVoltage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getMaxCellVoltage() {
|
||||||
|
return maxCellVoltage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMaxCellVoltage(BigDecimal maxCellVoltage) {
|
||||||
|
this.maxCellVoltage = maxCellVoltage;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BigDecimal getCurrentSoc() {
|
public BigDecimal getCurrentSoc() {
|
||||||
|
@ -195,10 +195,9 @@ public class SingleSiteServiceImpl implements ISingleSiteService {
|
|||||||
if (stackData != null) {
|
if (stackData != null) {
|
||||||
BeanUtils.copyProperties(stackData, bmsOverViewVo);
|
BeanUtils.copyProperties(stackData, bmsOverViewVo);
|
||||||
}
|
}
|
||||||
// 列表数据
|
// 下面簇列表数据
|
||||||
if (!StringUtils.isEmpty(stackId)) {
|
if (!StringUtils.isEmpty(stackId)) {
|
||||||
List<BMSBatteryDataList> batteryDataList = emsBatteryClusterMapper.getBmsBatteryData(siteId,stackId);
|
getBMSClusterListInfo(siteId,stackId,bmsOverViewVo);
|
||||||
bmsOverViewVo.setBatteryDataList(batteryDataList);
|
|
||||||
}
|
}
|
||||||
bmsOverViewVoList.add(bmsOverViewVo);
|
bmsOverViewVoList.add(bmsOverViewVo);
|
||||||
}
|
}
|
||||||
@ -206,6 +205,25 @@ public class SingleSiteServiceImpl implements ISingleSiteService {
|
|||||||
return bmsOverViewVoList;
|
return bmsOverViewVoList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void getBMSClusterListInfo(String siteId, String stackId, BMSOverViewVo bmsOverViewVo) {
|
||||||
|
List<BMSBatteryDataList> batteryDataList = new ArrayList();
|
||||||
|
|
||||||
|
List<Map<String, Object>> clusterIds = emsDevicesSettingMapper.getDeviceInfoByParentId(stackId);
|
||||||
|
for (Map<String, Object> clusterDevice : clusterIds) {
|
||||||
|
BMSBatteryDataList bmsBatteryDataList= new BMSBatteryDataList();
|
||||||
|
// 从redis取单个簇的详细数据
|
||||||
|
String clusterId = clusterDevice.get("id").toString();
|
||||||
|
bmsBatteryDataList.setClusterId(clusterId);
|
||||||
|
EmsBatteryCluster clusterData = redisCache.getCacheObject(RedisKeyConstants.CLUSTER + siteId + "_" + clusterId);
|
||||||
|
if (clusterData != null) {
|
||||||
|
BeanUtils.copyProperties(clusterData, bmsBatteryDataList);
|
||||||
|
}
|
||||||
|
batteryDataList.add(bmsBatteryDataList);
|
||||||
|
}
|
||||||
|
|
||||||
|
bmsOverViewVo.setBatteryDataList(batteryDataList);
|
||||||
|
}
|
||||||
|
|
||||||
// 获取BMS电池簇数据
|
// 获取BMS电池簇数据
|
||||||
@Override
|
@Override
|
||||||
public List<BMSBatteryClusterVo> getBMSBatteryCluster(String siteId) {
|
public List<BMSBatteryClusterVo> getBMSBatteryCluster(String siteId) {
|
||||||
|
Reference in New Issue
Block a user