TDeviceInfoMapper.java 3.32 KB
Newer Older
1 2 3 4 5 6 7 8
package com.zehong.system.mapper;

import java.util.List;
import java.util.Map;

import com.zehong.system.domain.TDeviceInfo;
import com.zehong.system.domain.TDeviceInfoS;
import com.zehong.system.domain.vo.TDetectorUserVO;
9
import org.apache.ibatis.annotations.MapKey;
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
import org.apache.ibatis.annotations.Param;

/**
 * 设备信息Mapper接口
 *
 * @author zehong
 * @date 2022-01-27
 */
public interface TDeviceInfoMapper
{
    /**
     * 查询设备信息
     *
     * @param deviceId 设备信息ID
     * @return 设备信息
     */
    public TDeviceInfo selectTDeviceInfoById(Long deviceId);

    /**
     * 查询设备报警信息
     *
     * @return map
     */
    public List<Map> getDeviceInfoAlarmList();

    /**
     * 查询设备信息列表
     *
     * @param tDeviceInfo 设备信息
     * @return 设备信息集合
     */
    public List<TDeviceInfo> selectTDeviceInfoList(TDeviceInfo tDeviceInfo);
42 43 44 45 46 47 48

    /**
     *
     * 大屏端 全局搜素 设备,场站,用户信息,监控 步骤一
     * */
    @MapKey(value="id")
    public List<Map<String,Object>> queryBasicInforByNameForBigWindows(@Param(value = "name") String name);
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
    public List<TDeviceInfo> selectDeviceList(TDeviceInfo tDeviceInfo);

    /**
     * 新增设备信息
     *
     * @param tDeviceInfo 设备信息
     * @return 结果
     */
    public int insertTDeviceInfo(TDeviceInfo tDeviceInfo);

    /**
     * 修改设备信息
     *
     * @param tDeviceInfo 设备信息
     * @return 结果
     */
    public int updateTDeviceInfo(TDeviceInfo tDeviceInfo);

    /**
     * 删除设备信息
     *
     * @param deviceId 设备信息ID
     * @return 结果
     */
    public int deleteTDeviceInfoById(Long deviceId);

    /**
     * 批量删除设备信息
     *
     * @param deviceIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteTDeviceInfoByIds(Long[] deviceIds);

    /**
     * 添加关联设备信息表数据
     * @param gettDeviceInfoS
     */
    void insertDeviceDetailInfo(TDeviceInfoS gettDeviceInfoS);

    /**
     * 获取设备详细信息列表
     * @param deviceId
     * @return
     */
    List<TDeviceInfoS> getdeviceDetailInfo(Long deviceId);

    /**
     * 查询无绑定的 关联设备信息
     * @return
     */
    List<TDeviceInfoS> selectDetailInfo(TDeviceInfoS tDeviceInfos);

    /**
     * 关联设备数据删除接口
     * @param deviceIds
     */
    void deleteDetailInfo(Long[] deviceIds);

    /**
     * 关联设备数据删除接口 单条删除
     * @param deviceId
     */
    void deleteDetailinfOS(int deviceId);

    /**
     * 将关联设备信息与设备进行绑定
     * @param gettDeviceInfoS
     */
    void updatetRelationDeviceDetailInfo(@Param("gettDeviceInfoS")List<TDeviceInfoS> gettDeviceInfoS,@Param("id") Long id,@Param("relationDevicetype") String relationDevicetype);

    /**
     * 查询设备已经关联的关联设备
     * @param id
     * @return
     */
    List<TDeviceInfoS> selectDetailInfoList(@Param("id")int id,@Param("relationDeviceType")String relationDeviceType);

    /**
     * 解绑 设备与关联设备关系
     * @param deviceId
     */
    void deleteDeviceDetailInfo(int deviceId);

    /**
     * 查询设备数量
     * @return
     */
    Map<String,Object> selectDeviceNum(@Param("enterpriseIds")String[] enterpriseIds);
}