package com.ard.work.device.channel.mapper;
|
|
import com.ard.qs.api.domain.QsDevice;
|
import com.ard.work.api.domian.ArdChannel;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* 通道管理Mapper接口
|
*
|
* @author ard
|
* @date 2023-08-19
|
*/
|
public interface ArdChannelMapper
|
{
|
/**
|
* 查询通道管理
|
*
|
* @param id 通道管理主键
|
* @return 通道管理
|
*/
|
public ArdChannel selectArdChannelById(String id);
|
|
/**
|
* 根据设备id集合查询设备信息
|
*
|
* @param startChannelIdList 设备id集合
|
* @return
|
*/
|
List<ArdChannel> queryByIds(@Param("startChannelIdList") List<String> startChannelIdList);
|
/**
|
* 查询通道管理列表
|
*
|
* @param ardChannel 通道管理
|
* @return 通道管理集合
|
*/
|
public List<ArdChannel> selectArdChannelList(ArdChannel ardChannel);
|
|
/**
|
* 根据ID数组批量查询通道
|
*/
|
public List<ArdChannel> selectArdChannelByIds(String[] ids);
|
|
/**
|
* 新增通道管理
|
*
|
* @param ardChannel 通道管理
|
* @return 结果
|
*/
|
public int insertArdChannel(ArdChannel ardChannel);
|
|
/**
|
* 修改通道管理
|
*
|
* @param ardChannel 通道管理
|
* @return 结果
|
*/
|
public int updateArdChannel(ArdChannel ardChannel);
|
|
/**
|
* 删除通道管理
|
*
|
* @param id 通道管理主键
|
* @return 结果
|
*/
|
public int deleteArdChannelById(String id);
|
|
/**
|
* 批量删除通道管理
|
*
|
* @param ids 需要删除的数据主键集合
|
* @return 结果
|
*/
|
public int deleteArdChannelByIds(String[] ids);
|
|
/**
|
* 删除通道管理按设备ID
|
*
|
* @param deviceId 所属设备ID
|
* @return 结果
|
*/
|
public int deleteArdChannelByDeviceId(String deviceId);
|
/**
|
* 清空通道
|
*
|
* @author 刘苏义
|
* @date 2024/8/10 11:18
|
*/
|
public int clearArdChannel();
|
/**
|
* 校验相机通道是否唯一
|
*
|
* @param channel 通道信息
|
* @return 结果
|
*/
|
ArdChannel checkArdChannelUnique(ArdChannel channel);
|
}
|