From 9091740e4964c6065c6549cd1599624d0fb24cbd Mon Sep 17 00:00:00 2001
From: zhangnaisong <2434969829@qq.com>
Date: 星期五, 31 五月 2024 16:32:30 +0800
Subject: [PATCH] 巡检需要的大光电查询修改提交

---
 ard-work/src/main/java/com/ruoyi/device/camera/service/impl/ArdCamerasServiceImpl.java |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/ard-work/src/main/java/com/ruoyi/device/camera/service/impl/ArdCamerasServiceImpl.java b/ard-work/src/main/java/com/ruoyi/device/camera/service/impl/ArdCamerasServiceImpl.java
index a9f53ab..9fd6321 100644
--- a/ard-work/src/main/java/com/ruoyi/device/camera/service/impl/ArdCamerasServiceImpl.java
+++ b/ard-work/src/main/java/com/ruoyi/device/camera/service/impl/ArdCamerasServiceImpl.java
@@ -292,7 +292,15 @@
     }
 
     public List findOptions(ArdCameras ardCameras) {
-        List<ArdCameras> options = ardCamerasMapper.findOptions(ardCameras);
+        //List<ArdCameras> options = ardCamerasMapper.findOptions(ardCameras);
+        List<Long> subDeptIdList = sysDeptMapper.selectDeptIdBySub(SecurityUtils.getDeptId());//涓嬪睘鍙婃湰鏉冮檺
+        List<Long> ownDeptIdList= sysDeptMapper.selectRoleDeptIdByUsersId(SecurityUtils.getUserId());//鑷畾涔夋潈闄�
+        HashSet<Long> deptIdSet = new HashSet();//鍘婚噸
+        deptIdSet.addAll(subDeptIdList);
+        deptIdSet.addAll(ownDeptIdList);
+        List<Long> deptIdList = new ArrayList();
+        deptIdList.addAll(deptIdSet);//绗﹀悎鏉′欢鐨勫叏閮ㄦ潈闄�
+        List<ArdCameras> options = ardCamerasMapper.findTowerCamerasBySubAndOwnDeptIds(deptIdList);
         for (ArdCameras camera :
                 options) {
             ArdChannel ardChannel = new ArdChannel();

--
Gitblit v1.9.3