From 2c071573000992ab033eb80265841df7b3d8dac9 Mon Sep 17 00:00:00 2001
From: zpl
Date: Sat, 9 Oct 2021 10:48:39 +0800
Subject: [PATCH] =?UTF-8?q?dnc=E8=AE=BE=E5=A4=87=E8=BF=90=E8=A1=8C?=
=?UTF-8?q?=E6=97=B6=E9=97=B4=E6=8E=A5=E5=8F=A3=E6=96=B0=E5=A2=9E=E5=BC=80?=
=?UTF-8?q?=E6=9C=BA=E6=97=B6=E9=97=B4=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../controller/ResourceRunTimeController.java | 3 ++-
.../mesnac/equip/model/ResourceRunTime.java | 21 +++++++++++++++----
.../impl/ResourceRunTimeServiceImpl.java | 9 +++++---
.../mapper/ResourceRunTimeMapper.xml | 18 +++++++++++++++-
4 files changed, 42 insertions(+), 9 deletions(-)
diff --git a/equip/src/main/java/com/foreverwin/mesnac/equip/controller/ResourceRunTimeController.java b/equip/src/main/java/com/foreverwin/mesnac/equip/controller/ResourceRunTimeController.java
index 07e4b424..1a085dab 100644
--- a/equip/src/main/java/com/foreverwin/mesnac/equip/controller/ResourceRunTimeController.java
+++ b/equip/src/main/java/com/foreverwin/mesnac/equip/controller/ResourceRunTimeController.java
@@ -16,7 +16,7 @@ import java.util.List;
/**
*
* @author pavel.liu
- * @since 2021-09-27
+ * @since 2021-10-09
*/
@RestController
@RequestMapping("/Z-RESOURCE-RUN-TIME")
@@ -69,6 +69,7 @@ public class ResourceRunTimeController {
queryWrapper.lambda().and(wrapper -> wrapper
.like(ResourceRunTime::getHandle, frontPage.getGlobalQuery())
.or().like(ResourceRunTime::getSite, frontPage.getGlobalQuery())
+ .or().like(ResourceRunTime::getSendDate, frontPage.getGlobalQuery())
.or().like(ResourceRunTime::getResrce, frontPage.getGlobalQuery())
.or().like(ResourceRunTime::getCreatedUser, frontPage.getGlobalQuery())
.or().like(ResourceRunTime::getModifiedUser, frontPage.getGlobalQuery())
diff --git a/equip/src/main/java/com/foreverwin/mesnac/equip/model/ResourceRunTime.java b/equip/src/main/java/com/foreverwin/mesnac/equip/model/ResourceRunTime.java
index 4beeb7dd..be7b7a7b 100644
--- a/equip/src/main/java/com/foreverwin/mesnac/equip/model/ResourceRunTime.java
+++ b/equip/src/main/java/com/foreverwin/mesnac/equip/model/ResourceRunTime.java
@@ -16,7 +16,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
*
*
* @author pavel.liu
- * @since 2021-09-27
+ * @since 2021-10-09
*/
@TableName("Z_RESOURCE_RUN_TIME")
@@ -30,11 +30,13 @@ public class ResourceRunTime extends Model {
@TableField("SITE")
private String site;
@TableField("SEND_DATE")
- private LocalDateTime sendDate;
+ private String sendDate;
@TableField("RESRCE")
private String resrce;
@TableField("RUN_TIME")
private Double runTime;
+ @TableField("UP_TIME")
+ private LocalDateTime upTime;
@TableField("CREATED_USER")
private String createdUser;
@TableField("CREATED_DATA_TIME")
@@ -61,11 +63,11 @@ public class ResourceRunTime extends Model {
this.site = site;
}
- public LocalDateTime getSendDate() {
+ public String getSendDate() {
return sendDate;
}
- public void setSendDate(LocalDateTime sendDate) {
+ public void setSendDate(String sendDate) {
this.sendDate = sendDate;
}
@@ -85,6 +87,14 @@ public class ResourceRunTime extends Model {
this.runTime = runTime;
}
+ public LocalDateTime getUpTime() {
+ return upTime;
+ }
+
+ public void setUpTime(LocalDateTime upTime) {
+ this.upTime = upTime;
+ }
+
public String getCreatedUser() {
return createdUser;
}
@@ -127,6 +137,8 @@ public static final String RESRCE = "RESRCE";
public static final String RUN_TIME = "RUN_TIME";
+public static final String UP_TIME = "UP_TIME";
+
public static final String CREATED_USER = "CREATED_USER";
public static final String CREATED_DATA_TIME = "CREATED_DATA_TIME";
@@ -149,6 +161,7 @@ public static final String MODIFIED_DATE_TIME = "MODIFIED_DATE_TIME";
", sendDate = " + sendDate +
", resrce = " + resrce +
", runTime = " + runTime +
+ ", upTime = " + upTime +
", createdUser = " + createdUser +
", createdDataTime = " + createdDataTime +
", modifiedUser = " + modifiedUser +
diff --git a/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceRunTimeServiceImpl.java b/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceRunTimeServiceImpl.java
index 92385681..c3b7065d 100644
--- a/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceRunTimeServiceImpl.java
+++ b/equip/src/main/java/com/foreverwin/mesnac/equip/service/impl/ResourceRunTimeServiceImpl.java
@@ -62,9 +62,7 @@ public class ResourceRunTimeServiceImpl extends ServiceImpl
+
@@ -17,7 +18,7 @@
- HANDLE, SITE, SEND_DATE, RESRCE, RUN_TIME, CREATED_USER, CREATED_DATA_TIME, MODIFIED_USER, MODIFIED_DATE_TIME
+ HANDLE, SITE, SEND_DATE, RESRCE, RUN_TIME, UP_TIME, CREATED_USER, CREATED_DATA_TIME, MODIFIED_USER, MODIFIED_DATE_TIME
@@ -56,6 +57,7 @@
AND SEND_DATE=#{ew.entity.sendDate}
AND RESRCE=#{ew.entity.resrce}
AND RUN_TIME=#{ew.entity.runTime}
+ AND UP_TIME=#{ew.entity.upTime}
AND CREATED_USER=#{ew.entity.createdUser}
AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}
AND MODIFIED_USER=#{ew.entity.modifiedUser}
@@ -75,6 +77,7 @@
AND SEND_DATE=#{ew.entity.sendDate}
AND RESRCE=#{ew.entity.resrce}
AND RUN_TIME=#{ew.entity.runTime}
+ AND UP_TIME=#{ew.entity.upTime}
AND CREATED_USER=#{ew.entity.createdUser}
AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}
AND MODIFIED_USER=#{ew.entity.modifiedUser}
@@ -102,6 +105,7 @@
AND SEND_DATE=#{ew.entity.sendDate}
AND RESRCE=#{ew.entity.resrce}
AND RUN_TIME=#{ew.entity.runTime}
+ AND UP_TIME=#{ew.entity.upTime}
AND CREATED_USER=#{ew.entity.createdUser}
AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}
AND MODIFIED_USER=#{ew.entity.modifiedUser}
@@ -129,6 +133,7 @@
AND SEND_DATE=#{ew.entity.sendDate}
AND RESRCE=#{ew.entity.resrce}
AND RUN_TIME=#{ew.entity.runTime}
+ AND UP_TIME=#{ew.entity.upTime}
AND CREATED_USER=#{ew.entity.createdUser}
AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}
AND MODIFIED_USER=#{ew.entity.modifiedUser}
@@ -156,6 +161,7 @@
AND SEND_DATE=#{ew.entity.sendDate}
AND RESRCE=#{ew.entity.resrce}
AND RUN_TIME=#{ew.entity.runTime}
+ AND UP_TIME=#{ew.entity.upTime}
AND CREATED_USER=#{ew.entity.createdUser}
AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}
AND MODIFIED_USER=#{ew.entity.modifiedUser}
@@ -183,6 +189,7 @@
AND SEND_DATE=#{ew.entity.sendDate}
AND RESRCE=#{ew.entity.resrce}
AND RUN_TIME=#{ew.entity.runTime}
+ AND UP_TIME=#{ew.entity.upTime}
AND CREATED_USER=#{ew.entity.createdUser}
AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}
AND MODIFIED_USER=#{ew.entity.modifiedUser}
@@ -210,6 +217,7 @@
AND SEND_DATE=#{ew.entity.sendDate}
AND RESRCE=#{ew.entity.resrce}
AND RUN_TIME=#{ew.entity.runTime}
+ AND UP_TIME=#{ew.entity.upTime}
AND CREATED_USER=#{ew.entity.createdUser}
AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}
AND MODIFIED_USER=#{ew.entity.modifiedUser}
@@ -233,6 +241,7 @@
SEND_DATE,
RESRCE,
RUN_TIME,
+ UP_TIME,
CREATED_USER,
CREATED_DATA_TIME,
MODIFIED_USER,
@@ -244,6 +253,7 @@
#{sendDate},
#{resrce},
#{runTime},
+ #{upTime},
#{createdUser},
#{createdDataTime},
#{modifiedUser},
@@ -262,6 +272,7 @@
#{sendDate},
#{resrce},
#{runTime},
+ #{upTime},
#{createdUser},
#{createdDataTime},
#{modifiedUser},
@@ -276,6 +287,7 @@
SEND_DATE=#{et.sendDate},
RESRCE=#{et.resrce},
RUN_TIME=#{et.runTime},
+ UP_TIME=#{et.upTime},
CREATED_USER=#{et.createdUser},
CREATED_DATA_TIME=#{et.createdDataTime},
MODIFIED_USER=#{et.modifiedUser},
@@ -290,6 +302,7 @@
SEND_DATE=#{et.sendDate},
RESRCE=#{et.resrce},
RUN_TIME=#{et.runTime},
+ UP_TIME=#{et.upTime},
CREATED_USER=#{et.createdUser},
CREATED_DATA_TIME=#{et.createdDataTime},
MODIFIED_USER=#{et.modifiedUser},
@@ -304,6 +317,7 @@
SEND_DATE=#{et.sendDate},
RESRCE=#{et.resrce},
RUN_TIME=#{et.runTime},
+ UP_TIME=#{et.upTime},
CREATED_USER=#{et.createdUser},
CREATED_DATA_TIME=#{et.createdDataTime},
MODIFIED_USER=#{et.modifiedUser},
@@ -317,6 +331,7 @@
AND SEND_DATE=#{ew.entity.sendDate}
AND RESRCE=#{ew.entity.resrce}
AND RUN_TIME=#{ew.entity.runTime}
+ AND UP_TIME=#{ew.entity.upTime}
AND CREATED_USER=#{ew.entity.createdUser}
AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}
AND MODIFIED_USER=#{ew.entity.modifiedUser}
@@ -361,6 +376,7 @@
AND SEND_DATE=#{ew.entity.sendDate}
AND RESRCE=#{ew.entity.resrce}
AND RUN_TIME=#{ew.entity.runTime}
+ AND UP_TIME=#{ew.entity.upTime}
AND CREATED_USER=#{ew.entity.createdUser}
AND CREATED_DATA_TIME=#{ew.entity.createdDataTime}
AND MODIFIED_USER=#{ew.entity.modifiedUser}