jiazx0107@163.com
2023-12-14 8435cf1d25d07b09e2a9937d39bed1c1a422e4f0
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,9 +103,10 @@
    @PropertyDef(label = "组织编码")
    private String orgId;
    @Column(name = "REMARK_", length = 200)
    @PropertyDef(label = "备注", description = "备注信息")
    private String remark;
    @Column(name = "POSITION_", length = 40)
    @PropertyDef(label = "位置")
    private String position;
    @Column(name = "CABLE_RULE_", length = 20)
@@ -114,4 +117,36 @@
    @PropertyDef(label = "筒仓层规则", description = "针对筒仓")
    private String cableCir;
    @Column(name = "STATUS_", length = 2)
    @PropertyDef(label = "在线状态")
    private String status = Constant.YN_Y;
    @Column(name = "CABLE_START_")
    @PropertyDef(label = "电缆开始")
    private int cableStart;
    @Column(name = "CABLE_END_")
    @PropertyDef(label = "电缆截至")
    private int cableEnd;
    @Column(name = "TH_ADDR_")
    @PropertyDef(label = "温湿度地址")
    private String thAddr;
    @Column(name = "CABLE_FORMAT", length = 4)
    @PropertyDef(label = "电缆制式")
    private String cableFormat;
    @Column(name = "CABLE_TYPE", length = 4)
    @PropertyDef(label = "电缆类型")
    private String cableType;
    @Transient
    @PropertyDef(label = "设备上线时间")
    private Date onlineTime;
    @Column(name = "REMARK_", length = 200)
    @PropertyDef(label = "备注", description = "备注信息")
    private String remark;
}