kaiyu
2020-11-24 1d7e1b771160dd8b7f25765e402ce25cac676641
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
81
82
83
84
85
86
87
88
89
90
91
92
93
package com.moral.service;
 
import java.util.Date;
import java.util.List;
import java.util.Map;
 
import com.moral.common.bean.PageBean;
import com.moral.common.bean.PageResult;
import com.moral.entity.Device;
import com.moral.entity.DeviceAndWind;
import com.moral.entity.DeviceProperty;
 
public interface DeviceService {
 
    Map<String, Object> getDeviceStatesByAccount(Map<String, Object> parameters);
 
    void saveOrUpdateDevice(Device device);
 
    List<Device> getInstallDevicesByOperateUser(Integer uid, Integer pageIndex, Integer pageSize);
 
    Device getDeviceByMac(String mac, boolean fromCache);
 
    Device getDeviceByMac(String mac);
 
    List<Device> query(Map<String,Object> map);
    PageResult query(Integer orgId, String deviceName,Integer pageSize,Integer pageNo);
 
    PageResult query(Integer orgId, Integer mpId, Integer pageSize, Integer pageNo);
 
    int countByExample(PageBean pageBean);
 
    PageBean queryByPageBean(PageBean pageBean);
 
    void deleteByIds(Integer[] ids);
 
    void addOrModify(Device device);
 
    List<Map> countByTimes(Date start, Date end, String format);
 
    List<Device> getDevicesByMonitorPointId(Integer monitorPointId);
 
    List<Map<String,String>> queryDevicesState(List<String> macList,Boolean withData);
 
    Device queryById(Integer id);
 
    List<Device> getDevicesByProfessionId(Map<String, Object> parameters);
 
    List<Device> getDevicesByOrganizationId(Map<String, Object> parameters);
 
    Map<String,Long> queryDeviceStateSummary(Integer orgId);
 
    void saveOrUpdate(Device device, DeviceProperty deviceProperty);
 
    PageBean getDeviceList(PageBean pageBean);
 
    void offLinToMaintenance(Map<String, Object> parameters);
 
    void saveOrUpdate4Mobile(Device device, DeviceProperty deviceProperty);
 
    String getLimitDataByDevice(Map<String, Object> parameters);
 
    Device getDeviceByLongitudeAsc(String mac);
 
    List<String> getMacsByOrganizationId(List<Object> organizationIdList);
 
    //获取烟道设备
    List<Device> getDeviceById1(int id);
    //获取厂界设备
    List<Device> getDeviceById2(int id);
    //获取车间设备
    List<Device> getDeviceById3(int id);
 
    List<Device> queryDevice(Map<String,Object> map);
 
    Map<String, Object> getAllFieldByMac(Map<String, Object> parameters);
 
    List<DeviceAndWind> getAllDevice();
 
    List<String> getAllMac();
 
    Device byMacGetDevice(String mac);
 
    List<DeviceAndWind> byMonitorIdGetDeviceAndWind(String id,String tab);
    List<DeviceAndWind> byMonitorIdGetDeviceAndWindSpecial(String id,String tab);
 
    List<Device> getDeviceByCodeAndId(String code,String id);
 
    String byMacGetOrgId(String mac);
    //通过mac号或者设备名进行查询设备
    List<Device> getDevice(String macOrName);
 
    List<Device> getDeviceByCode();
}