|
@@ -0,0 +1,114 @@
|
|
|
+package org.jeecg.modules.deviceLesm.entity;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+import lombok.experimental.Accessors;
|
|
|
+import org.jeecg.common.aspect.annotation.Dict;
|
|
|
+import org.jeecgframework.poi.excel.annotation.Excel;
|
|
|
+import org.springframework.format.annotation.DateTimeFormat;
|
|
|
+
|
|
|
+import java.io.Serializable;
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Description: 设备采集点
|
|
|
+ * @Author: jeecg-boot
|
|
|
+ * @Date: 2024-09-23
|
|
|
+ * @Version: V1.0
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@TableName("device_point")
|
|
|
+@Accessors(chain = true)
|
|
|
+@EqualsAndHashCode(callSuper = false)
|
|
|
+@ApiModel(value="device_point对象", description="设备采集点")
|
|
|
+public class DevicePoint implements Serializable {
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ /**id*/
|
|
|
+ @TableId(type = IdType.ASSIGN_ID)
|
|
|
+ @ApiModelProperty(value = "id")
|
|
|
+ private String id;
|
|
|
+ /**创建人*/
|
|
|
+ @ApiModelProperty(value = "创建人")
|
|
|
+ private String createBy;
|
|
|
+ /**创建日期*/
|
|
|
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
|
|
+ @ApiModelProperty(value = "创建日期")
|
|
|
+ private Date createTime;
|
|
|
+ /**更新人*/
|
|
|
+ @ApiModelProperty(value = "更新人")
|
|
|
+ private String updateBy;
|
|
|
+ /**更新日期*/
|
|
|
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
|
|
+ @ApiModelProperty(value = "更新日期")
|
|
|
+ private Date updateTime;
|
|
|
+ /**所属部门*/
|
|
|
+ @ApiModelProperty(value = "所属部门")
|
|
|
+ private String sysOrgCode;
|
|
|
+ /**所属设备*/
|
|
|
+ //@Excel(name = "所属设备", width = 15)
|
|
|
+ @ApiModelProperty(value = "所属设备")
|
|
|
+ private String deviceId;
|
|
|
+ /**采集点名称*/
|
|
|
+ @Excel(name = "采集点名称", width = 15)
|
|
|
+ @ApiModelProperty(value = "采集点名称")
|
|
|
+ private String pointName;
|
|
|
+ /**采集点编号*/
|
|
|
+ @Excel(name = "采集点编号", width = 15)
|
|
|
+ @ApiModelProperty(value = "采集点编号")
|
|
|
+ private String pointCode;
|
|
|
+ /**数据plc地址*/
|
|
|
+ @Excel(name = "数据plc地址", width = 15)
|
|
|
+ @ApiModelProperty(value = "数据plc地址-opc")
|
|
|
+ private String itemid;
|
|
|
+ /**存储位置*/
|
|
|
+ @Excel(name = "存储位置", width = 15)
|
|
|
+ @ApiModelProperty(value = "存储位置-opc")
|
|
|
+ private Integer nameindex;
|
|
|
+ /**采集点地址*/
|
|
|
+ @Excel(name = "采集点地址", width = 15)
|
|
|
+ @ApiModelProperty(value = "采集点地址-modbus、s7")
|
|
|
+ private String pointAddr;
|
|
|
+ /**寄存器类型*/
|
|
|
+ @Excel(name = "寄存器类型", width = 15)
|
|
|
+ @ApiModelProperty(value = "寄存器类型-modbus")
|
|
|
+ @Dict(dicCode = "register_type")
|
|
|
+ private String registerType;
|
|
|
+ /**寄存器起始位*/
|
|
|
+ @Excel(name = "寄存器起始位", width = 15)
|
|
|
+ @ApiModelProperty(value = "寄存器起始位-modbus")
|
|
|
+ private Integer pointBit;
|
|
|
+ /**寄存器偏移位*/
|
|
|
+ @Excel(name = "寄存器偏移位", width = 15)
|
|
|
+ @ApiModelProperty(value = "寄存器偏移位-modbus")
|
|
|
+ private Integer pointScale;
|
|
|
+ /**测试结果*/
|
|
|
+ @Excel(name = "测试结果", width = 15)
|
|
|
+ @ApiModelProperty(value = "测试结果")
|
|
|
+ private String remarks;
|
|
|
+ /**数据类型*/
|
|
|
+ @Excel(name = "数据类型", width = 15)
|
|
|
+ @ApiModelProperty(value = "数据类型")
|
|
|
+ @Dict(dicCode = "point_data_type")
|
|
|
+ private String dateType;
|
|
|
+ /**数据长度*/
|
|
|
+ @Excel(name = "数据长度", width = 15)
|
|
|
+ @ApiModelProperty(value = "数据长度")
|
|
|
+ private Integer dateLength;
|
|
|
+ /**采集状态*/
|
|
|
+ @Excel(name = "采集状态", width = 15)
|
|
|
+ @ApiModelProperty(value = "采集状态")
|
|
|
+ private String gatherStatus;
|
|
|
+ /**测试结果*/
|
|
|
+ @Excel(name = "测试结果", width = 15)
|
|
|
+ @ApiModelProperty(value = "测试结果")
|
|
|
+ private String testResult;
|
|
|
+}
|