diff --git a/equip/src/main/java/com/foreverwin/mesnac/equip/controller/ResourceFaultReceiveController.java b/equip/src/main/java/com/foreverwin/mesnac/equip/controller/ResourceFaultReceiveController.java
index 4d79e3a3..7f980a4a 100644
--- a/equip/src/main/java/com/foreverwin/mesnac/equip/controller/ResourceFaultReceiveController.java
+++ b/equip/src/main/java/com/foreverwin/mesnac/equip/controller/ResourceFaultReceiveController.java
@@ -71,6 +71,7 @@ public class ResourceFaultReceiveController {
.or().like(ResourceFaultReceive::getSite, frontPage.getGlobalQuery())
.or().like(ResourceFaultReceive::getResrce, frontPage.getGlobalQuery())
.or().like(ResourceFaultReceive::getFaultCode, frontPage.getGlobalQuery())
+ .or().like(ResourceFaultReceive::getDescription, frontPage.getGlobalQuery())
.or().like(ResourceFaultReceive::getCreateUser, frontPage.getGlobalQuery())
.or().like(ResourceFaultReceive::getModifyUser, frontPage.getGlobalQuery())
);
diff --git a/equip/src/main/java/com/foreverwin/mesnac/equip/model/ResourceFaultReceive.java b/equip/src/main/java/com/foreverwin/mesnac/equip/model/ResourceFaultReceive.java
index e59fe868..d4baa264 100644
--- a/equip/src/main/java/com/foreverwin/mesnac/equip/model/ResourceFaultReceive.java
+++ b/equip/src/main/java/com/foreverwin/mesnac/equip/model/ResourceFaultReceive.java
@@ -12,11 +12,11 @@ import com.baomidou.mybatisplus.annotation.IdType;
/**
*
- * 设备故障信息接收表-接口
+ *
*
*
- * @author pavel.Liu
- * @since 2021-07-13
+ * @author pavel.liu
+ * @since 2021-09-09
*/
@TableName("Z_RESOURCE_FAULT_RECEIVE")
@@ -25,49 +25,24 @@ public class ResourceFaultReceive extends Model {
private static final long serialVersionUID = 1L;
- /**
- * 主键
- */
@TableId(value = "HANDLE", type = IdType.INPUT)
private String handle;
- /**
- * 站点
- */
@TableField("SITE")
private String site;
- /**
- * 设备编号
- */
@TableField("RESRCE")
private String resrce;
- /**
- * 设备故障编码
- */
@TableField("FAULT_CODE")
private String faultCode;
- /**
- * 故障接收时间
- */
+ @TableField("DESCRIPTION")
+ private String description;
@TableField("FAULT_DATE")
private LocalDateTime faultDate;
- /**
- * 创建人
- */
@TableField("CREATE_USER")
private String createUser;
- /**
- * 创建时间
- */
@TableField("CREATED_DATE_TIME")
private LocalDateTime createdDateTime;
- /**
- * 修改人
- */
@TableField("MODIFY_USER")
private String modifyUser;
- /**
- * 修改时间
- */
@TableField("MODIFIED_DATE_TIME")
private LocalDateTime modifiedDateTime;
@@ -104,6 +79,14 @@ public class ResourceFaultReceive extends Model {
this.faultCode = faultCode;
}
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
public LocalDateTime getFaultDate() {
return faultDate;
}
@@ -152,6 +135,8 @@ public static final String RESRCE = "RESRCE";
public static final String FAULT_CODE = "FAULT_CODE";
+public static final String DESCRIPTION = "DESCRIPTION";
+
public static final String FAULT_DATE = "FAULT_DATE";
public static final String CREATE_USER = "CREATE_USER";
@@ -175,6 +160,7 @@ public static final String MODIFIED_DATE_TIME = "MODIFIED_DATE_TIME";
", site = " + site +
", resrce = " + resrce +
", faultCode = " + faultCode +
+ ", description = " + description +
", faultDate = " + faultDate +
", createUser = " + createUser +
", createdDateTime = " + createdDateTime +
diff --git a/equip/src/main/java/com/foreverwin/mesnac/equip/model/ResourceStatusReceive.java b/equip/src/main/java/com/foreverwin/mesnac/equip/model/ResourceStatusReceive.java
index 2e3bf6d9..9a6945ec 100644
--- a/equip/src/main/java/com/foreverwin/mesnac/equip/model/ResourceStatusReceive.java
+++ b/equip/src/main/java/com/foreverwin/mesnac/equip/model/ResourceStatusReceive.java
@@ -12,11 +12,11 @@ import com.baomidou.mybatisplus.annotation.IdType;
/**
*
- * 设备状态表-接口
+ *
*
*
- * @author pavel.Liu
- * @since 2021-07-13
+ * @author pavel.liu
+ * @since 2021-09-09
*/
@TableName("Z_RESOURCE_STATUS_RECEIVE")
@@ -25,64 +25,20 @@ public class ResourceStatusReceive extends Model {
private static final long serialVersionUID = 1L;
- /**
- * 主键
- */
@TableId(value = "HANDLE", type = IdType.INPUT)
private String handle;
- /**
- * 站点
- */
@TableField("SITE")
private String site;
- /**
- * 设备编号
- */
@TableField("RESRCE")
private String resrce;
- /**
- * 当前状态
- */
@TableField("STATUS")
private String status;
- /**
- * 当前状态获取时间
- */
- @TableField("DATE_TIME")
- private LocalDateTime dateTime;
- /**
- * 接收的状态
- */
- @TableField("CHANGE_STATUS")
- private String changeStatus;
- /**
- * 接收时间
- */
- @TableField("CHANGE_DATE_TIME")
- private LocalDateTime changeDateTime;
- /**
- * 间隔时间
- */
- @TableField("INTERVAL_TIME")
- private Double intervalTime;
- /**
- * 创建人
- */
@TableField("CREATE_USER")
private String createUser;
- /**
- * 创建时间
- */
@TableField("CREATED_DATE_TIME")
private LocalDateTime createdDateTime;
- /**
- * 修改人
- */
@TableField("MODIFY_USER")
private String modifyUser;
- /**
- * 修改时间
- */
@TableField("MODIFIED_DATE_TIME")
private LocalDateTime modifiedDateTime;
@@ -119,38 +75,6 @@ public class ResourceStatusReceive extends Model {
this.status = status;
}
- public LocalDateTime getDateTime() {
- return dateTime;
- }
-
- public void setDateTime(LocalDateTime dateTime) {
- this.dateTime = dateTime;
- }
-
- public String getChangeStatus() {
- return changeStatus;
- }
-
- public void setChangeStatus(String changeStatus) {
- this.changeStatus = changeStatus;
- }
-
- public LocalDateTime getChangeDateTime() {
- return changeDateTime;
- }
-
- public void setChangeDateTime(LocalDateTime changeDateTime) {
- this.changeDateTime = changeDateTime;
- }
-
- public Double getIntervalTime() {
- return intervalTime;
- }
-
- public void setIntervalTime(Double intervalTime) {
- this.intervalTime = intervalTime;
- }
-
public String getCreateUser() {
return createUser;
}
@@ -191,14 +115,6 @@ public static final String RESRCE = "RESRCE";
public static final String STATUS = "STATUS";
-public static final String DATE_TIME = "DATE_TIME";
-
-public static final String CHANGE_STATUS = "CHANGE_STATUS";
-
-public static final String CHANGE_DATE_TIME = "CHANGE_DATE_TIME";
-
-public static final String INTERVAL_TIME = "INTERVAL_TIME";
-
public static final String CREATE_USER = "CREATE_USER";
public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";
@@ -220,10 +136,6 @@ public static final String MODIFIED_DATE_TIME = "MODIFIED_DATE_TIME";
", site = " + site +
", resrce = " + resrce +
", status = " + status +
- ", dateTime = " + dateTime +
- ", changeStatus = " + changeStatus +
- ", changeDateTime = " + changeDateTime +
- ", intervalTime = " + intervalTime +
", createUser = " + createUser +
", createdDateTime = " + createdDateTime +
", modifyUser = " + modifyUser +
diff --git a/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceFaultReceiveServiceImpl.java b/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceFaultReceiveServiceImpl.java
index 6885f20b..e4f10a97 100644
--- a/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceFaultReceiveServiceImpl.java
+++ b/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceFaultReceiveServiceImpl.java
@@ -116,6 +116,8 @@ public class ResourceFaultReceiveServiceImpl extends ServiceImpl
+
@@ -17,7 +18,7 @@
- HANDLE, SITE, RESRCE, FAULT_CODE, FAULT_DATE, CREATE_USER, CREATED_DATE_TIME, MODIFY_USER, MODIFIED_DATE_TIME
+ HANDLE, SITE, RESRCE, FAULT_CODE, DESCRIPTION, FAULT_DATE, CREATE_USER, CREATED_DATE_TIME, MODIFY_USER, MODIFIED_DATE_TIME
@@ -55,6 +56,7 @@
AND SITE=#{ew.entity.site}
AND RESRCE=#{ew.entity.resrce}
AND FAULT_CODE=#{ew.entity.faultCode}
+ AND DESCRIPTION=#{ew.entity.description}
AND FAULT_DATE=#{ew.entity.faultDate}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
@@ -74,6 +76,7 @@
AND SITE=#{ew.entity.site}
AND RESRCE=#{ew.entity.resrce}
AND FAULT_CODE=#{ew.entity.faultCode}
+ AND DESCRIPTION=#{ew.entity.description}
AND FAULT_DATE=#{ew.entity.faultDate}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
@@ -101,6 +104,7 @@
AND SITE=#{ew.entity.site}
AND RESRCE=#{ew.entity.resrce}
AND FAULT_CODE=#{ew.entity.faultCode}
+ AND DESCRIPTION=#{ew.entity.description}
AND FAULT_DATE=#{ew.entity.faultDate}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
@@ -128,6 +132,7 @@
AND SITE=#{ew.entity.site}
AND RESRCE=#{ew.entity.resrce}
AND FAULT_CODE=#{ew.entity.faultCode}
+ AND DESCRIPTION=#{ew.entity.description}
AND FAULT_DATE=#{ew.entity.faultDate}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
@@ -155,6 +160,7 @@
AND SITE=#{ew.entity.site}
AND RESRCE=#{ew.entity.resrce}
AND FAULT_CODE=#{ew.entity.faultCode}
+ AND DESCRIPTION=#{ew.entity.description}
AND FAULT_DATE=#{ew.entity.faultDate}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
@@ -182,6 +188,7 @@
AND SITE=#{ew.entity.site}
AND RESRCE=#{ew.entity.resrce}
AND FAULT_CODE=#{ew.entity.faultCode}
+ AND DESCRIPTION=#{ew.entity.description}
AND FAULT_DATE=#{ew.entity.faultDate}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
@@ -209,6 +216,7 @@
AND SITE=#{ew.entity.site}
AND RESRCE=#{ew.entity.resrce}
AND FAULT_CODE=#{ew.entity.faultCode}
+ AND DESCRIPTION=#{ew.entity.description}
AND FAULT_DATE=#{ew.entity.faultDate}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
@@ -232,6 +240,7 @@
SITE,
RESRCE,
FAULT_CODE,
+ DESCRIPTION,
FAULT_DATE,
CREATE_USER,
CREATED_DATE_TIME,
@@ -243,6 +252,7 @@
#{site},
#{resrce},
#{faultCode},
+ #{description},
#{faultDate},
#{createUser},
#{createdDateTime},
@@ -261,6 +271,7 @@
#{site},
#{resrce},
#{faultCode},
+ #{description},
#{faultDate},
#{createUser},
#{createdDateTime},
@@ -275,6 +286,7 @@
SITE=#{et.site},
RESRCE=#{et.resrce},
FAULT_CODE=#{et.faultCode},
+ DESCRIPTION=#{et.description},
FAULT_DATE=#{et.faultDate},
CREATE_USER=#{et.createUser},
CREATED_DATE_TIME=#{et.createdDateTime},
@@ -289,6 +301,7 @@
SITE=#{et.site},
RESRCE=#{et.resrce},
FAULT_CODE=#{et.faultCode},
+ DESCRIPTION=#{et.description},
FAULT_DATE=#{et.faultDate},
CREATE_USER=#{et.createUser},
CREATED_DATE_TIME=#{et.createdDateTime},
@@ -303,6 +316,7 @@
SITE=#{et.site},
RESRCE=#{et.resrce},
FAULT_CODE=#{et.faultCode},
+ DESCRIPTION=#{et.description},
FAULT_DATE=#{et.faultDate},
CREATE_USER=#{et.createUser},
CREATED_DATE_TIME=#{et.createdDateTime},
@@ -316,6 +330,7 @@
AND SITE=#{ew.entity.site}
AND RESRCE=#{ew.entity.resrce}
AND FAULT_CODE=#{ew.entity.faultCode}
+ AND DESCRIPTION=#{ew.entity.description}
AND FAULT_DATE=#{ew.entity.faultDate}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
@@ -360,6 +375,7 @@
AND SITE=#{ew.entity.site}
AND RESRCE=#{ew.entity.resrce}
AND FAULT_CODE=#{ew.entity.faultCode}
+ AND DESCRIPTION=#{ew.entity.description}
AND FAULT_DATE=#{ew.entity.faultDate}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
diff --git a/equip/src/main/resources/mapper/ResourceStatusReceiveMapper.xml b/equip/src/main/resources/mapper/ResourceStatusReceiveMapper.xml
index f9d400c2..a6377cfb 100644
--- a/equip/src/main/resources/mapper/ResourceStatusReceiveMapper.xml
+++ b/equip/src/main/resources/mapper/ResourceStatusReceiveMapper.xml
@@ -8,10 +8,6 @@
-
-
-
-
@@ -20,7 +16,7 @@
- HANDLE, SITE, RESRCE, STATUS, DATE_TIME, CHANGE_STATUS, CHANGE_DATE_TIME, INTERVAL_TIME, CREATE_USER, CREATED_DATE_TIME, MODIFY_USER, MODIFIED_DATE_TIME
+ HANDLE, SITE, RESRCE, STATUS, CREATE_USER, CREATED_DATE_TIME, MODIFY_USER, MODIFIED_DATE_TIME
@@ -58,10 +54,6 @@
AND SITE=#{ew.entity.site}
AND RESRCE=#{ew.entity.resrce}
AND STATUS=#{ew.entity.status}
- AND DATE_TIME=#{ew.entity.dateTime}
- AND CHANGE_STATUS=#{ew.entity.changeStatus}
- AND CHANGE_DATE_TIME=#{ew.entity.changeDateTime}
- AND INTERVAL_TIME=#{ew.entity.intervalTime}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND MODIFY_USER=#{ew.entity.modifyUser}
@@ -80,10 +72,6 @@
AND SITE=#{ew.entity.site}
AND RESRCE=#{ew.entity.resrce}
AND STATUS=#{ew.entity.status}
- AND DATE_TIME=#{ew.entity.dateTime}
- AND CHANGE_STATUS=#{ew.entity.changeStatus}
- AND CHANGE_DATE_TIME=#{ew.entity.changeDateTime}
- AND INTERVAL_TIME=#{ew.entity.intervalTime}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND MODIFY_USER=#{ew.entity.modifyUser}
@@ -110,10 +98,6 @@
AND SITE=#{ew.entity.site}
AND RESRCE=#{ew.entity.resrce}
AND STATUS=#{ew.entity.status}
- AND DATE_TIME=#{ew.entity.dateTime}
- AND CHANGE_STATUS=#{ew.entity.changeStatus}
- AND CHANGE_DATE_TIME=#{ew.entity.changeDateTime}
- AND INTERVAL_TIME=#{ew.entity.intervalTime}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND MODIFY_USER=#{ew.entity.modifyUser}
@@ -140,10 +124,6 @@
AND SITE=#{ew.entity.site}
AND RESRCE=#{ew.entity.resrce}
AND STATUS=#{ew.entity.status}
- AND DATE_TIME=#{ew.entity.dateTime}
- AND CHANGE_STATUS=#{ew.entity.changeStatus}
- AND CHANGE_DATE_TIME=#{ew.entity.changeDateTime}
- AND INTERVAL_TIME=#{ew.entity.intervalTime}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND MODIFY_USER=#{ew.entity.modifyUser}
@@ -170,10 +150,6 @@
AND SITE=#{ew.entity.site}
AND RESRCE=#{ew.entity.resrce}
AND STATUS=#{ew.entity.status}
- AND DATE_TIME=#{ew.entity.dateTime}
- AND CHANGE_STATUS=#{ew.entity.changeStatus}
- AND CHANGE_DATE_TIME=#{ew.entity.changeDateTime}
- AND INTERVAL_TIME=#{ew.entity.intervalTime}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND MODIFY_USER=#{ew.entity.modifyUser}
@@ -200,10 +176,6 @@
AND SITE=#{ew.entity.site}
AND RESRCE=#{ew.entity.resrce}
AND STATUS=#{ew.entity.status}
- AND DATE_TIME=#{ew.entity.dateTime}
- AND CHANGE_STATUS=#{ew.entity.changeStatus}
- AND CHANGE_DATE_TIME=#{ew.entity.changeDateTime}
- AND INTERVAL_TIME=#{ew.entity.intervalTime}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND MODIFY_USER=#{ew.entity.modifyUser}
@@ -230,10 +202,6 @@
AND SITE=#{ew.entity.site}
AND RESRCE=#{ew.entity.resrce}
AND STATUS=#{ew.entity.status}
- AND DATE_TIME=#{ew.entity.dateTime}
- AND CHANGE_STATUS=#{ew.entity.changeStatus}
- AND CHANGE_DATE_TIME=#{ew.entity.changeDateTime}
- AND INTERVAL_TIME=#{ew.entity.intervalTime}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND MODIFY_USER=#{ew.entity.modifyUser}
@@ -256,10 +224,6 @@
SITE,
RESRCE,
STATUS,
- DATE_TIME,
- CHANGE_STATUS,
- CHANGE_DATE_TIME,
- INTERVAL_TIME,
CREATE_USER,
CREATED_DATE_TIME,
MODIFY_USER,
@@ -270,10 +234,6 @@
#{site},
#{resrce},
#{status},
- #{dateTime},
- #{changeStatus},
- #{changeDateTime},
- #{intervalTime},
#{createUser},
#{createdDateTime},
#{modifyUser},
@@ -291,10 +251,6 @@
#{site},
#{resrce},
#{status},
- #{dateTime},
- #{changeStatus},
- #{changeDateTime},
- #{intervalTime},
#{createUser},
#{createdDateTime},
#{modifyUser},
@@ -308,10 +264,6 @@
SITE=#{et.site},
RESRCE=#{et.resrce},
STATUS=#{et.status},
- DATE_TIME=#{et.dateTime},
- CHANGE_STATUS=#{et.changeStatus},
- CHANGE_DATE_TIME=#{et.changeDateTime},
- INTERVAL_TIME=#{et.intervalTime},
CREATE_USER=#{et.createUser},
CREATED_DATE_TIME=#{et.createdDateTime},
MODIFY_USER=#{et.modifyUser},
@@ -325,10 +277,6 @@
SITE=#{et.site},
RESRCE=#{et.resrce},
STATUS=#{et.status},
- DATE_TIME=#{et.dateTime},
- CHANGE_STATUS=#{et.changeStatus},
- CHANGE_DATE_TIME=#{et.changeDateTime},
- INTERVAL_TIME=#{et.intervalTime},
CREATE_USER=#{et.createUser},
CREATED_DATE_TIME=#{et.createdDateTime},
MODIFY_USER=#{et.modifyUser},
@@ -342,10 +290,6 @@
SITE=#{et.site},
RESRCE=#{et.resrce},
STATUS=#{et.status},
- DATE_TIME=#{et.dateTime},
- CHANGE_STATUS=#{et.changeStatus},
- CHANGE_DATE_TIME=#{et.changeDateTime},
- INTERVAL_TIME=#{et.intervalTime},
CREATE_USER=#{et.createUser},
CREATED_DATE_TIME=#{et.createdDateTime},
MODIFY_USER=#{et.modifyUser},
@@ -358,10 +302,6 @@
AND SITE=#{ew.entity.site}
AND RESRCE=#{ew.entity.resrce}
AND STATUS=#{ew.entity.status}
- AND DATE_TIME=#{ew.entity.dateTime}
- AND CHANGE_STATUS=#{ew.entity.changeStatus}
- AND CHANGE_DATE_TIME=#{ew.entity.changeDateTime}
- AND INTERVAL_TIME=#{ew.entity.intervalTime}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND MODIFY_USER=#{ew.entity.modifyUser}
@@ -405,10 +345,6 @@
AND SITE=#{ew.entity.site}
AND RESRCE=#{ew.entity.resrce}
AND STATUS=#{ew.entity.status}
- AND DATE_TIME=#{ew.entity.dateTime}
- AND CHANGE_STATUS=#{ew.entity.changeStatus}
- AND CHANGE_DATE_TIME=#{ew.entity.changeDateTime}
- AND INTERVAL_TIME=#{ew.entity.intervalTime}
AND CREATE_USER=#{ew.entity.createUser}
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND MODIFY_USER=#{ew.entity.modifyUser}
@@ -434,15 +370,14 @@
-