From b61c4537a78d58412ef7ccd6e2c30152d807c5b7 Mon Sep 17 00:00:00 2001
From: zhangnaisong <2434969829@qq.com>
Date: 星期一, 29 七月 2024 11:04:54 +0800
Subject: [PATCH] 电磁锁密码查询去除上一组密码修改提交
---
ard-work/src/main/java/com/ruoyi/device/camera/mapper/ArdCamerasMapper.java | 57 +++++++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 49 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..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,21 +1,27 @@
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.MapKey;
+import org.apache.ibatis.annotations.Mapper;
+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 +29,11 @@
/**
* 鏌ヨ鐩告満璁惧鍒楄〃
- *
+ *
* @param ardCameras 鐩告満璁惧
* @return 鐩告満璁惧闆嗗悎
*/
+ @DataScope(deptAlias = "d")
public List<ArdCameras> selectArdCamerasList(ArdCameras ardCameras);
/**
* 鏌ヨ鐩告満璁惧鍒楄〃(涓嶈繃婊�)
@@ -37,7 +44,7 @@
public List<ArdCameras>selectArdCamerasListNoDataScope(ArdCameras ardCameras);
/**
* 鏂板鐩告満璁惧
- *
+ *
* @param ardCameras 鐩告満璁惧
* @return 缁撴灉
*/
@@ -45,7 +52,7 @@
/**
* 淇敼鐩告満璁惧
- *
+ *
* @param ardCameras 鐩告満璁惧
* @return 缁撴灉
*/
@@ -53,7 +60,7 @@
/**
* 鍒犻櫎鐩告満璁惧
- *
+ *
* @param id 鐩告満璁惧涓婚敭
* @return 缁撴灉
*/
@@ -61,10 +68,44 @@
/**
* 鎵归噺鍒犻櫎鐩告満璁惧
- *
+ *
* @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("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