Commit fe53c0fd authored by 赵啸非's avatar 赵啸非

添加热门事项

parent 47ed13b8
......@@ -54,3 +54,7 @@ CREATE TABLE mortals_xhx_matter_category(
`updateTime` datetime COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='事项材料分类';
ALTER TABLE mortals_xhx_device
ADD COLUMN `belong` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '所属机构' AFTER deviceRemark;
......@@ -2,6 +2,9 @@ package com.mortals.xhx.module.device.model;
import java.util.Date;
import java.util.List;
import java.util.ArrayList;
import java.math.BigDecimal;
import cn.hutool.core.date.DateUtil;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
......@@ -11,7 +14,7 @@ import lombok.Data;
* 设备实体对象
*
* @author zxfei
* @date 2023-06-21
* @date 2023-12-08
*/
@Data
public class DeviceEntity extends DeviceVo {
......@@ -45,6 +48,26 @@ public class DeviceEntity extends DeviceVo {
* 站点名称
*/
private String siteName;
/**
* 设备生产厂商ID
*/
private Long deviceFirmId;
/**
* 设备生产厂商名称
*/
private String deviceFirmname;
/**
* 设备访问ip
*/
private String ip;
/**
* 端口
*/
private String port;
/**
* 启用状态 (0.停止,1.启用)
*/
private Integer enabled;
/**
* 产品编码
*/
......@@ -82,29 +105,9 @@ public class DeviceEntity extends DeviceVo {
*/
private String deviceRemark;
/**
* 设备来源(0.旧设备,1.新设备)
*/
private Integer source;
/**
* 设备生产厂商ID
*/
private Long deviceFirmId;
/**
* 设备生产厂商名称
*/
private String deviceFirmname;
/**
* 设备访问ip
*/
private String ip;
/**
* 端口
* 所属机构
*/
private String port;
/**
* 启用状态 (0.停止,1.启用)
*/
private Integer enabled;
private String belong;
/**
* 最近上线时间
*/
......@@ -113,6 +116,10 @@ public class DeviceEntity extends DeviceVo {
* 最近离线时间
*/
private Date offlineTime;
/**
* 设备来源(0.旧设备,1.新设备)
*/
private Integer source;
@Override
public int hashCode() {
return this.getId().hashCode();
......@@ -130,53 +137,30 @@ public class DeviceEntity extends DeviceVo {
}
public void initAttrValue(){
this.deviceId = -1L;
this.deviceId = null;
this.deviceName = "";
this.deviceCode = "";
this.deviceMac = "";
this.siteId = -1L;
this.siteId = null;
this.siteCode = "";
this.siteName = "";
this.deviceFirmId = null;
this.deviceFirmname = "";
this.ip = "";
this.port = "";
this.enabled = 0;
this.productCode = "";
this.productName = "";
this.deviceSrc = 2;
this.lon = "";
this.lati = "";
this.leadingOfficial = "";
this.leadingOfficialTelephone = "";
this.deviceStatus = 0;
this.deviceRemark = "";
this.belong = "";
this.onlineTime = new Date();
this.offlineTime = new Date();
this.source = 1;
this.deviceFirmId = -1L;
this.deviceFirmname = "";
this.ip = "";
this.port = "";
this.enabled = 0;
this.onlineTime = null;
this.offlineTime = null;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment