|
@@ -7,12 +7,11 @@ import com.wdkl.ncs.android.middleware.model.annotation.Id;
|
|
|
import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
|
|
|
import com.wdkl.ncs.android.middleware.model.annotation.Table;
|
|
|
|
|
|
+import java.io.Serializable;
|
|
|
+
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
|
-import java.io.Serializable;
|
|
|
-import java.util.Objects;
|
|
|
-
|
|
|
@Table(name = "ncs_device")
|
|
|
@ApiModel
|
|
|
@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
|
|
@@ -64,7 +63,7 @@ public class DeviceDO implements Serializable {
|
|
|
* 注册设备类型:1:护士主机 2:医生主机 3:门口机 4:病床分机 5:LCD走廊屏 6:LED点阵屏 7:护士腕表 8:护工腕表 9:病人腕表 10:手机App
|
|
|
*/
|
|
|
@Column(name = "device_type")
|
|
|
- @ApiModelProperty(value = "注册设备类型:1:护士主机 2:医生主机 3:门口机 4:病床分机 5:LCD走廊屏 6:LED点阵屏 7:移动设备 8:护工腕表 9:病人腕表 10:手机App", required = false)
|
|
|
+ @ApiModelProperty(value = "注册设备类型:1:护士主机 2:医生主机 3:门口机 4:病床分机 5:LCD走廊屏 6:LED点阵屏 7:护士腕表 8:护工腕表 9:病人腕表 10:手机App", required = false)
|
|
|
private Integer deviceType;
|
|
|
/**
|
|
|
* 注册设备出厂编号
|
|
@@ -109,10 +108,9 @@ public class DeviceDO implements Serializable {
|
|
|
@ApiModelProperty(value = "该设备的有线以太网卡分配的IP地址", required = false)
|
|
|
private String ethIp;
|
|
|
/**
|
|
|
- * 该设备的有线以太网卡分配的IP地址端口
|
|
|
- */
|
|
|
- @Column(name = "eth_ip_port")
|
|
|
- @ApiModelProperty(value = "该设备的有线以太网卡分配的IP地址端口", required = false)
|
|
|
+ * 该设备的有线以太网卡分配的IP地址端口
|
|
|
+ */ @Column(name = "eth_ip_port" )
|
|
|
+ @ApiModelProperty(value="该设备的有线以太网卡分配的IP地址端口",required=false)
|
|
|
private String ethIpPort;
|
|
|
/**
|
|
|
* 该设备的WIFI网卡MAC地址
|
|
@@ -171,38 +169,28 @@ public class DeviceDO implements Serializable {
|
|
|
/**
|
|
|
* null
|
|
|
*/
|
|
|
- @Column(name = "member_id", allowNullUpdate = true)
|
|
|
+ @Column(name = "member_id")
|
|
|
@ApiModelProperty(value = "null", required = false)
|
|
|
private Integer memberId;
|
|
|
/**
|
|
|
- * 是否为后备,空或否时为并行
|
|
|
- */
|
|
|
- @Column(name = "bool_backup")
|
|
|
- @ApiModelProperty(value = "是否为后备,空或否时为并行", required = false)
|
|
|
+ * 是否为后备,空或否时为并行
|
|
|
+ */ @Column(name = "bool_backup" )
|
|
|
+ @ApiModelProperty(value="是否为后备,空或否时为并行",required=false)
|
|
|
private Boolean boolBackup;
|
|
|
/**
|
|
|
- * 后备哪个设备,设备id
|
|
|
- */
|
|
|
- @Column(name = "backup_id")
|
|
|
- @ApiModelProperty(value = "后备哪个设备,设备id", required = false)
|
|
|
+ * 后备哪个设备,设备id
|
|
|
+ */ @Column(name = "backup_id" )
|
|
|
+ @ApiModelProperty(value="后备哪个设备,设备id",required=false)
|
|
|
private Integer backupId;
|
|
|
/**
|
|
|
- * null
|
|
|
- */
|
|
|
- @Column(name = "priority")
|
|
|
- @ApiModelProperty(value = "null", required = false)
|
|
|
+ * null
|
|
|
+ */ @Column(name = "priority" )
|
|
|
+ @ApiModelProperty(value="null",required=false)
|
|
|
private Integer priority;
|
|
|
|
|
|
- @Column(name = "config")
|
|
|
- @ApiModelProperty(value = "设备配置信息,看板设备有配置内容,已json格式存储", required = false)
|
|
|
- private String config; //
|
|
|
-
|
|
|
- /**
|
|
|
- * roleId
|
|
|
- */
|
|
|
- @Column(name = "role_id", allowNullUpdate = true)
|
|
|
- @ApiModelProperty(value = "roleId", required = false)
|
|
|
- private Integer roleId;
|
|
|
+ @Column(name = "full_name")
|
|
|
+ @ApiModelProperty(value = "病房病床名称", required = false)
|
|
|
+ private String fullName; // 空间结构全名
|
|
|
|
|
|
|
|
|
@PrimaryKeyField
|
|
@@ -241,6 +229,7 @@ public class DeviceDO implements Serializable {
|
|
|
this.updateTime = updateTime;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
public Integer getPartId() {
|
|
|
return partId;
|
|
|
}
|
|
@@ -409,6 +398,7 @@ public class DeviceDO implements Serializable {
|
|
|
this.sipId = sipId;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
public String getSipPassword() {
|
|
|
return sipPassword;
|
|
|
}
|
|
@@ -451,6 +441,14 @@ public class DeviceDO implements Serializable {
|
|
|
this.backupId = backupId;
|
|
|
}
|
|
|
|
|
|
+ public String getFullName() {
|
|
|
+ return fullName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setFullName(String fullName) {
|
|
|
+ this.fullName = fullName;
|
|
|
+ }
|
|
|
+
|
|
|
public Integer getPriority() {
|
|
|
return priority;
|
|
|
}
|
|
@@ -458,63 +456,4 @@ public class DeviceDO implements Serializable {
|
|
|
public void setPriority(Integer priority) {
|
|
|
this.priority = priority;
|
|
|
}
|
|
|
-
|
|
|
- public Integer getRoleId() {
|
|
|
- return roleId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setRoleId(Integer roleId) {
|
|
|
- this.roleId = roleId;
|
|
|
- }
|
|
|
-
|
|
|
- public String getConfig() {
|
|
|
- return config;
|
|
|
- }
|
|
|
-
|
|
|
- public void setConfig(String config) {
|
|
|
- this.config = config;
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public boolean equals(Object o) {
|
|
|
- if (this == o) return true;
|
|
|
- if (o == null || getClass() != o.getClass()) return false;
|
|
|
- DeviceDO deviceDO = (DeviceDO) o;
|
|
|
- return Objects.equals(id, deviceDO.id) &&
|
|
|
- Objects.equals(unionId, deviceDO.unionId) &&
|
|
|
- Objects.equals(createTime, deviceDO.createTime) &&
|
|
|
- Objects.equals(updateTime, deviceDO.updateTime) &&
|
|
|
- Objects.equals(partId, deviceDO.partId) &&
|
|
|
- Objects.equals(syncTime, deviceDO.syncTime) &&
|
|
|
- Objects.equals(frameId, deviceDO.frameId) &&
|
|
|
- Objects.equals(deviceType, deviceDO.deviceType) &&
|
|
|
- Objects.equals(code, deviceDO.code) &&
|
|
|
- Objects.equals(model, deviceDO.model) &&
|
|
|
- Objects.equals(softVer, deviceDO.softVer) &&
|
|
|
- Objects.equals(hardVer, deviceDO.hardVer) &&
|
|
|
- Objects.equals(name, deviceDO.name) &&
|
|
|
- Objects.equals(ethMac, deviceDO.ethMac) &&
|
|
|
- Objects.equals(ethIp, deviceDO.ethIp) &&
|
|
|
- Objects.equals(ethIpPort, deviceDO.ethIpPort) &&
|
|
|
- Objects.equals(wifiMac, deviceDO.wifiMac) &&
|
|
|
- Objects.equals(wifiIp, deviceDO.wifiIp) &&
|
|
|
- Objects.equals(wifiHostname, deviceDO.wifiHostname) &&
|
|
|
- Objects.equals(wifiPassword, deviceDO.wifiPassword) &&
|
|
|
- Objects.equals(status, deviceDO.status) &&
|
|
|
- Objects.equals(sipIp, deviceDO.sipIp) &&
|
|
|
- Objects.equals(sipId, deviceDO.sipId) &&
|
|
|
- Objects.equals(sipPassword, deviceDO.sipPassword) &&
|
|
|
- Objects.equals(sipStatus, deviceDO.sipStatus) &&
|
|
|
- Objects.equals(memberId, deviceDO.memberId) &&
|
|
|
- Objects.equals(boolBackup, deviceDO.boolBackup) &&
|
|
|
- Objects.equals(backupId, deviceDO.backupId) &&
|
|
|
- Objects.equals(priority, deviceDO.priority) &&
|
|
|
- Objects.equals(config, deviceDO.config) &&
|
|
|
- Objects.equals(roleId, deviceDO.roleId);
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public int hashCode() {
|
|
|
- return Objects.hash(id, unionId, createTime, updateTime, partId, syncTime, frameId, deviceType, code, model, softVer, hardVer, name, ethMac, ethIp, ethIpPort, wifiMac, wifiIp, wifiHostname, wifiPassword, status, sipIp, sipId, sipPassword, sipStatus, memberId, boolBackup, backupId, priority, config, roleId);
|
|
|
- }
|
|
|
}
|