feat(ems):电表、蒸汽 添加表、水表及振动温度数据实体字段注解

- 为 EmsRecordDnbInstant 类添加字段注解,包括电压、电流、功率等
-为 EmsRecordSteamInstant 类补充缺失的字段注解,如流量、热量相关字段
- 为 EmsRecordWaterInstant 类增加流量及记录时间等字段注解- 为 EmsVibrationInstant 类补充传感器ID及相关时间字段注解
-为 TWTempertureData 类添加温度监测相关字段注解- 所有新增注解均使用 @TableField 明确数据库列名映射关系
master
zangch@mesnac.com 2 months ago
parent 91a3351088
commit ba2c99d27c

@ -32,10 +32,12 @@ public class EmsRecordDnbInstant extends EmsRecordEntity {
/** /**
* *
*/ */
@TableField("obj_id")
private Long objId; private Long objId;
/** 计量设备编号 */ /** 计量设备编号 */
//@ExcelProperty(value = "计量设备编号") //@ExcelProperty(value = "计量设备编号")
@TableField("monitor_code")
private String monitorCode; private String monitorCode;
/** 计量设备名称 */ /** 计量设备名称 */
@ -46,35 +48,43 @@ public class EmsRecordDnbInstant extends EmsRecordEntity {
/** 采集时间 */ /** 采集时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//@ExcelProperty(value = "采集时间", format = "yyyy-MM-dd HH:mm:ss") //@ExcelProperty(value = "采集时间", format = "yyyy-MM-dd HH:mm:ss")
@TableField("collect_time")
private Date collectTime; private Date collectTime;
/** A相电压 */ /** A相电压 */
//@ExcelProperty(value = "A相电压") //@ExcelProperty(value = "A相电压")
@TableField("v_a")
private BigDecimal vA; private BigDecimal vA;
/** B相电压 */ /** B相电压 */
//@ExcelProperty(value = "B相电压") //@ExcelProperty(value = "B相电压")
@TableField("v_b")
private BigDecimal vB; private BigDecimal vB;
/** C相电压 */ /** C相电压 */
//@ExcelProperty(value = "C相电压") //@ExcelProperty(value = "C相电压")
@TableField("v_c")
private BigDecimal vC; private BigDecimal vC;
/** A相电流 */ /** A相电流 */
//@ExcelProperty(value = "A相电流") //@ExcelProperty(value = "A相电流")
@TableField("i_a")
private BigDecimal iA; private BigDecimal iA;
/** B相电流 */ /** B相电流 */
//@ExcelProperty(value = "B相电流") //@ExcelProperty(value = "B相电流")
@TableField("i_b")
private BigDecimal iB; private BigDecimal iB;
/** C相电流 */ /** C相电流 */
//@ExcelProperty(value = "C相电流") //@ExcelProperty(value = "C相电流")
@TableField("i_c")
private BigDecimal iC; private BigDecimal iC;
/** 记录时间 */ /** 记录时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//@ExcelProperty(value = "记录时间", format = "yyyy-MM-dd HH:mm:ss") //@ExcelProperty(value = "记录时间", format = "yyyy-MM-dd HH:mm:ss")
@TableField("record_time")
private Date recordTime; private Date recordTime;
/** 功率因数 */ /** 功率因数 */
@ -83,18 +93,22 @@ public class EmsRecordDnbInstant extends EmsRecordEntity {
/** 正向有功 */ /** 正向有功 */
//@ExcelProperty(value = "正向有功") //@ExcelProperty(value = "正向有功")
@TableField("zxyg")
private BigDecimal zxyg; private BigDecimal zxyg;
/** 有功功率 */ /** 有功功率 */
//@ExcelProperty(value = "有功功率") //@ExcelProperty(value = "有功功率")
@TableField("active_power")
private BigDecimal activePower; private BigDecimal activePower;
/** 无功功率 */ /** 无功功率 */
//@ExcelProperty(value = "无功功率") //@ExcelProperty(value = "无功功率")
@TableField("reactive_power")
private BigDecimal reactivePower; private BigDecimal reactivePower;
/** 采集方式0自动 1手动 */ /** 采集方式0自动 1手动 */
//@ExcelProperty(value = "采集方式", readConverterExp = "0=自动,1=手动") //@ExcelProperty(value = "采集方式", readConverterExp = "0=自动,1=手动")
@TableField("collect_type")
private Long collectType; private Long collectType;
public String getMonitorName() { public String getMonitorName() {

@ -32,12 +32,14 @@ public class EmsRecordSteamInstant extends EmsRecordEntity {
/** /**
* *
*/ */
@TableField("obj_id")
private Long objId; private Long objId;
/** /**
* *
*/ */
//@ExcelProperty(value = "计量设备编号") //@ExcelProperty(value = "计量设备编号")
@TableField("monitor_code")
private String monitorCode; private String monitorCode;
/** 计量设备编号 */ /** 计量设备编号 */
@ -50,30 +52,35 @@ public class EmsRecordSteamInstant extends EmsRecordEntity {
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//@ExcelProperty(value = "采集时间", format = "yyyy-MM-dd HH:mm:ss") //@ExcelProperty(value = "采集时间", format = "yyyy-MM-dd HH:mm:ss")
@TableField("collect_time")
private Date collectTime; private Date collectTime;
/** /**
* *
*/ */
//@ExcelProperty(value = "瞬时流量") //@ExcelProperty(value = "瞬时流量")
@TableField("flux_flow")
private BigDecimal fluxFlow; private BigDecimal fluxFlow;
/** /**
* *
*/ */
//@ExcelProperty(value = "累计流量") //@ExcelProperty(value = "累计流量")
@TableField("steam_flow")
private BigDecimal steamFlow; private BigDecimal steamFlow;
/** /**
* *
*/ */
//@ExcelProperty(value = "瞬时热量") //@ExcelProperty(value = "瞬时热量")
@TableField("heat_instant_value")
private BigDecimal heatInstantValue; private BigDecimal heatInstantValue;
/** /**
* *
*/ */
//@ExcelProperty(value = "累计热量") //@ExcelProperty(value = "累计热量")
@TableField("heat_total_value")
private BigDecimal heatTotalValue; private BigDecimal heatTotalValue;
/** /**
@ -98,6 +105,7 @@ public class EmsRecordSteamInstant extends EmsRecordEntity {
* *
*/ */
//@ExcelProperty(value = "压力差值") //@ExcelProperty(value = "压力差值")
@TableField("difference_press")
private BigDecimal differencePress; private BigDecimal differencePress;
/** /**
@ -105,6 +113,7 @@ public class EmsRecordSteamInstant extends EmsRecordEntity {
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//@ExcelProperty(value = "记录时间", format = "yyyy-MM-dd HH:mm:ss") //@ExcelProperty(value = "记录时间", format = "yyyy-MM-dd HH:mm:ss")
@TableField("record_time")
private Date recordTime; private Date recordTime;
/* *//** /* *//**

@ -32,10 +32,12 @@ public class EmsRecordWaterInstant extends EmsRecordEntity {
/** /**
* *
*/ */
@TableField("obj_id")
private Long objId; private Long objId;
/** 计量设备编号 */ /** 计量设备编号 */
//@ExcelProperty(value = "计量设备编号") //@ExcelProperty(value = "计量设备编号")
@TableField("monitor_code")
private String monitorCode; private String monitorCode;
/** 计量设备编号 */ /** 计量设备编号 */
@ -46,23 +48,28 @@ public class EmsRecordWaterInstant extends EmsRecordEntity {
/** 采集时间 */ /** 采集时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//@ExcelProperty(value = "采集时间", format = "yyyy-MM-dd HH:mm:ss") //@ExcelProperty(value = "采集时间", format = "yyyy-MM-dd HH:mm:ss")
@TableField("collect_time")
private Date collectTime; private Date collectTime;
/** 瞬时流量 */ /** 瞬时流量 */
//@ExcelProperty(value = "瞬时流量") //@ExcelProperty(value = "瞬时流量")
@TableField("flux_flow")
private BigDecimal fluxFlow; private BigDecimal fluxFlow;
/** 累计流量 */ /** 累计流量 */
//@ExcelProperty(value = "累计流量") //@ExcelProperty(value = "累计流量")
@TableField("water_flow")
private BigDecimal waterFlow; private BigDecimal waterFlow;
/** 记录时间 */ /** 记录时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//@ExcelProperty(value = "记录时间", format = "yyyy-MM-dd HH:mm:ss") //@ExcelProperty(value = "记录时间", format = "yyyy-MM-dd HH:mm:ss")
@TableField("record_time")
private Date recordTime; private Date recordTime;
/** 采集方式0自动 1手动 */ /** 采集方式0自动 1手动 */
//@ExcelProperty(value = "采集方式", readConverterExp = "0=自动,1=手动") //@ExcelProperty(value = "采集方式", readConverterExp = "0=自动,1=手动")
@TableField("collect_type")
private Long collectType; private Long collectType;
public String getMonitorCode() { public String getMonitorCode() {

@ -40,15 +40,18 @@ public class EmsVibrationInstant extends EmsRecordEntity
} }
/** 主键标识 */ /** 主键标识 */
@TableField("objId")
private Long objId; private Long objId;
/** 采集时间 */ /** 采集时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//@ExcelProperty(value = "采集时间", format = "yyyy-MM-dd HH:mm:ss") //@ExcelProperty(value = "采集时间", format = "yyyy-MM-dd HH:mm:ss")
@TableField("collectTime")
private Date collectTime; private Date collectTime;
/** 振动传感器编号 */ /** 振动传感器编号 */
//@ExcelProperty(value = "振动传感器编号") //@ExcelProperty(value = "振动传感器编号")
@TableField("sensor_id")
private String sensorId; private String sensorId;
/** 速度(mm/s) */ /** 速度(mm/s) */
@ -70,6 +73,7 @@ public class EmsVibrationInstant extends EmsRecordEntity
/** 记录时间 */ /** 记录时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//@ExcelProperty(value = "记录时间", format = "yyyy-MM-dd HH:mm:ss") //@ExcelProperty(value = "记录时间", format = "yyyy-MM-dd HH:mm:ss")
@TableField("recodeTime")
private Date recodeTime; private Date recodeTime;
public void setObjId(Long objId) public void setObjId(Long objId)

@ -31,6 +31,7 @@ public class TWTempertureData extends EmsRecordEntity
/** 计量设备编号 */ /** 计量设备编号 */
//@ExcelProperty(value = "计量设备编号") //@ExcelProperty(value = "计量设备编号")
@TableField("monitorId")
private String monitorId; private String monitorId;
/**计量设备名称**/ /**计量设备名称**/
@ -41,6 +42,7 @@ public class TWTempertureData extends EmsRecordEntity
/** 采集时间 */ /** 采集时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//@ExcelProperty(value = "采集时间", format = "yyyy-MM-dd HH:mm:ss") //@ExcelProperty(value = "采集时间", format = "yyyy-MM-dd HH:mm:ss")
@TableField("collectTime")
private Date collectTime; private Date collectTime;
/** 温度 */ /** 温度 */
@ -66,23 +68,28 @@ public class TWTempertureData extends EmsRecordEntity
/** 记录时间 */ /** 记录时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//@ExcelProperty(value = "记录时间", format = "yyyy-MM-dd HH:mm:ss") //@ExcelProperty(value = "记录时间", format = "yyyy-MM-dd HH:mm:ss")
@TableField("recodeTime")
private Date recodeTime; private Date recodeTime;
/** 报警类型 */ /** 报警类型 */
//@ExcelProperty(value = "报警类型") //@ExcelProperty(value = "报警类型")
@TableField("alarmType")
private Long alarmType; private Long alarmType;
/** */ /** */
//@ExcelProperty(value = " ") //@ExcelProperty(value = " ")
@TableField("confirmPersonID")
private Long confirmPersonID; private Long confirmPersonID;
/** */ /** */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//@ExcelProperty(value = " ", format = "yyyy-MM-dd HH:mm:ss") //@ExcelProperty(value = " ", format = "yyyy-MM-dd HH:mm:ss")
@TableField("confirmTime")
private Date confirmTime; private Date confirmTime;
/** */ /** */
//@ExcelProperty(value = " ") //@ExcelProperty(value = " ")
@TableField("confirmFlag")
private Long confirmFlag; private Long confirmFlag;
public void setObjid(Long objid) public void setObjid(Long objid)

Loading…
Cancel
Save