feat: 数据库调整字段

This commit is contained in:
niushuai233 2022-10-24 16:10:45 +08:00
parent c968d44f1e
commit e000f72f07
2 changed files with 35 additions and 6 deletions

View File

@ -24,6 +24,12 @@ public class CommandExt {
@Index @Index
private Long deviceId; private Long deviceId;
/**
* key 备用字段
*/
@Index
private String key;
/** /**
* 命令 * 命令
*/ */
@ -44,11 +50,12 @@ public class CommandExt {
*/ */
private String createTime; private String createTime;
@Generated(hash = 101490941) @Generated(hash = 704236641)
public CommandExt(Long id, Long deviceId, String command, Integer order, public CommandExt(Long id, Long deviceId, String key, String command,
String remark, String createTime) { Integer order, String remark, String createTime) {
this.id = id; this.id = id;
this.deviceId = deviceId; this.deviceId = deviceId;
this.key = key;
this.command = command; this.command = command;
this.order = order; this.order = order;
this.remark = remark; this.remark = remark;
@ -107,4 +114,12 @@ public class CommandExt {
this.remark = remark; this.remark = remark;
} }
public String getKey() {
return this.key;
}
public void setKey(String key) {
this.key = key;
}
} }

View File

@ -59,6 +59,11 @@ public class Device implements Serializable {
*/ */
private String commandPath; private String commandPath;
/**
* 查询状态参数
*/
private String commandStatus;
/** /**
* 开启参数 * 开启参数
*/ */
@ -84,11 +89,11 @@ public class Device implements Serializable {
*/ */
private String createTime; private String createTime;
@Generated(hash = 2026639556) @Generated(hash = 94069086)
public Device(Long id, Integer order, String deviceName, String deviceType, public Device(Long id, Integer order, String deviceName, String deviceType,
String onOff, String description, Integer iconId, String commandPath, String onOff, String description, Integer iconId, String commandPath,
String commandOpen, String commandClose, Integer isDeleted, String commandStatus, String commandOpen, String commandClose,
String remark, String createTime) { Integer isDeleted, String remark, String createTime) {
this.id = id; this.id = id;
this.order = order; this.order = order;
this.deviceName = deviceName; this.deviceName = deviceName;
@ -97,6 +102,7 @@ public class Device implements Serializable {
this.description = description; this.description = description;
this.iconId = iconId; this.iconId = iconId;
this.commandPath = commandPath; this.commandPath = commandPath;
this.commandStatus = commandStatus;
this.commandOpen = commandOpen; this.commandOpen = commandOpen;
this.commandClose = commandClose; this.commandClose = commandClose;
this.isDeleted = isDeleted; this.isDeleted = isDeleted;
@ -211,4 +217,12 @@ public class Device implements Serializable {
public void setCreateTime(String createTime) { public void setCreateTime(String createTime) {
this.createTime = createTime; this.createTime = createTime;
} }
public String getCommandStatus() {
return this.commandStatus;
}
public void setCommandStatus(String commandStatus) {
this.commandStatus = commandStatus;
}
} }