xufenglei
2019-02-28 5f1807ece119b2337ed71b575292e47a447cd154
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
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.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);
 
}