package com.zksy.base.environment.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zksy.base.environment.domain.ERealTimeData;

/**
* @author Administrator
* @description 针对表【e_real_time_data(环境实时数据)】的数据库操作Service
* @createDate 2025-08-27 10:30:48
*/
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

public interface ERealTimeDataService extends IService<ERealTimeData> {

    ERealTimeData getLatestByDeviceNode(Integer deviceId, Integer nodeId);

    Map<String, Object> getDailyStats(Integer deviceId, Integer nodeId, LocalDate date);

    List<Map<String, Object>> getTrend(Integer deviceId, Integer nodeId, LocalDateTime start, LocalDateTime end);

    List<Map<String, Object>> getAlarms(Integer deviceId, Integer nodeId, LocalDateTime start, LocalDateTime end, Double threshold);

    List<String> getDeviceGroup();
}
