From a9098372191b3c51995d41ee28404d1b71244d98 Mon Sep 17 00:00:00 2001 From: jiazx0107@163.com <jiazx0107@163.com> Date: 星期二, 12 十二月 2023 18:41:04 +0800 Subject: [PATCH] 提交网关心跳和设备状态2 --- src/main/java/com/fzzy/gateway/entity/GatewayDevice.java | 28 +++++++++++++++++++++++++--- 1 files changed, 25 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/fzzy/gateway/entity/GatewayDevice.java b/src/main/java/com/fzzy/gateway/entity/GatewayDevice.java index c5fc2e3..4670371 100644 --- a/src/main/java/com/fzzy/gateway/entity/GatewayDevice.java +++ b/src/main/java/com/fzzy/gateway/entity/GatewayDevice.java @@ -2,11 +2,13 @@ import com.bstek.dorado.annotation.PropertyDef; +import com.fzzy.api.Constant; import lombok.Data; import javax.persistence.*; import java.io.Serializable; +import java.util.Date; /** * 缃戝叧鐩稿叧鐨勮澶囩鐞� @@ -85,9 +87,9 @@ @Column(name = "PUSH_PROTOCOL_", length = 20) private String pushProtocol; - @PropertyDef(label = "鐪佸钩鍙板崗璁�") - @Column(name = "PROVINCE_PROTOCOL_", length = 20) - private String provinceProtocol; +// @PropertyDef(label = "鐪佸钩鍙板崗璁�") +// @Column(name = "PROVINCE_PROTOCOL_", length = 20) +// private String provinceProtocol; @PropertyDef(label = "鍚屾鍗忚") @Column(name = "SYNC_PROTOCOL_", length = 20) @@ -101,8 +103,28 @@ @PropertyDef(label = "缁勭粐缂栫爜") private String orgId; + @Column(name = "POSITION_", length = 40) + @PropertyDef(label = "浣嶇疆") + private String position; + @Column(name = "REMARK_", length = 200) @PropertyDef(label = "澶囨敞", description = "澶囨敞淇℃伅") private String remark; + @Column(name = "CABLE_RULE_", length = 20) + @PropertyDef(label = "甯冪嚎瑙勫垯", description = "骞虫柟浠撹〃绀哄眰琛屽垪锛岀瓛浠撹〃绀烘瘡鍦堢殑鍒楁暟") + private String cableRule; + + @Column(name = "CABLE_CIR_", length = 20) + @PropertyDef(label = "绛掍粨灞傝鍒�", description = "閽堝绛掍粨") + private String cableCir; + + @Column(name = "STATUS_", length = 2) + @PropertyDef(label = "鍦ㄧ嚎鐘舵��") + private String status = Constant.YN_Y; + + @Transient + @PropertyDef(label = "璁惧涓婄嚎鏃堕棿") + private Date onlineTime; + } -- Gitblit v1.9.3