From c8faa15c88cff7b5d75afcb6469c5b1b7e1a670f Mon Sep 17 00:00:00 2001
From: liuhaonan <31457034@qq.com>
Date: 星期四, 18 八月 2022 17:31:59 +0800
Subject: [PATCH] changes

---
 ximon-admin/src/main/java/com/sandu/ximon/admin/service/LightReportDataService.java |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ximon-admin/src/main/java/com/sandu/ximon/admin/service/LightReportDataService.java b/ximon-admin/src/main/java/com/sandu/ximon/admin/service/LightReportDataService.java
index 1fe87b3..3ff5338 100644
--- a/ximon-admin/src/main/java/com/sandu/ximon/admin/service/LightReportDataService.java
+++ b/ximon-admin/src/main/java/com/sandu/ximon/admin/service/LightReportDataService.java
@@ -95,7 +95,7 @@
      * @param keyword    鍏抽敭璇�
      * @param deviceCode 璁惧鐮�
      */
-    public CommonPage listReportData(int pageNo, int pageSize, String keyword, String deviceCode,Integer order,Integer seq) {
+    public CommonPage listReportData(int pageNo, int pageSize, String keyword, String deviceCode, Integer order, Integer seq) {
 
         List<LightReportDataBo> lightReportDataBos = new ArrayList<>(pageSize);
         //鎺掑簭瀛楁
@@ -124,7 +124,7 @@
         }
         //鎺掑簭鏂瑰紡
         String orderBy = orderByResult + " " + orderBySeq;
-        CommonPage<String> stringCommonPage = SpringContextHolder.getBean(LightService.class).listDeviceCode(pageNo, pageSize, keyword, deviceCode,orderBy);
+        CommonPage<String> stringCommonPage = SpringContextHolder.getBean(LightService.class).listDeviceCode(pageNo, pageSize, keyword, deviceCode, orderBy);
         List<String> macList = stringCommonPage.getList();
         if (CollUtil.isEmpty(macList)) {
             return new CommonPage();
@@ -243,6 +243,12 @@
         }
         PageHelper.startPage(conditionVO.getPageNo(), conditionVO.getPageSize());
         List<LightReportData> list = list(Wrappers.lambdaQuery(LightReportData.class).eq(LightReportData::getDeviceCode, macCode));
+        list.forEach(
+                lightReportData -> {
+                    lightReportData.setCreateTime(lightReportData.getCreateTime1().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
+                    lightReportData.setUpdateTime(lightReportData.getUpdateTime1().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
+                }
+        );
         return list;
     }
 }

--
Gitblit v1.9.3