From 5a5a17c159e8e375a5780de866afce4173ec4c1b Mon Sep 17 00:00:00 2001
From: suerwei <18810552194@163.com>
Date: 星期三, 12 六月 2024 13:53:03 +0800
Subject: [PATCH] 钻孔导入

---
 javaweb-plus/javaweb-admin/src/main/java/com/javaweb/web/controller/system/SysIndexController.java |   34 ++++++++++++++++++++++++++++------
 1 files changed, 28 insertions(+), 6 deletions(-)

diff --git a/javaweb-plus/javaweb-admin/src/main/java/com/javaweb/web/controller/system/SysIndexController.java b/javaweb-plus/javaweb-admin/src/main/java/com/javaweb/web/controller/system/SysIndexController.java
index ff59cd9..b141511 100644
--- a/javaweb-plus/javaweb-admin/src/main/java/com/javaweb/web/controller/system/SysIndexController.java
+++ b/javaweb-plus/javaweb-admin/src/main/java/com/javaweb/web/controller/system/SysIndexController.java
@@ -8,12 +8,13 @@
 import com.javaweb.cms.util.CmsConstants;
 import com.javaweb.common.core.domain.AjaxResult;
 import com.javaweb.common.utils.Arith;
-import com.javaweb.common.utils.StringUtils;
 import com.javaweb.geo.domain.Hole;
 import com.javaweb.geo.domain.HoleMedia;
 import com.javaweb.geo.domain.Project;
+import com.javaweb.geo.domain.TubLog;
 import com.javaweb.geo.enums.RecordType;
-import com.javaweb.geo.mapper.HoleMapper;
+import com.javaweb.geo.mapper.ProjectCameraMapper;
+import com.javaweb.geo.mapper.TubLogMapper;
 import com.javaweb.geo.service.IHoleMediaService;
 import com.javaweb.geo.service.IHoleService;
 import com.javaweb.geo.service.IProjectService;
@@ -60,6 +61,13 @@
 
     @Autowired
     private IHoleMediaService holeMediaService;
+
+    @Autowired
+    private TubLogMapper tubLogMapper;
+
+    @Autowired
+    private ProjectCameraMapper projectCameraMapper;
+
 
     private String getAdminIndex() {
         return configService.selectConfigByKey(CmsConstants.KEY_ADMIN_INDEX);
@@ -118,7 +126,7 @@
 
     // 绯荤粺浠嬬粛
     @ResponseBody
-    @GetMapping("/system/project")
+    @GetMapping("/system/stat/project")
     public AjaxResult project() {
         AjaxResult ajaxResult = AjaxResult.success();
         List<Project> projects = projectService.selectProjectList(new Project());
@@ -131,7 +139,7 @@
      * @return
      */
     @ResponseBody
-    @GetMapping("/system/totalProcess")
+    @GetMapping("/system/stat/totalProcess")
     public AjaxResult totalProcess() {
         AjaxResult ajaxResult = AjaxResult.success();
         Hole hole = holeService.selectHoleTotalProcess();
@@ -145,7 +153,7 @@
      * @return
      */
     @ResponseBody
-    @GetMapping("/system/projectProcess")
+    @GetMapping("/system/stat/projectProcess")
     public AjaxResult projectProcess() {
         AjaxResult ajaxResult = AjaxResult.success();
         List<Hole> holes = holeService.selectHoleProjectProcess();
@@ -201,7 +209,7 @@
      * @return
      */
     @ResponseBody
-    @GetMapping("/system/indexDataCount")
+    @GetMapping("/system/stat/indexDataCount")
     public AjaxResult indexDataCount() {
         IndexVo result = new IndexVo();
         //=============================鏌ヨ鍦哄湴鏁伴噺===============================
@@ -237,8 +245,22 @@
         HoleMedia holeMedia = holeMediaService.selectHoleMediaNumber();
         result.setFileCount(holeMedia.getNumber());
 
+        Integer cameraCount = projectCameraMapper.count();
+        result.setCameraCount(cameraCount);
         return AjaxResult.success("鏌ヨ鎴愬姛",result);
     }
 
+    /**
+     * 缁熻鏉愭枡鐨勬秷鑰�
+     * @return
+     */
+    @ResponseBody
+    @GetMapping("/system/stat/tubLogData")
+    public AjaxResult tubLogData() {
+        AjaxResult ajaxResult = new AjaxResult();
+        List<TubLog> tubLogs = tubLogMapper.countTubLogDate(null);
+        ajaxResult.put("tubLogs",tubLogs);
+        return  ajaxResult;
+    }
 
 }

--
Gitblit v1.9.1