|
@@ -0,0 +1,244 @@
|
|
|
+package cn.iocoder.yudao.module.pms.controller.admin.vo;
|
|
|
+
|
|
|
+import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+import lombok.ToString;
|
|
|
+import org.springframework.data.annotation.Transient;
|
|
|
+
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.sql.Timestamp;
|
|
|
+import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 设备对象 iot_device
|
|
|
+ *
|
|
|
+ * @author kerwincui
|
|
|
+ * @date 2021-12-16
|
|
|
+ */
|
|
|
+@Schema(description = "管理后台 - 设备台账分页 Request VO")
|
|
|
+@Data
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
+@ToString(callSuper = true)
|
|
|
+public class DeviceVO extends PageParam {
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ @Schema(description="表名称")
|
|
|
+ private String deviceName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备ID
|
|
|
+ */
|
|
|
+ @Schema(description="设备ID")
|
|
|
+ private Timestamp ts;
|
|
|
+
|
|
|
+ private Timestamp ts1;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备名称
|
|
|
+ */
|
|
|
+ @Schema(description="设备名称")
|
|
|
+ private String logValue;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 产品ID
|
|
|
+ */
|
|
|
+ @Schema(description="产品ID")
|
|
|
+ private String identity;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 产品名称
|
|
|
+ */
|
|
|
+ @Schema(description="产品名称")
|
|
|
+ private String productName;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 租户ID
|
|
|
+ */
|
|
|
+ @Schema(description="租户ID")
|
|
|
+ private Long tenantId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 租户名称
|
|
|
+ */
|
|
|
+ @Schema(description="租户名称")
|
|
|
+ private String tenantName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备编号
|
|
|
+ */
|
|
|
+ @Schema(description="设备编号")
|
|
|
+ private String serialNumber;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 固件版本
|
|
|
+ */
|
|
|
+ @Schema(description="固件版本")
|
|
|
+ private BigDecimal firmwareVersion;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备类型(1-直连设备、2-网关设备、3-监控设备)
|
|
|
+ */
|
|
|
+ @Schema(description="设备类型(1-直连设备、2-网关设备、3-监控设备 4-网关子设备)")
|
|
|
+ private Integer deviceType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备状态(1-未激活,2-禁用,3-在线,4-离线)
|
|
|
+ */
|
|
|
+ @Schema(description="设备状态(1-未激活,2-禁用,3-在线,4-离线)")
|
|
|
+ private Integer status;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * wifi信号强度(信号极好4格[-55— 0],信号好3格[-70— -55],信号一般2格[-85— -70],信号差1格[-100— -85])
|
|
|
+ */
|
|
|
+ @Schema(description="wifi信号强度(信号极好4格[-55— 0],信号好3格[-70— -55],信号一般2格[-85— -70],信号差1格[-100— -85])")
|
|
|
+ private Integer rssi;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备影子
|
|
|
+ */
|
|
|
+ @Schema(description="是否启用设备影子(0=禁用,1=启用)")
|
|
|
+ private Integer isShadow;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备所在地址
|
|
|
+ */
|
|
|
+ @Schema(description="设备所在地址")
|
|
|
+ private String networkAddress;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备入网IP
|
|
|
+ */
|
|
|
+ @Schema(description="设备入网IP")
|
|
|
+ private String networkIp;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备经度
|
|
|
+ */
|
|
|
+ @Schema(description="设备经度")
|
|
|
+ private BigDecimal longitude;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备纬度
|
|
|
+ */
|
|
|
+ @Schema(description="设备纬度")
|
|
|
+ private BigDecimal latitude;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 激活时间
|
|
|
+ */
|
|
|
+ @Schema(description="激活时间")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd")
|
|
|
+ private Date activeTime;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 子设备网关编号
|
|
|
+ */
|
|
|
+ @Schema(description="子设备网关编号")
|
|
|
+ private String gwDevCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 物模型值
|
|
|
+ */
|
|
|
+ @Schema(description="物模型值")
|
|
|
+ private String thingsModelValue;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 图片地址
|
|
|
+ */
|
|
|
+ @Schema(description="图片地址")
|
|
|
+ private String imgUrl;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 是否自定义位置
|
|
|
+ **/
|
|
|
+ @Schema(description="定位方式(1=ip自动定位,2=设备定位,3=自定义)")
|
|
|
+ private Integer locationWay;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备摘要
|
|
|
+ **/
|
|
|
+ @Schema(description="设备摘要")
|
|
|
+ private String summary;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 分组ID,用于分组查询
|
|
|
+ **/
|
|
|
+ @Schema(description="分组ID,用于分组查询")
|
|
|
+ private Long groupId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 是否设备所有者,用于查询
|
|
|
+ **/
|
|
|
+ @Schema(description="是否设备所有者,用于查询")
|
|
|
+ private Integer isOwner;
|
|
|
+ /**
|
|
|
+ * 子设备数量
|
|
|
+ */
|
|
|
+ @Schema(description="子设备数量")
|
|
|
+ private Integer subDeviceCount;
|
|
|
+ /**
|
|
|
+ * 是否是模拟设备
|
|
|
+ */
|
|
|
+ @Schema(description="是否是模拟设备")
|
|
|
+ private Integer isSimulate;
|
|
|
+ /**
|
|
|
+ * 子设备地址
|
|
|
+ */
|
|
|
+ @Schema(description="子设备地址")
|
|
|
+ private Integer slaveId;
|
|
|
+ /**
|
|
|
+ * 设备传输协议
|
|
|
+ */
|
|
|
+ @Schema(description="设备传输协议")
|
|
|
+ private String transport;
|
|
|
+
|
|
|
+ @Transient
|
|
|
+ @Schema(description="机构id")
|
|
|
+ private Long deptId;
|
|
|
+
|
|
|
+ @Transient
|
|
|
+ @Schema(description="是否显示下级")
|
|
|
+ private Boolean showChild;
|
|
|
+
|
|
|
+ private List<DeviceVO> subDeviceList;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 删除标志(0代表存在 2代表删除)
|
|
|
+ */
|
|
|
+ @Schema(description="删除标志")
|
|
|
+ private String delFlag;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 关联组态,来源产品
|
|
|
+ */
|
|
|
+ private String guid;
|
|
|
+
|
|
|
+ //private List<SipRelation> sipRelationList;
|
|
|
+
|
|
|
+ private String clientId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 发布
|
|
|
+ * */
|
|
|
+ private String postDev;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 订阅
|
|
|
+ * */
|
|
|
+ private String getDev;
|
|
|
+
|
|
|
+ private int mqttstats;
|
|
|
+
|
|
|
+ private String protocolCode;
|
|
|
+
|
|
|
+
|
|
|
+ public static long getSerialVersionUID() {
|
|
|
+ return serialVersionUID;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|