package com.m2pool.lease.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.m2pool.lease.entity.LeaseMachineConfig;
import com.m2pool.lease.entity.LeaseMachineTempConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * GPU对应币种挖矿算力临时表(主机gpu信息变更临时表) Mapper 接口
 * </p>
 *
 * @author yyb
 * @since 2025-12-09
 */
@Mapper
public interface LeaseMachineTempConfigMapper extends BaseMapper<LeaseMachineTempConfig> {

    /**
     * 批量插入
     * @param needUpdateInfo
     * @return
     */
   int insertBatch(@Param("list") List<LeaseMachineConfig> needUpdateInfo);

    /**
     * 批量插入
     * @param needUpdateInfo
     * @return
     */
    int insertBatchByTempList(@Param("list") List<LeaseMachineTempConfig> needUpdateInfo);
}
