10 changed files with 516 additions and 9 deletions
Binary file not shown.
@ -0,0 +1,32 @@
|
||||
package com.mh.common.core.domain.dto; |
||||
|
||||
import com.mh.common.core.domain.vo.DeviceOperateMonitorVO; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author LJF |
||||
* @version 1.0 |
||||
* @project EEMCS |
||||
* @description 响应给前端的dto数据 |
||||
* @date 2025-03-10 15:43:36 |
||||
*/ |
||||
@Setter |
||||
@Getter |
||||
public class DeviceMonitorDTO { |
||||
|
||||
private String name; |
||||
|
||||
private List<?> values; |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return new ToStringBuilder(this) |
||||
.append("name", name) |
||||
.append("values", values) |
||||
.toString(); |
||||
} |
||||
} |
@ -0,0 +1,51 @@
|
||||
package com.mh.common.core.domain.vo; |
||||
|
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
|
||||
import java.math.BigDecimal; |
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* @author LJF |
||||
* @version 1.0 |
||||
* @project EEMCS |
||||
* @description 监控和控制数据传输类 |
||||
* @date 2025-03-11 11:26:10 |
||||
*/ |
||||
@Setter |
||||
@Getter |
||||
public class CollectionParamsManageVO { |
||||
|
||||
private String id; |
||||
|
||||
private String mtType; |
||||
|
||||
private String deviceLedgerId; |
||||
|
||||
private String deviceName; |
||||
|
||||
private String otherName; |
||||
|
||||
private BigDecimal curValue; |
||||
|
||||
private Date curTime; |
||||
|
||||
private String paramType; |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return new ToStringBuilder(this) |
||||
.append("id", id) |
||||
.append("mtType", mtType) |
||||
.append("deviceLedgerId", deviceLedgerId) |
||||
.append("deviceName", deviceName) |
||||
.append("otherName", otherName) |
||||
.append("curValue", curValue) |
||||
.append("curTime", curTime) |
||||
.append("paramType", paramType) |
||||
.toString(); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,76 @@
|
||||
package com.mh.common.core.domain.vo; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
|
||||
import java.math.BigDecimal; |
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* @author LJF |
||||
* @version 1.0 |
||||
* @project EEMCS |
||||
* @description 设备监控响应前端数据格式 |
||||
* @date 2025-03-10 15:24:32 |
||||
*/ |
||||
@Setter |
||||
@Getter |
||||
public class DeviceMonitorVO { |
||||
|
||||
/** |
||||
* id |
||||
*/ |
||||
private String id; |
||||
|
||||
/** |
||||
* 设备台账id |
||||
*/ |
||||
private String deviceLedgerId; |
||||
|
||||
/** |
||||
* 设备名称 |
||||
*/ |
||||
private String deviceName; |
||||
|
||||
/** |
||||
* 点位名称 |
||||
*/ |
||||
private String collectName; |
||||
|
||||
/** |
||||
* 设备类型 |
||||
*/ |
||||
private String deviceType; |
||||
|
||||
/** |
||||
* 采集时间 |
||||
*/ |
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
private Date collectTime; |
||||
|
||||
/** |
||||
* 采集值 |
||||
*/ |
||||
private String collectValue; |
||||
|
||||
/** |
||||
* 采集类型 |
||||
*/ |
||||
private String paramType; |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return new ToStringBuilder(this) |
||||
.append("id", id) |
||||
.append("deviceLedgerId", deviceLedgerId) |
||||
.append("deviceName", deviceName) |
||||
.append("collectName", collectName) |
||||
.append("deviceType", deviceType) |
||||
.append("collectTime", collectTime) |
||||
.append("collectValue", collectValue) |
||||
.append("paramType", paramType) |
||||
.toString(); |
||||
} |
||||
} |
@ -0,0 +1,136 @@
|
||||
package com.mh.common.core.domain.vo; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
|
||||
import java.math.BigDecimal; |
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* @author LJF |
||||
* @version 1.0 |
||||
* @project EEMCS |
||||
* @description 设备监控响应前端数据格式 |
||||
* @date 2025-03-10 15:24:32 |
||||
*/ |
||||
@Setter |
||||
@Getter |
||||
public class DeviceOperateMonitorVO { |
||||
|
||||
/** |
||||
* ID |
||||
*/ |
||||
private String id; |
||||
|
||||
/** |
||||
* 设备台账ID |
||||
*/ |
||||
private String deviceLedgerId; |
||||
|
||||
/** |
||||
* 点位名称 |
||||
*/ |
||||
private String collectName; |
||||
|
||||
/** |
||||
* 设备类型 |
||||
*/ |
||||
private String deviceType; |
||||
|
||||
/** |
||||
* 采集时间 |
||||
*/ |
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
private Date collectTime; |
||||
|
||||
/** |
||||
* 运行状态 |
||||
*/ |
||||
private Integer runStatus; |
||||
|
||||
/** |
||||
* 设置启停 |
||||
*/ |
||||
private Integer setRunOrStop; |
||||
|
||||
/** |
||||
* 故障报警状态 |
||||
*/ |
||||
private Integer alarmStatus; |
||||
|
||||
/** |
||||
* 手自动状态 |
||||
*/ |
||||
private Integer handOrAuto; |
||||
|
||||
/** |
||||
* 阀门状态 |
||||
*/ |
||||
private Integer valveStatus; |
||||
|
||||
/** |
||||
* 设置阀门开度 |
||||
*/ |
||||
private Integer setValveOpen; |
||||
|
||||
/** |
||||
* 设置阀门关闭 |
||||
*/ |
||||
private Integer setValveClose; |
||||
|
||||
/** |
||||
* 频率 |
||||
*/ |
||||
private BigDecimal frequency; |
||||
|
||||
/** |
||||
* 频率设置 |
||||
*/ |
||||
private BigDecimal setFrequency; |
||||
|
||||
/** |
||||
* 供水温度 |
||||
*/ |
||||
private BigDecimal outTemp; |
||||
|
||||
/** |
||||
* 回水温度 |
||||
*/ |
||||
private BigDecimal inTemp; |
||||
|
||||
/** |
||||
* 供水压力 |
||||
*/ |
||||
private BigDecimal outPressure; |
||||
|
||||
/** |
||||
* 回水压力 |
||||
*/ |
||||
private BigDecimal inPressure; |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return new ToStringBuilder(this) |
||||
.append("id", id) |
||||
.append("deviceLedgerId", deviceLedgerId) |
||||
.append("collectName", collectName) |
||||
.append("deviceType", deviceType) |
||||
.append("collectTime", collectTime) |
||||
.append("runStatus", runStatus) |
||||
.append("alarmStatus", alarmStatus) |
||||
.append("handOrAuto", handOrAuto) |
||||
.append("valveStatus", valveStatus) |
||||
.append("setValveOpen", setValveOpen) |
||||
.append("setValveClose", setValveClose) |
||||
.append("frequency", frequency) |
||||
.append("setFrequency", setFrequency) |
||||
.append("outTemp", outTemp) |
||||
.append("inTemp", inTemp) |
||||
.append("outPressure", outPressure) |
||||
.append("inPressure", inPressure) |
||||
.toString(); |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue