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

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

6
import com.zehong.system.domain.TDeviceInfo;
jianqian's avatar
jianqian committed
7 8
import org.apache.commons.math3.analysis.function.Add;
import org.apache.ibatis.annotations.Param;
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

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

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

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

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

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

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

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

    /**
     * 批量删除设备信息
     * 
     * @param deviceIds 需要删除的数据ID
     * @return 结果
     */
78
    public int deleteTDeviceInfoByIds(int[] deviceIds);
jianqian's avatar
jianqian committed
79 80 81 82

    /**
     * 工单设备进程
     */
jianqian's avatar
jianqian committed
83 84 85
    List<Map<String,Object>> selectdevicefeed(@Param("orderId") String orderId,
                                              @Param("ids") List<Integer> ids,
                                              @Param("ids2") List<Integer> ids2);
86
}