You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
112 lines
3.4 KiB
112 lines
3.4 KiB
package com.mh.user.entity; |
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat; |
|
import lombok.Getter; |
|
import lombok.Setter; |
|
import org.springframework.format.annotation.DateTimeFormat; |
|
|
|
import java.io.Serializable; |
|
import java.math.BigDecimal; |
|
import java.time.LocalDateTime; |
|
import java.util.Date; |
|
import java.util.StringJoiner; |
|
|
|
/** |
|
* @author LJF |
|
* @version 1.0 |
|
* @project CHWS |
|
* @description 采集参数实体类 |
|
* @date 2025-12-10 10:53:33 |
|
*/ |
|
@Getter |
|
@Setter |
|
public class CollectionParamsManageEntity implements Serializable { |
|
|
|
static final long serialVersionUID = 42L; |
|
|
|
private Long id; |
|
|
|
/** 当前时间 */ |
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai") |
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|
private Date createTime; |
|
|
|
/** 当前时间 */ |
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai") |
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|
private Date updateTime; |
|
private Long buildingId; |
|
/** 设备id */ |
|
private Long deviceInstallId; |
|
/** 寄存器地址 */ |
|
private String registerAddr; |
|
/** 功能码 */ |
|
private String funcCode; |
|
/** 倍率 */ |
|
private Integer mtRatio; |
|
/** 初始值 */ |
|
private BigDecimal mtInitValue; |
|
/** 小数点 */ |
|
private Integer digits; |
|
/** 数据类型 */ |
|
private Integer dataType; |
|
/** 当前值 */ |
|
private BigDecimal curValue; |
|
/** 当前时间 */ |
|
/** 当前时间 */ |
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai") |
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|
private Date curTime; |
|
/** 是否是总表 (0: 是, 1: 否) */ |
|
private Integer mtIsSum; |
|
/** 单位 */ |
|
private String unit; |
|
/** 排序 */ |
|
private Long orderNum; |
|
/** 备注 */ |
|
private String remark; |
|
/** 读取的寄存器大小 */ |
|
private Integer registerSize; |
|
/** 是否使用 */ |
|
private Integer isUse; |
|
/** 别名:mqtt上传名,唯一值 */ |
|
private String otherName; |
|
/** 40,累计值,140瞬时值 */ |
|
private Integer grade; |
|
/** 参数id */ |
|
private Integer paramTypeId; |
|
/** |
|
* 参数组类型 |
|
*/ |
|
private Integer paramTypeGroupId; |
|
/** 遥测、遥信数据类型 */ |
|
private Integer collectionType; |
|
/** 上报质量 */ |
|
private String quality; |
|
|
|
@Override |
|
public String toString() { |
|
return new StringJoiner(", ", CollectionParamsManageEntity.class.getSimpleName() + "[", "]") |
|
.add("deviceInstallId=" + deviceInstallId) |
|
.add("registerAddr='" + registerAddr + "'") |
|
.add("funcCode='" + funcCode + "'") |
|
.add("mtRatio=" + mtRatio) |
|
.add("mtInitValue=" + mtInitValue) |
|
.add("digits=" + digits) |
|
.add("dataType=" + dataType) |
|
.add("curValue=" + curValue) |
|
.add("curTime=" + curTime) |
|
.add("mtIsSum=" + mtIsSum) |
|
.add("unit='" + unit + "'") |
|
.add("orderNum=" + orderNum) |
|
.add("remark='" + remark + "'") |
|
.add("registerSize=" + registerSize) |
|
.add("isUse=" + isUse) |
|
.add("otherName='" + otherName + "'") |
|
.add("grade=" + grade) |
|
.add("paramTypeId=" + paramTypeId) |
|
.add("collectionType=" + collectionType) |
|
.add("quality='" + quality + "'") |
|
.toString(); |
|
} |
|
}
|
|
|