Commit 8e88cc0f authored by 廖旭伟's avatar 廖旭伟

设备导入字段调整

parent 8ba954a0
...@@ -25,7 +25,7 @@ public class DeviceEntity extends DeviceVo { ...@@ -25,7 +25,7 @@ public class DeviceEntity extends DeviceVo {
/** /**
* 设备编码,SN码等,默认为MAC地址 * 设备编码,SN码等,默认为MAC地址
*/ */
@Excel(name = "设备编码") @Excel(name = "设备编码,SN码等,默认为MAC地址")
private String deviceCode; private String deviceCode;
/** /**
* 设备的MAC地址 * 设备的MAC地址
...@@ -130,6 +130,7 @@ public class DeviceEntity extends DeviceVo { ...@@ -130,6 +130,7 @@ public class DeviceEntity extends DeviceVo {
/** /**
* 设备图片 * 设备图片
*/ */
@Excel(name = "设备图片")
private String devicePhotoPath; private String devicePhotoPath;
/** /**
* 设备访问ip * 设备访问ip
...@@ -183,6 +184,7 @@ public class DeviceEntity extends DeviceVo { ...@@ -183,6 +184,7 @@ public class DeviceEntity extends DeviceVo {
/** /**
* 设备SN码 * 设备SN码
*/ */
@Excel(name = "设备SN码")
private String deviceSN; private String deviceSN;
/** /**
* 设备版本 * 设备版本
...@@ -191,7 +193,6 @@ public class DeviceEntity extends DeviceVo { ...@@ -191,7 +193,6 @@ public class DeviceEntity extends DeviceVo {
/** /**
* 产品编码 * 产品编码
*/ */
@Excel(name = "产品类型")
private String productCode; private String productCode;
/** /**
* 大厅Id * 大厅Id
...@@ -214,6 +215,18 @@ public class DeviceEntity extends DeviceVo { ...@@ -214,6 +215,18 @@ public class DeviceEntity extends DeviceVo {
* 是否显示小程序二维码(0.否,1.是) * 是否显示小程序二维码(0.否,1.是)
*/ */
private Integer showWechatQrCode; private Integer showWechatQrCode;
/**
* 所属机构
*/
private String orgName;
/**
* 设备分辨率
*/
private String resolution;
/**
* 设备分辨率值
*/
private String resolutionValue;
@Override @Override
public int hashCode() { public int hashCode() {
return this.getId().hashCode(); return this.getId().hashCode();
...@@ -231,98 +244,55 @@ public class DeviceEntity extends DeviceVo { ...@@ -231,98 +244,55 @@ public class DeviceEntity extends DeviceVo {
} }
public void initAttrValue(){ public void initAttrValue(){
this.deviceName = ""; this.deviceName = "";
this.deviceCode = ""; this.deviceCode = "";
this.deviceMac = ""; this.deviceMac = "";
this.siteId = null; this.siteId = null;
this.siteCode = ""; this.siteCode = "";
this.siteName = ""; this.siteName = "";
this.platformId = null; this.platformId = null;
this.platformName = ""; this.platformName = "";
this.productId = null; this.productId = null;
this.productName = ""; this.productName = "";
this.skinId = null; this.skinId = null;
this.skinName = ""; this.skinName = "";
this.homeUrl = ""; this.homeUrl = "";
this.deviceFirmId = null; this.deviceFirmId = null;
this.deviceFirmname = ""; this.deviceFirmname = "";
this.deviceSrc = 2; this.deviceSrc = 2;
this.deviceDataSourceWay = 0; this.deviceDataSourceWay = 0;
this.lon = ""; this.lon = "";
this.lati = ""; this.lati = "";
this.deviceInBuilding = 0;
this.deviceInBuilding = null; this.deviceInFloor = 0;
this.defectsLiabilityPeriod = new Date();
this.deviceInFloor = null;
this.defectsLiabilityPeriod = null;
this.leadingOfficial = ""; this.leadingOfficial = "";
this.leadingOfficialTelephone = ""; this.leadingOfficialTelephone = "";
this.isReceiveMess = 0; this.isReceiveMess = 0;
this.devicePhotoPath = ""; this.devicePhotoPath = "";
this.ip = ""; this.ip = "";
this.centernum = ""; this.centernum = "";
this.port = ""; this.port = "";
this.deviceTopic = ""; this.deviceTopic = "";
this.deviceStatus = 0; this.deviceStatus = 0;
this.enabled = 0; this.enabled = 0;
this.deviceAuthCode = ""; this.deviceAuthCode = "";
this.deviceRemark = ""; this.deviceRemark = "";
this.onlineTime = new Date();
this.onlineTime = null; this.offlineTime = new Date();
this.offlineTime = null;
this.deleted = 0; this.deleted = 0;
this.source = 1; this.source = 1;
this.deviceSN = ""; this.deviceSN = "";
this.deviceVersion = ""; this.deviceVersion = "";
this.productCode = ""; this.productCode = "";
this.hallId = null; this.hallId = null;
this.hallName = ""; this.hallName = "";
this.showSms = 1; this.showSms = 1;
this.showPrint = 1; this.showPrint = 1;
this.showWechatQrCode = 1; this.showWechatQrCode = 1;
this.orgName = "";
this.resolution = "";
this.resolutionValue = "";
} }
} }
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