ITDeviceInfoService.java 1.8 KB
Newer Older
1 2 3
package com.zehong.system.service;

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;

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

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

32 33 34
    /**
     * 构建前端所需要下拉树结构
     *
35
     * @param param 参数集合
36 37
     * @return 下拉树结构列表
     */
38
    public List<Map<Object, Object>> buildDeviceTreeSelect(Map<Object, List> param);
39

40 41 42 43 44 45 46 47
    /**
     * 设备树
     *
     * @param
     * @return 树结构列表
     */
    public List<Map<Object, Object>> buildDeviceTree() throws Exception;

48 49 50 51 52 53
    /**
     * 统计各设备类型的设备总数
     * @return
     */
    public List<Map<Object, Object>> countDeviceByType();

54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
    /**
     * 新增设备信息
     * 
     * @param tDeviceInfo 设备信息
     * @return 结果
     */
    public int insertTDeviceInfo(TDeviceInfo tDeviceInfo);

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

    /**
     * 批量删除设备信息
     * 
     * @param deviceIds 需要删除的设备信息ID
     * @return 结果
     */
76
    public int deleteTDeviceInfoByIds(int[] deviceIds);
77 78 79 80 81 82 83

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