package com.cloud.device.dao;
|
|
import com.cloud.device.model.Device;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.List;
|
import java.util.Map;
|
|
@Repository
|
@Mapper
|
public interface DeviceDao {
|
/**
|
* 根据id删除
|
* @param id
|
* @return
|
*/
|
int deleteById(String id);
|
|
/**
|
* 根据集群id删除设备
|
* @param id
|
* @return
|
*/
|
int deleteByClusterId(String id);
|
|
/**
|
* 保存
|
* @param record
|
* @return
|
*/
|
int insert(Device record);
|
|
/**
|
* 保存
|
* @param record
|
* @return
|
*/
|
int insertSelective(Device record);
|
|
/**
|
* 根据Id查询
|
* @param id
|
* @return
|
*/
|
Device selectById(String id);
|
|
/**
|
* 编辑
|
* @param record
|
* @return
|
*/
|
int updateByIdSelective(Device record);
|
|
/**
|
* 编辑
|
* @param record
|
* @return
|
*/
|
int updateById(Device record);
|
|
/**
|
* 根据条件查找设备列表(分页)
|
* @param map
|
* @return
|
*/
|
List<Device> findPlatDevicePageList(Map<String, Object> map);
|
|
/**
|
* 查找所有非集群监控设备,不分页
|
* @param map
|
* @return
|
*/
|
List<Device> findAllPlatDeviceList(Map<String, Object> map);
|
|
List<Device> findByNodeId(String nodeId);
|
|
List<Device> findByOrgId(Long orgId);
|
|
int countPlatDevice(Map<String,Object> param);
|
|
int countAllDevice(Map<String, Object> param);
|
|
List<Device> findAllDeviceList(Map<String, Object> map);
|
|
/**
|
* 查找组织机构下的设备
|
* @param map
|
* @return
|
*/
|
List<Device> findAllOrgDevice(Map<String, Object> map);
|
|
/**
|
* 根据条件查找所有集群和非集群设备
|
* @param param
|
* @return
|
*/
|
List<Device> findAllDevice(Map<String, Object> param);
|
|
Device findByIp(String ip);
|
|
/**
|
* 查找无经纬度的设备
|
* @return
|
*/
|
List<Device> findNoPosDevices();
|
|
|
/**
|
* 查找已有经纬度的设备
|
* @return
|
*/
|
List<Device> findPosDevices();
|
|
/**
|
* 查找集群内的设备信息
|
* @param param(参数为摄像机位置或名称或ip)
|
* @return
|
*/
|
List<Device> findAllClusterDevice(Map<String, Object> param);
|
}
|