vince
2024-03-01 f7178996ca77a1bccc941c0e7a73b36803e508cb
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;
/**
 * 网关相关的设备管理
@@ -37,6 +39,10 @@
    @PropertyDef(label = "名称")
    private String deviceName;
    @Column(name = "PRODUCT_ID_", length = 50)
    @PropertyDef(label = "设备类型KEY")
    private String productId;
    @Column(name = "TYPE_", length = 10)
    @PropertyDef(label = "设备类型")
    private String type;
@@ -52,6 +58,10 @@
    @Column(name = "DEPOT_ID_SYS_", length = 30)
    @PropertyDef(label = "库区系统仓库编码")
    private String depotIdSys;
    @Column(name = "DEPOT_TYPE_", length = 10)
    @PropertyDef(label = "仓库类型", description = "平房仓")
    private String depotType;
    @Column(name = "IP_", length = 20)
    @PropertyDef(label = "通讯IP")
@@ -81,9 +91,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)
@@ -97,8 +107,54 @@
    @PropertyDef(label = "组织编码")
    private String orgId;
    @Column(name = "POSITION_", length = 40)
    @PropertyDef(label = "位置")
    private String position;
    @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;
    @Column(name = "CABLE_START_", length = 4)
    @PropertyDef(label = "电缆开始")
    private String cableStart;
    @Column(name = "CABLE_END_", length = 4)
    @PropertyDef(label = "电缆截至")
    private String cableEnd;
    @Column(name = "TH_ADDR_",length = 4)
    @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;
    @Column(name = "BH_ID_", length = 50)
    @PropertyDef(label = "分机内部仓库编码")
    private String bhId;
}