package com.zksy.base.pressure.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zksy.base.pressure.domain.FirefightingPressure;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Mapper
public interface FirefightingPressureMapper extends BaseMapper<FirefightingPressure> {

    List<Map<String, Object>> getDailyPressureStats(@Param("startTime") LocalDateTime startTime,
                                                    @Param("endTime") LocalDateTime endTime);

    List<Map<String, Object>> getPressureDistribution(@Param("startTime") LocalDateTime startTime,
                                                      @Param("endTime") LocalDateTime endTime);

    List<Map<String, Object>> getSignalVsPressure(@Param("startTime") LocalDateTime startTime,
                                                  @Param("endTime") LocalDateTime endTime);
}
