单站监控-实时运行液冷数据
This commit is contained in:
209
ems-system/src/main/java/com/xzzn/ems/domain/EmsCoolingData.java
Normal file
209
ems-system/src/main/java/com/xzzn/ems/domain/EmsCoolingData.java
Normal file
@ -0,0 +1,209 @@
|
||||
package com.xzzn.ems.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import com.xzzn.common.core.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xzzn.common.annotation.Excel;
|
||||
|
||||
/**
|
||||
* 冷却系统参数对象 ems_cooling_data
|
||||
*
|
||||
* @author xzzn
|
||||
* @date 2025-06-25
|
||||
*/
|
||||
public class EmsCoolingData extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 系统名称,如1#液冷 */
|
||||
@Excel(name = "系统名称,如1#液冷")
|
||||
private String systemName;
|
||||
|
||||
/** 工作模式 */
|
||||
@Excel(name = "工作模式")
|
||||
private String workMode;
|
||||
|
||||
/** 当前温度 (℃) */
|
||||
@Excel(name = "当前温度 (℃)")
|
||||
private BigDecimal currentTemperature;
|
||||
|
||||
/** 制热开启点 (℃) */
|
||||
@Excel(name = "制热开启点 (℃)")
|
||||
private BigDecimal heatingStartPoint;
|
||||
|
||||
/** 制冷开启点 (℃) */
|
||||
@Excel(name = "制冷开启点 (℃)")
|
||||
private BigDecimal coolingStartPoint;
|
||||
|
||||
/** 高温告警点 (℃) */
|
||||
@Excel(name = "高温告警点 (℃)")
|
||||
private BigDecimal highTempAlarmPoint;
|
||||
|
||||
/** 制热停止点 (℃) */
|
||||
@Excel(name = "制热停止点 (℃)")
|
||||
private BigDecimal heatingStopPoint;
|
||||
|
||||
/** 制冷停止点 (℃) */
|
||||
@Excel(name = "制冷停止点 (℃)")
|
||||
private BigDecimal coolingStopPoint;
|
||||
|
||||
/** 低温告警点 (℃) */
|
||||
@Excel(name = "低温告警点 (℃)")
|
||||
private BigDecimal lowTempAlarmPoint;
|
||||
|
||||
/** 站点id */
|
||||
@Excel(name = "站点id")
|
||||
private Long siteId;
|
||||
|
||||
/** 设备唯一标识符 */
|
||||
@Excel(name = "设备唯一标识符")
|
||||
private Long deviceId;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setSystemName(String systemName)
|
||||
{
|
||||
this.systemName = systemName;
|
||||
}
|
||||
|
||||
public String getSystemName()
|
||||
{
|
||||
return systemName;
|
||||
}
|
||||
|
||||
public void setWorkMode(String workMode)
|
||||
{
|
||||
this.workMode = workMode;
|
||||
}
|
||||
|
||||
public String getWorkMode()
|
||||
{
|
||||
return workMode;
|
||||
}
|
||||
|
||||
public void setCurrentTemperature(BigDecimal currentTemperature)
|
||||
{
|
||||
this.currentTemperature = currentTemperature;
|
||||
}
|
||||
|
||||
public BigDecimal getCurrentTemperature()
|
||||
{
|
||||
return currentTemperature;
|
||||
}
|
||||
|
||||
public void setHeatingStartPoint(BigDecimal heatingStartPoint)
|
||||
{
|
||||
this.heatingStartPoint = heatingStartPoint;
|
||||
}
|
||||
|
||||
public BigDecimal getHeatingStartPoint()
|
||||
{
|
||||
return heatingStartPoint;
|
||||
}
|
||||
|
||||
public void setCoolingStartPoint(BigDecimal coolingStartPoint)
|
||||
{
|
||||
this.coolingStartPoint = coolingStartPoint;
|
||||
}
|
||||
|
||||
public BigDecimal getCoolingStartPoint()
|
||||
{
|
||||
return coolingStartPoint;
|
||||
}
|
||||
|
||||
public void setHighTempAlarmPoint(BigDecimal highTempAlarmPoint)
|
||||
{
|
||||
this.highTempAlarmPoint = highTempAlarmPoint;
|
||||
}
|
||||
|
||||
public BigDecimal getHighTempAlarmPoint()
|
||||
{
|
||||
return highTempAlarmPoint;
|
||||
}
|
||||
|
||||
public void setHeatingStopPoint(BigDecimal heatingStopPoint)
|
||||
{
|
||||
this.heatingStopPoint = heatingStopPoint;
|
||||
}
|
||||
|
||||
public BigDecimal getHeatingStopPoint()
|
||||
{
|
||||
return heatingStopPoint;
|
||||
}
|
||||
|
||||
public void setCoolingStopPoint(BigDecimal coolingStopPoint)
|
||||
{
|
||||
this.coolingStopPoint = coolingStopPoint;
|
||||
}
|
||||
|
||||
public BigDecimal getCoolingStopPoint()
|
||||
{
|
||||
return coolingStopPoint;
|
||||
}
|
||||
|
||||
public void setLowTempAlarmPoint(BigDecimal lowTempAlarmPoint)
|
||||
{
|
||||
this.lowTempAlarmPoint = lowTempAlarmPoint;
|
||||
}
|
||||
|
||||
public BigDecimal getLowTempAlarmPoint()
|
||||
{
|
||||
return lowTempAlarmPoint;
|
||||
}
|
||||
|
||||
public void setSiteId(Long siteId)
|
||||
{
|
||||
this.siteId = siteId;
|
||||
}
|
||||
|
||||
public Long getSiteId()
|
||||
{
|
||||
return siteId;
|
||||
}
|
||||
|
||||
public void setDeviceId(Long deviceId)
|
||||
{
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public Long getDeviceId()
|
||||
{
|
||||
return deviceId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("systemName", getSystemName())
|
||||
.append("workMode", getWorkMode())
|
||||
.append("currentTemperature", getCurrentTemperature())
|
||||
.append("heatingStartPoint", getHeatingStartPoint())
|
||||
.append("coolingStartPoint", getCoolingStartPoint())
|
||||
.append("highTempAlarmPoint", getHighTempAlarmPoint())
|
||||
.append("heatingStopPoint", getHeatingStopPoint())
|
||||
.append("coolingStopPoint", getCoolingStopPoint())
|
||||
.append("lowTempAlarmPoint", getLowTempAlarmPoint())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.append("siteId", getSiteId())
|
||||
.append("deviceId", getDeviceId())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package com.xzzn.ems.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.xzzn.ems.domain.EmsCoolingData;
|
||||
|
||||
/**
|
||||
* 冷却系统参数Mapper接口
|
||||
*
|
||||
* @author xzzn
|
||||
* @date 2025-06-25
|
||||
*/
|
||||
public interface EmsCoolingDataMapper
|
||||
{
|
||||
/**
|
||||
* 查询冷却系统参数
|
||||
*
|
||||
* @param id 冷却系统参数主键
|
||||
* @return 冷却系统参数
|
||||
*/
|
||||
public EmsCoolingData selectEmsCoolingDataById(Long id);
|
||||
|
||||
/**
|
||||
* 查询冷却系统参数列表
|
||||
*
|
||||
* @param emsCoolingData 冷却系统参数
|
||||
* @return 冷却系统参数集合
|
||||
*/
|
||||
public List<EmsCoolingData> selectEmsCoolingDataList(EmsCoolingData emsCoolingData);
|
||||
|
||||
/**
|
||||
* 新增冷却系统参数
|
||||
*
|
||||
* @param emsCoolingData 冷却系统参数
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmsCoolingData(EmsCoolingData emsCoolingData);
|
||||
|
||||
/**
|
||||
* 修改冷却系统参数
|
||||
*
|
||||
* @param emsCoolingData 冷却系统参数
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmsCoolingData(EmsCoolingData emsCoolingData);
|
||||
|
||||
/**
|
||||
* 删除冷却系统参数
|
||||
*
|
||||
* @param id 冷却系统参数主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmsCoolingDataById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除冷却系统参数
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmsCoolingDataByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 获取液冷数据
|
||||
* @param siteId
|
||||
* @return
|
||||
*/
|
||||
public List<EmsCoolingData> getCoolingDataList(Long siteId);
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
package com.xzzn.ems.service;
|
||||
|
||||
import com.xzzn.ems.domain.EmsCoolingData;
|
||||
import com.xzzn.ems.domain.vo.*;
|
||||
|
||||
import java.util.List;
|
||||
@ -23,4 +24,6 @@ public interface ISingleSiteService
|
||||
public List<BMSOverViewVo> getBMSOverView(Long siteId);
|
||||
|
||||
public List<BMSBatteryClusterVo> getBMSBatteryCluster(Long siteId);
|
||||
|
||||
public List<EmsCoolingData> getCoolingDataList(Long siteId);
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ package com.xzzn.ems.service.impl;
|
||||
|
||||
import com.xzzn.common.utils.StringUtils;
|
||||
import com.xzzn.ems.domain.EmsBatteryData;
|
||||
import com.xzzn.ems.domain.EmsCoolingData;
|
||||
import com.xzzn.ems.domain.vo.*;
|
||||
import com.xzzn.ems.mapper.*;
|
||||
import com.xzzn.ems.service.ISingleSiteService;
|
||||
@ -32,6 +33,8 @@ public class SingleSiteServiceImpl implements ISingleSiteService {
|
||||
private EmsBatteryClusterMapper emsBatteryClusterMapper;
|
||||
@Autowired
|
||||
private EmsPcsBranchDataMapper emsPcsBranchDataMapper;
|
||||
@Autowired
|
||||
private EmsCoolingDataMapper emsCoolingDataMapper;
|
||||
|
||||
@Override
|
||||
public SiteMonitorHomeVo getSiteMonitorDataVo(Long siteId) {
|
||||
@ -187,4 +190,14 @@ public class SingleSiteServiceImpl implements ISingleSiteService {
|
||||
return bmsBatteryClusterVoList;
|
||||
}
|
||||
|
||||
// 获取液冷设备参数
|
||||
@Override
|
||||
public List<EmsCoolingData> getCoolingDataList(Long siteId) {
|
||||
List<EmsCoolingData> emsCoolingDataList = new ArrayList<>();
|
||||
if (siteId != null) {
|
||||
emsCoolingDataList = emsCoolingDataMapper.getCoolingDataList(siteId);
|
||||
}
|
||||
return emsCoolingDataList;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user