package com.yeejoin.amos.boot.module.jxiop.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mysql.cj.x.protobuf.MysqlxCrud;
import com.yeejoin.amos.boot.module.jxiop.api.dto.IndexDto;
import com.yeejoin.amos.boot.module.jxiop.api.dto.RunRecord;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanIndicator;
import org.apache.ibatis.annotations.Param;

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

/**
 * @description:
 * @author: tw
 * @createDate: 2023/7/3
 */
public interface MonitorFanIndicatorMapper extends BaseMapper<MonitorFanIndicator> {
   //批量修改
   void UpdateMonitorFanIndicator(@Param(value = "list") List<IndexDto> list);

    Integer queryByPageTotal(@Param("equipmentNumber") String equipmentNumber,
                             @Param("gateway") String gateway,
                             @Param("frontModule") String frontModule);

    List<MonitorFanIndicator> queryByPage(@Param("size") long size,
                                          @Param("equipmentNumber") String equipmentNumber,
                                          @Param("gateway") String gateway,
                                          @Param("frontModule") String frontModule,
                                          @Param("offset") int offset);
    Object getIndicatoralueAvage(String gateway,String indicator);


    Object getIndicatoralueTotal(String gateway,String indicator);

    List<Map<String, String>> getFanConfigPower(@Param("gatewayId") String gatewayId,
                                                @Param("equipmentNum") String equipmentNum);

    List<Map<String, String>> getBoosterStationInfo(@Param("gatewayId") String gatewayId);

    List<Map<String, String>> getMajorBoosterStationInfo(@Param("gatewayId") String gatewayId,
                                                         @Param("sortType") String sortType,
                                                         @Param("size") Integer size);

    Map<String, String> getMajorBoosterStationInfoBySort(@Param("gatewayId") String gatewayId,
                                                         @Param("sort") String sort);

    List<Map<String, String>> getBoosterStationInfo2(@Param("gatewayId") String boosterGatewayId);

    List<Map<String, String>> getBoosterStationInfoNormal(@Param("gatewayId") String boosterGatewayId);
}
