TDeviceInfoMapper.java 1.59 KB
Newer Older
1 2 3
package com.zehong.system.mapper;

import java.util.List;
4 5
import java.util.Map;

6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
import com.zehong.system.domain.TDeviceInfo;

/**
 * 设备信息Mapper接口
 * 
 * @author zehong
 * @date 2021-07-09
 */
public interface TDeviceInfoMapper 
{
    /**
     * 查询设备信息
     * 
     * @param deviceId 设备信息ID
     * @return 设备信息
     */
22 23 24 25 26
    public TDeviceInfo selectTDeviceInfoById(int deviceId);

    /**
     * 查询设备信息
     *
27
     * @param pipeId 管道ID
28 29
     * @return 设备信息
     */
30
    public List<TDeviceInfo> selectTDeviceInfoByPipeId(int pipeId);
31 32 33 34 35 36 37 38 39

    /**
     * 查询设备信息列表
     * 
     * @param tDeviceInfo 设备信息
     * @return 设备信息集合
     */
    public List<TDeviceInfo> selectTDeviceInfoList(TDeviceInfo tDeviceInfo);

40 41 42 43 44 45
    /**
     * 统计各设备类型的设备总数
     * @return
     */
    public List<Map<Object, Object>> countDeviceByType();

46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
    /**
     * 新增设备信息
     * 
     * @param tDeviceInfo 设备信息
     * @return 结果
     */
    public int insertTDeviceInfo(TDeviceInfo tDeviceInfo);

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

    /**
     * 删除设备信息
     * 
     * @param deviceId 设备信息ID
     * @return 结果
     */
68
    public int deleteTDeviceInfoById(int deviceId);
69 70 71 72 73 74 75

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