liusuyi
2024-07-12 49bedcce2ac42fa34da012ee3fc8e9230886064a
ard-work/src/main/java/com/ruoyi/device/camera/mapper/ArdCamerasMapper.java
@@ -1,14 +1,17 @@
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
 */
@@ -16,7 +19,7 @@
{
    /**
     * 查询相机设备
     *
     *
     * @param id 相机设备主键
     * @return 相机设备
     */
@@ -24,10 +27,11 @@
    /**
     * 查询相机设备列表
     *
     *
     * @param ardCameras 相机设备
     * @return 相机设备集合
     */
    @DataScope(deptAlias = "d")
    public List<ArdCameras> selectArdCamerasList(ArdCameras ardCameras);
    /**
     * 查询相机设备列表(不过滤)
@@ -38,7 +42,7 @@
    public List<ArdCameras>selectArdCamerasListNoDataScope(ArdCameras ardCameras);
    /**
     * 新增相机设备
     *
     *
     * @param ardCameras 相机设备
     * @return 结果
     */
@@ -46,7 +50,7 @@
    /**
     * 修改相机设备
     *
     *
     * @param ardCameras 相机设备
     * @return 结果
     */
@@ -54,7 +58,7 @@
    /**
     * 删除相机设备
     *
     *
     * @param id 相机设备主键
     * @return 结果
     */
@@ -62,7 +66,7 @@
    /**
     * 批量删除相机设备
     *
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
@@ -85,4 +89,13 @@
     * @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);
}