kaiyu
2020-11-30 8bb0e02e8fd166f35782870983fd2140142df409
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
package com.moral.mapper;
 
import java.util.List;
import java.util.Map;
import java.util.Set;
 
import com.moral.entity.Device;
 
import org.apache.ibatis.annotations.Param;
 
import com.moral.common.mapper.BaseMapper;
import com.moral.entity.MonitorPoint;
 
import tk.mybatis.mapper.entity.Example;
 
public interface MonitorPointMapper extends BaseMapper<MonitorPoint> {
    List<MonitorPoint> selectWithAreaNameByExample(Example example);
 
    List<MonitorPoint> getMonitorPointsByAreaName(Map<String, Object> parameters);
 
    List<MonitorPoint> selectByMap(Map<String, Object> params);
 
    List<Integer> selectOrganizationIds(int id);
 
    List<Integer> selectVersionsById(int id);
 
    Map<String, Object> selectAllById(int id);
 
    List<Map<String, Object>> getIdByOrganizationId(@Param("organizationIdList") List<Object> organizationIdList);
 
    //通过monitorPointId获取该公司区域的所有设备
    List<Device> getDeviceList(@Param("id") int id);
 
    //获取公司信息,通过id
    MonitorPoint getMonitorPointById(@Param("id") int id);
 
    List<MonitorPoint> getMonitorPointListByAccountId(@Param("id") int id);
 
    MonitorPoint byIdGetMonitorPoint(@Param("id") int id);
 
    MonitorPoint getFirstMonitorPointByAreaCode(@Param("areaCode") int areaCode);
 
    MonitorPoint getFirstMonitorPointByCityCode(@Param("cityCode") int cityCode);
 
    MonitorPoint getFirstMonitorPointByProvinceCode(@Param("provinceCode") int provinceCode);
 
    List<Integer> getMonitorPointIds(Map<String, Object> params);
 
    List<MonitorPoint> byCodeGetMonitor(Map<String, Object> params);
 
    String getOrgIdByMac(String mac);
 
    String getMonitorName(int mpId);
 
    List<MonitorPoint> getMonitorPointsByOrganizationIds(@Param("orgIds") Set<Integer> orgIds);
}