package com.yeejoin.amos.boot.module.jxiop.biz.mapper2;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.boot.module.jxiop.biz.ESDto.ESWindSpeed;
import com.yeejoin.amos.boot.module.jxiop.biz.entity.TemporaryData;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

public interface TemporaryDataMapper extends BaseMapper<TemporaryData> {


    List<Map<String, Object>> timingTemporarysSorageData (@RequestParam(value ="gatewayId" ) String gatewayId);

    List<Map<String, Object>> timingTemporarysSorageDataByIndexName (@RequestParam(value ="gatewayId" ) String gatewayId,
                                                                     @RequestParam(value ="equipmentIndexName" ) String equipmentIndexName);


    Map<String, String> getStatisticsInfo (@RequestParam(value ="gatewayId" ) String gatewayId,
                                           @RequestParam(value ="equipmentIndexName" ) String equipmentIndexName);

    List<ESWindSpeed> getAllData();
}
