liuxiaolong
2019-05-06 71af9c46c24b562acc00a71ec6c97c04eb048d9c
1
2
3
4
5
6
7
8
9
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
42
43
44
45
46
47
48
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
package com.cloud.device.service;
 
import com.alibaba.fastjson.JSONObject;
import com.cloud.device.model.Device;
import com.cloud.device.model.Node;
import com.cloud.device.vo.MapDeviceVo;
import com.cloud.device.vo.MenuTreeVo;
import com.cloud.model.common.Page;
 
import java.io.IOException;
import java.util.List;
import java.util.Map;
 
public interface DeviceService {
    /**
     * 根据条件查找设备列表(分页)
     * @param param
     * @return
     */
    Page<Device> findPlatDeviceList(Map<String,Object> param);
 
    /**
     * 查找所有非集群的监控设备,不分页
     * @param param
     * @return
     */
    List<Device> findAllPlatDeviceList(Map<String, Object> param);
 
    Device selectById(String id);
    /**
     * save
     * @param model
     * @return
     */
    int saveDevice(Device model);
 
    int deleteById(String id);
 
    List<MenuTreeVo> getOrgDeviceTree(Map<String, Object> param);
 
 
    List<Device> findByOrgId(Long id);
 
    Device findByIp(String ip);
 
    /**
     * 获取未描点的设备
     * @return
     */
    MapDeviceVo findAllDevices();
 
    int updatePosById(Map<String,Object> param);
 
    /**
     * 更新设备的公网ip和端口
     * @param param
     * @return
     */
    int updatePublicIpPort(Map<String, Object> param);
 
    int updateOrg(String id, Integer orgId);
 
    /**
     * 通过区域(组织机构)下的所有集群和非集群设备
     * @param map
     * @return
     */
    List<MenuTreeVo> findByArea(Map<String,Object> map);
 
    List<Device> findAllDeviceByArea(Map<String, Object> param);
 
    Node getNodeByDevId(String devId);
 
    /**
     * wp  获取视频实时截图
     * @param devId
     * @return
     */
    JSONObject getDevSnapshot(String devId) throws IOException;
}