package com.huaxu.dao; import com.baomidou.mybatisplus.core.metadata.IPage; import com.huaxu.dto.*; import com.huaxu.entity.DeviceParmEntity; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** * @description * @auto wangli * @data 2020-11-17 10:57 */ @Mapper public interface DeviceParmMapper { /** * 查询单个设备 * @return */ DeviceParmEntity selectById(Integer id); /** * 添加设备 * @return */ Integer insert(DeviceParmEntity deviceEntity); /** * 批量插入设备信息 * @param deviceParms * @return */ Integer batchInsert( @Param("deviceParms") List deviceParms); /** * 单条删除设备 * @return */ Integer deleteById(Integer id); /** * 单条删除设备 * @return */ Integer deleteByDeviceId(Integer deviceId); /** * 修改设备信息 * @return */ Integer update(DeviceParmEntity deviceEntity); /** * 查询设备信息 * @return */ List selectList(DeviceParmEntity deviceParmEntity); /** * 分页查询 * @return */ IPage selectPage(IPage page, DeviceParmEntity deviceParmEntity); List selectByDeviceId(@Param("sceneId")Integer sceneId,@Param("id")Integer id); List selectByDeviceIdForGis(@Param("sceneId")Integer sceneId,@Param("id")Integer id); List findAttributeNameList(@Param("report") ReportDto reportDto); List findBySceneDeviceId(@Param("info") DeviceParmInfoDto deviceParmInfo); List selectBindByDeviceId(@Param("sceneId")Long sceneId, @Param("deviceId")Long deviceId); List selectDeviceBySceneIdAndType(@Param("info") DeviceParmEntity deviceParmEntity); List findAlarmCount(@Param("info") DeviceParmEntity deviceParmEntity); List findAlarmTotalCount(@Param("info") DeviceParmEntity deviceParmEntity); List findAlarmCountTotalCount(@Param("info") DeviceParmEntity deviceParmEntity); List selectBySceneId(@Param("sceneId")Integer sceneId); Integer updateStatisticalDimension(ReportStatisticalDimensionDto statisticalDimensionDto); }