From d3553d8dd6fc00634ac32228e5b8e4d0624eda11 Mon Sep 17 00:00:00 2001 From: CZT <czt18638530771@163.com> Date: 星期三, 30 八月 2023 11:10:51 +0800 Subject: [PATCH] 调整Modbus配置-解决轴流风机与轴流窗不在同一个分机配置的问题 --- igds-protocol-modbus/src/main/java/com/ld/igds/models/DeviceModbus.java | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/igds-protocol-modbus/src/main/java/com/ld/igds/models/DeviceModbus.java b/igds-protocol-modbus/src/main/java/com/ld/igds/models/DeviceModbus.java index e41d581..654ac0f 100644 --- a/igds-protocol-modbus/src/main/java/com/ld/igds/models/DeviceModbus.java +++ b/igds-protocol-modbus/src/main/java/com/ld/igds/models/DeviceModbus.java @@ -1,11 +1,13 @@ package com.ld.igds.models; import com.bstek.dorado.annotation.PropertyDef; +import com.ld.igds.constant.BizType; import com.ld.igds.constant.Constant; import lombok.Data; import javax.persistence.*; import java.io.Serializable; +import java.util.List; /** * 鏍规嵁璁惧閰嶇疆鐨凪odbus-TCP鍙傛暟閰嶇疆 @@ -25,10 +27,15 @@ @Column(name = "DEVICE_CODE_", length = 40) @PropertyDef(label = "璁惧缂栫爜") private String deviceCode; + + @Column(name = "BIZ_TYEP_", length = 10) + @PropertyDef(label = "涓氬姟绫诲瀷") + private String bizType = BizType.AREATION.getCode(); @Column(name = "OPEN_", length = 10) @PropertyDef(label = "寮�鍦板潃") private String open = Constant.YN_N; + @Column(name = "OPEN_FUN", length = 4) @PropertyDef(label = "鍔熻兘鍙�") @@ -51,7 +58,7 @@ private String stopFun = "99"; @Column(name = "OPEN_END_", length = 10) - @PropertyDef(label = "鍋滃湴鍧�") + @PropertyDef(label = "寮�鍒颁綅鍦板潃") private String openEnd = Constant.YN_N; @Column(name = "OPEN_END_FUN", length = 4) @@ -82,4 +89,13 @@ @PropertyDef(label = "鍔熻兘鍙�") private String closeErrorFun = "99"; + //杞存祦椋庢満鍜岃酱娴佺獥鍙兘涓嶅湪涓�涓垎鏈轰笂锛孖P涓嶅悓 + @Column(name = "SER_ID_", length = 10) + @PropertyDef(label = "鎵�灞炲垎鏈�") + private String serId; + + + @Transient + private List<GasModbus> listGas; + } -- Gitblit v1.9.3