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);
}
