From 57c673aa3e83677bcf5d30b4b45d06bae6609db8 Mon Sep 17 00:00:00 2001
From: liusuyi <1951119284@qq.com>
Date: 星期四, 08 八月 2024 16:14:40 +0800
Subject: [PATCH] 优化:获取会话

---
 ard-work/src/main/java/com/ruoyi/device/camera/mapper/ArdCamerasMapper.java |   47 +++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 39 insertions(+), 8 deletions(-)

diff --git a/ard-work/src/main/java/com/ruoyi/device/camera/mapper/ArdCamerasMapper.java b/ard-work/src/main/java/com/ruoyi/device/camera/mapper/ArdCamerasMapper.java
index 4f931ff..6668a87 100644
--- a/ard-work/src/main/java/com/ruoyi/device/camera/mapper/ArdCamerasMapper.java
+++ b/ard-work/src/main/java/com/ruoyi/device/camera/mapper/ArdCamerasMapper.java
@@ -1,15 +1,19 @@
 package com.ruoyi.device.camera.mapper;
 
 import java.util.List;
+import java.util.Map;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.ruoyi.common.annotation.DataScope;
-import com.ruoyi.common.core.domain.entity.SysDept;
 import com.ruoyi.device.camera.domain.ArdCameras;
+import org.apache.ibatis.annotations.MapKey;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
 
 /**
  * 鐩告満璁惧Mapper鎺ュ彛
- * 
+ *
  * @author 鍒樿嫃涔�
  * @date 2023-02-11
  */
@@ -17,7 +21,7 @@
 {
     /**
      * 鏌ヨ鐩告満璁惧
-     * 
+     *
      * @param id 鐩告満璁惧涓婚敭
      * @return 鐩告満璁惧
      */
@@ -25,10 +29,11 @@
 
     /**
      * 鏌ヨ鐩告満璁惧鍒楄〃
-     * 
+     *
      * @param ardCameras 鐩告満璁惧
      * @return 鐩告満璁惧闆嗗悎
      */
+    @DataScope(deptAlias = "d")
     public List<ArdCameras> selectArdCamerasList(ArdCameras ardCameras);
     /**
      * 鏌ヨ鐩告満璁惧鍒楄〃(涓嶈繃婊�)
@@ -39,7 +44,7 @@
     public List<ArdCameras>selectArdCamerasListNoDataScope(ArdCameras ardCameras);
     /**
      * 鏂板鐩告満璁惧
-     * 
+     *
      * @param ardCameras 鐩告満璁惧
      * @return 缁撴灉
      */
@@ -47,7 +52,7 @@
 
     /**
      * 淇敼鐩告満璁惧
-     * 
+     *
      * @param ardCameras 鐩告満璁惧
      * @return 缁撴灉
      */
@@ -55,7 +60,7 @@
 
     /**
      * 鍒犻櫎鐩告満璁惧
-     * 
+     *
      * @param id 鐩告満璁惧涓婚敭
      * @return 缁撴灉
      */
@@ -63,7 +68,7 @@
 
     /**
      * 鎵归噺鍒犻櫎鐩告満璁惧
-     * 
+     *
      * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎
      * @return 缁撴灉
      */
@@ -77,4 +82,30 @@
      * @return 閮ㄩ棬鍒楄〃
      */
     public List<ArdCameras> selectArdCamerasByDeptId(Long deptId);
+
+    /**
+     * 鏍¢獙鐩告満鏄惁鍞竴
+     *
+     * @param ip 鐩告満ip
+     * @param port 鐩告満绔彛
+     * @return 鐩告満淇℃伅
+     */
+    public ArdCameras checkCameraIpAndPortUnique(@Param("ip") String ip, @Param("port")Integer port);
+
+    public List<Map<String, Object>> getCamerasByDeptId(@Param("deptIdList")List<Long> deptIdList,@Param("userId")String userId);
+
+    public Boolean getCameraOperationByCameraId(@Param("id") String id, @Param("userId") String userId);
+
+    public List<Map<String, Object>> getChannelByCameraId(String id);
+
+    public List<ArdCameras> findTowerCamerasBySubAndOwnDeptIds(@Param("deptIdList")List<Long> deptIdList);
+
+    /**
+     * @Author 鍒樿嫃涔�
+     * @Description 閲嶇疆鎵�鏈夌浉鏈虹櫥褰昳d涓�-1
+     * @Date   2024/7/17 10:17
+     * @Param
+     * @return
+     */
+    public int resetCameraLoginId();
 }

--
Gitblit v1.9.3