package com.m2pool.lease.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.m2pool.lease.dto.UserMinerDto;
import com.m2pool.lease.entity.LeaseNexaMachineAvgPower;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 矿池nexa机器实时平均算力 Mapper 接口
 * </p>
 *
 * @author yyb
 * @since 2025-07-29
 */
@Mapper
public interface LeaseNexaMachineAvgPowerMapper extends BaseMapper<LeaseNexaMachineAvgPower> {

    /**
     * 批量插入数据
     *
     * @param list
     * @return
     */
    boolean insertBatchDatas(@Param("list") List<LeaseNexaMachineAvgPower> list);

    /**
     * 根据用户和矿工查询数据
     *
     * @param userMinerList
     * @return
     */
    List<LeaseNexaMachineAvgPower> selectListByUserAndMiner(@Param("list") List<UserMinerDto> userMinerList);
}
