jinpengyong
2023-11-08 31c65cd4f338256b76efebdb2f1f29deb170969f
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
package com.moral.api.mapper;
 
import java.util.List;
import java.util.Map;
 
import com.moral.api.entity.Device;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.moral.api.pojo.vo.device.AppDeviceVo;
import io.lettuce.core.dynamic.annotation.Param;
 
/**
 * <p>
 * 设备表 Mapper 接口
 * </p>
 *
 * @author moral
 * @since 2021-06-28
 */
public interface DeviceMapper extends BaseMapper<Device> {
 
    /*监测因子趋势图数据*/
    List<Map<String, Object>> getTrendChartData(Map<String, Object> params);
 
    List<Map<String, Object>> deviceList(@Param("organizationId") int organizationId,
                            @Param("regionCode")  int regionCode,
                            @Param("region")  String region,
                            @Param("type")  String type,
                            @Param("sensorCode")  String sensorCode,
                            @Param("times")  String times,
                            @Param("endHourlyTime") String endHourlyTime);
 
    List<Integer> deviceIdList(@Param("organizationId") int organizationId);
 
    List<Integer> deviceOrgIdList(@Param("organizationId") int organizationId);
 
    List<String> deviceMacs(@Param("organizationId") int organizationId);
 
    List<AppDeviceVo> getDevices(@Param("mac") String mac,@Param("organizationId") Integer organizationId);
 
}