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/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 c14115b..6894ece 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,21 +1,25 @@
 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.device.camera.domain.ArdCameras;
+import org.apache.ibatis.annotations.Param;
+
 
 /**
  * 鐩告満璁惧Mapper鎺ュ彛
- * 
+ *
  * @author 鍒樿嫃涔�
  * @date 2023-02-11
  */
-public interface ArdCamerasMapper 
+public interface ArdCamerasMapper extends BaseMapper<ArdCameras>
 {
     /**
      * 鏌ヨ鐩告満璁惧
-     * 
+     *
      * @param id 鐩告満璁惧涓婚敭
      * @return 鐩告満璁惧
      */
@@ -23,10 +27,11 @@
 
     /**
      * 鏌ヨ鐩告満璁惧鍒楄〃
-     * 
+     *
      * @param ardCameras 鐩告満璁惧
      * @return 鐩告満璁惧闆嗗悎
      */
+    @DataScope(deptAlias = "d")
     public List<ArdCameras> selectArdCamerasList(ArdCameras ardCameras);
     /**
      * 鏌ヨ鐩告満璁惧鍒楄〃(涓嶈繃婊�)
@@ -37,7 +42,7 @@
     public List<ArdCameras>selectArdCamerasListNoDataScope(ArdCameras ardCameras);
     /**
      * 鏂板鐩告満璁惧
-     * 
+     *
      * @param ardCameras 鐩告満璁惧
      * @return 缁撴灉
      */
@@ -45,7 +50,7 @@
 
     /**
      * 淇敼鐩告満璁惧
-     * 
+     *
      * @param ardCameras 鐩告満璁惧
      * @return 缁撴灉
      */
@@ -53,7 +58,7 @@
 
     /**
      * 鍒犻櫎鐩告満璁惧
-     * 
+     *
      * @param id 鐩告満璁惧涓婚敭
      * @return 缁撴灉
      */
@@ -61,10 +66,36 @@
 
     /**
      * 鎵归噺鍒犻櫎鐩告満璁惧
-     * 
+     *
      * @param ids 闇�瑕佸垹闄ょ殑鏁版嵁涓婚敭闆嗗悎
      * @return 缁撴灉
      */
     public int deleteArdCamerasByIds(String[] ids);
     public List findOptions(ArdCameras ardCameras);
+
+    /**
+     * 鏍规嵁閮ㄩ棬ID鏌ヨ鎸傝浇鐨勭浉鏈�
+     *
+     * @param deptId 閮ㄩ棬ID
+     * @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("deptId")Long deptId,@Param("userId")String userId);
+    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);
 }

--
Gitblit v1.9.3