From aaa42c070d59c46ff0ed42a1d2748df6dd6a06d7 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期一, 05 六月 2023 16:05:22 +0800
Subject: [PATCH] 添加Voc操作接口

---
 src/main/java/com/yssh/controller/WarningAnalyseController.java |   31 ++++++++++++++++---------------
 1 files changed, 16 insertions(+), 15 deletions(-)

diff --git a/src/main/java/com/yssh/controller/WarningAnalyseController.java b/src/main/java/com/yssh/controller/WarningAnalyseController.java
index 930e7ae..2070733 100644
--- a/src/main/java/com/yssh/controller/WarningAnalyseController.java
+++ b/src/main/java/com/yssh/controller/WarningAnalyseController.java
@@ -79,14 +79,15 @@
         Object obj = CacheUtils.get(key);
         Map<String, List<Double>> map;
 
-        if (null != obj) {
-            map = (Map<String, List<Double>>) obj;
-        } else {
-            map = warningService.selectEachLocationDataChange();
-            if (null != map && map.size() > 0) {
-                CacheUtils.put(key, map);
-            }
-        }
+        //if (null != obj) {
+        //    map = (Map<String, List<Double>>) obj;
+        //} else {
+            //map = warningService.selectEachLocationDataChange();
+            map = warningService.select3Hours();
+        //    if (null != map && map.size() > 0) {
+        //        CacheUtils.put(key, map);
+        //    }
+        //}
 
         return Result.ok(map);
     }
@@ -101,15 +102,15 @@
         Object obj = CacheUtils.get(key);
         List<Qxsh> list;
 
-        if (null != obj) {
-            list = (List<Qxsh>) obj;
-        } else {
+        //if (null != obj) {
+        //    list = (List<Qxsh>) obj;
+        //} else {
             //list = warningService.selectThisMonthLocationValueDataTop10();
             list = warningService.selectMonthTop10();
-            if (null != list && list.size() > 0) {
-                CacheUtils.put(key, list);
-            }
-        }
+        //    if (null != list && list.size() > 0) {
+        //        CacheUtils.put(key, list);
+        //    }
+        //}
 
         return Result.ok(list);
     }

--
Gitblit v1.9.3