From 86e5b30bdc5505fdd446c0158867032c08f4f58e Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期三, 07 一月 2026 09:34:35 +0800
Subject: [PATCH] 监管大屏库区查询调整

---
 fzzy-igdss-web/src/main/java/com/fzzy/group/manager/GroupManager.java |   36 ++++++++++++++++++++++++++++--------
 1 files changed, 28 insertions(+), 8 deletions(-)

diff --git a/fzzy-igdss-web/src/main/java/com/fzzy/group/manager/GroupManager.java b/fzzy-igdss-web/src/main/java/com/fzzy/group/manager/GroupManager.java
index f65256e..bd051f9 100644
--- a/fzzy-igdss-web/src/main/java/com/fzzy/group/manager/GroupManager.java
+++ b/fzzy-igdss-web/src/main/java/com/fzzy/group/manager/GroupManager.java
@@ -44,6 +44,8 @@
     private EventInfoService eventInfoService;
     @Resource
     private SnapRecordService snapRecordService;
+    @Resource
+    private SecCameraService cameraService;
 
     /**
      * 鑾峰彇鐪佸強涓嬪睘甯傚窞闆嗗悎
@@ -116,13 +118,12 @@
     }
 
     /**
-     * 鑾峰彇缁勭粐涓嬫墍鏈夊簱鍖轰俊鎭�
+     * 鑾峰彇鐢ㄦ埛涓嬫墍鏈夊簱鍖轰俊鎭�
      *
-     * @param companyId
      * @return
      */
-    public List<Dept> getAllDept(String companyId) {
-        return deptService.listDept(null, companyId, null);
+    public List<Dept> getDeptList() {
+        return deptService.getDeptByUserType(null);
     }
 
     /**
@@ -134,7 +135,7 @@
 
         List<GroupDeptData> list = new ArrayList<>();
         GroupDeptData deptData;
-        List<Dept> deptList = deptService.getDeptData();
+        List<Dept> deptList = deptService.getDeptByUserType(null);
         if (null != deptList && !deptList.isEmpty()) {
             List<Depot> depotList;
             for (Dept dept : deptList) {
@@ -189,6 +190,25 @@
         return list;
     }
 
+    /**
+     * 鑾峰彇搴撳尯涓嬬洃鎺т俊鎭�
+     * @param param
+     * @return
+     */
+    public PageResponse<List<Camera>> cameraList(IgdsBaseParam param) {
+
+        if(StringUtils.isBlank(param.getDeptId())){
+            return new PageResponse<>(RespCodeEnum.CODE_2000, null);
+        }
+
+        if (StringUtils.isBlank(param.getCompanyId())){
+            param.setCompanyId(ContextUtil.getCompanyId());
+        }
+
+        List<Camera> listCamera = cameraService.getCameraByDeptId(param.getCompanyId(), param.getDeptId());
+
+        return new PageResponse<>(RespCodeEnum.CODE_0000, listCamera);
+    }
 
     /**
      * 澶у睆棣栭〉缁熻淇℃伅锛氫紒涓氭暟銆佸簱鍖烘暟銆佷粨搴撴暟銆佽川鎶间粨鏁般�佹暎绮強鎴愬搧绮暟銆佸垎鍝佺搴撳瓨鏁�
@@ -205,7 +225,7 @@
         indexData.setCompanyNum(companyNum);
 
         //搴撳尯鏁�
-        List<Dept> deptList = deptService.listDept(null, param.getCompanyId(), null);
+        List<Dept> deptList = deptService.getDeptByUserType(null);
         if (null != deptList) {
             indexData.setDeptNum(deptList.size());
         }
@@ -266,7 +286,7 @@
 
         List<GroupDeptData> list = new ArrayList<>();
         GroupDeptData deptData;
-        List<Dept> deptList = deptService.getDeptData();
+        List<Dept> deptList = deptService.getDeptByUserType(null);
         if (null != deptList && !deptList.isEmpty()) {
             List<Depot> depotList;
             for (Dept dept : deptList) {
@@ -359,7 +379,7 @@
                 namePieChart.put(dicArea.getCode(), dicArea.getName());
             }
         }
-        List<Dept> deptList = deptService.getDeptData();
+        List<Dept> deptList = deptService.getDeptByUserType(null);
         if (null != deptList && !deptList.isEmpty()) {
             //搴撳尯鎬绘暟
             groupGisData.setDeptNum(deptList.size());

--
Gitblit v1.9.3