燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-05-24 b8a02f8d72f56d0d18565e60133247187b7b4521
src/main/java/com/yssh/controller/WarningAnalyseController.java
@@ -79,15 +79,15 @@
        Object obj = CacheUtils.get(key);
        Map<String, List<Double>> map;
        if (null != obj) {
            map = (Map<String, List<Double>>) obj;
        } else {
        //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);
            }
        }
        //    if (null != map && map.size() > 0) {
        //        CacheUtils.put(key, map);
        //    }
        //}
        return Result.ok(map);
    }
@@ -102,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);
    }