Quellcode durchsuchen

修改可视化接口

zyl vor 2 Monaten
Ursprung
Commit
4f97053bd0

+ 5 - 7
liutongyi-admin/src/main/java/com/citygis/web/mapper/LookMonitorMapper.java

@@ -3,18 +3,16 @@ package com.citygis.web.mapper;
 import com.citygis.web.domain.LookMonitor;
 import com.citygis.web.domain.TabLinkTitle;
 
-import java.util.List;
-
 public interface LookMonitorMapper {
 
-    List<LookMonitor> getLookMonitorByUrl(String dateTime);
+    LookMonitor getLookMonitorByUrl(String dateTime);
 
-    List<LookMonitor> getLookMonitorByKb(String dateTime);
+    LookMonitor getLookMonitorByKb(String dateTime);
 
-    List<LookMonitor> getLookMonitorByKafka(String dateTime);
+    LookMonitor getLookMonitorByKafka(String dateTime);
 
-    List<TabLinkTitle> getUrlMsg(String dateTime);
+    TabLinkTitle getUrlMsg(String dateTime);
 
-    List<LookMonitor> getLookMonitorByUrlAndStatus(String dateTime);
+    LookMonitor getLookMonitorByUrlAndStatus(String dateTime);
 
 }

+ 4 - 4
liutongyi-admin/src/main/java/com/citygis/web/service/impl/LookMonitorServiceimpl.java

@@ -33,10 +33,10 @@ public class LookMonitorServiceimpl implements LookMonitorService {
 
         Map<String, Object> map = new HashMap<>();
 
-        map.put("今日Api接入总量", lookMonitorMapper.getLookMonitorByUrl(today));
-        map.put("库表接入总量", lookMonitorMapper.getLookMonitorByKb(today));
-        map.put("KafkaTopic总量", lookMonitorMapper.getLookMonitorByKafka(today));
-        map.put("四个框", lookMonitorMapper.getUrlMsg(today));
+        map.put("api", lookMonitorMapper.getLookMonitorByUrl(today));
+        map.put("kb", lookMonitorMapper.getLookMonitorByKb(today));
+        map.put("kafka", lookMonitorMapper.getLookMonitorByKafka(today));
+        map.put("four", lookMonitorMapper.getUrlMsg(today));
 
         return AjaxResult.success(map);
     }