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

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

6
import com.github.pagehelper.PageInfo;
7
import com.zehong.system.domain.TDeviceInfo;
王晓倩's avatar
王晓倩 committed
8
import com.zehong.system.domain.vo.DeviceInfoVo;
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

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

    /**
     * 查询设备信息列表
     * 
     * @param tDeviceInfo 设备信息
     * @return 设备信息集合
     */
王晓倩's avatar
王晓倩 committed
32
    public List<DeviceInfoVo> selectTDeviceInfoList(TDeviceInfo tDeviceInfo);
33

34 35 36 37 38 39 40 41
    /**
     * 查询设备信息列表
     *
     * @param tDeviceInfo 设备信息
     * @return 设备信息集合
     */
    public PageInfo<DeviceInfoVo> selectTDeviceInfoPage(TDeviceInfo tDeviceInfo);

42 43 44
    /**
     * 构建前端所需要下拉树结构
     *
45
     * @param param 参数集合
46 47
     * @return 下拉树结构列表
     */
48
    public List<Map<Object, Object>> buildDeviceTreeSelect(Map<Object, List> param);
49

50 51 52 53 54 55 56 57
    /**
     * 设备树
     *
     * @param
     * @return 树结构列表
     */
    public List<Map<Object, Object>> buildDeviceTree() throws Exception;

58 59 60 61 62 63
    /**
     * 统计各设备类型的设备总数
     * @return
     */
    public List<Map<Object, Object>> countDeviceByType();

64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
    /**
     * 新增设备信息
     * 
     * @param tDeviceInfo 设备信息
     * @return 结果
     */
    public int insertTDeviceInfo(TDeviceInfo tDeviceInfo);

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

    /**
     * 批量删除设备信息
     * 
     * @param deviceIds 需要删除的设备信息ID
     * @return 结果
     */
86
    public int deleteTDeviceInfoByIds(int[] deviceIds);
87 88 89 90 91 92 93

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