package com.ff.game.mapper;

import java.util.List;
import com.ff.game.domain.GameBettingDetails;
import org.apache.ibatis.annotations.Param;

/**
 * 会员投注细目Mapper接口
 * 
 * @author shi
 * @date 2025-02-10
 */
public interface GameBettingDetailsMapper 
{
    /**
     * 查询会员投注细目
     * 
     * @param id 会员投注细目主键
     * @return 会员投注细目
     */
     GameBettingDetails selectGameBettingDetailsById(Long id);


    /**
     * 按投注id选择游戏投注详细信息
     *
     * @param wagersIds 投注ID
     * @return {@link List }<{@link Long }>
     */
    List<Long> selectGameBettingDetailsByWagersId(@Param("wagersIds") List<Long>  wagersIds);


    /**
     * 查询会员投注细目列表
     * 
     * @param gameBettingDetails 会员投注细目
     * @return 会员投注细目集合
     */
     List<GameBettingDetails> selectGameBettingDetailsList(GameBettingDetails gameBettingDetails);

    /**
     * 新增会员投注细目
     * 
     * @param gameBettingDetails 会员投注细目
     * @return 结果
     */
     int insertGameBettingDetails(GameBettingDetails gameBettingDetails);

    /**
     * 修改会员投注细目
     * 
     * @param gameBettingDetails 会员投注细目
     * @return 结果
     */
     int updateGameBettingDetails(GameBettingDetails gameBettingDetails);

    /**
     * 删除会员投注细目
     * 
     * @param id 会员投注细目主键
     * @return 结果
     */
     int deleteGameBettingDetailsById(Long id);

    /**
     * 批量删除会员投注细目
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
     int deleteGameBettingDetailsByIds(Long[] ids);

    /**
     * 批量插入
     *
     * @param bettingDetails 投注详情
     * @return int
     */
    int batchInsert(List<GameBettingDetails> bettingDetails);
}
