package com.ruoyi.frequency.bondwithdrawalrecord.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.controller.resp.WithdrawalRecordPageResp;
import com.ruoyi.frequency.bondwithdrawalrecord.entity.BondWithdrawalRecord;
import com.ruoyi.frequency.bondwithdrawalrecord.model.result.BondWithdrawalRecordCount;
import com.ruoyi.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 保证金提现记录Mapper接口
 *
 * @author liwenlong
 * @date 2023-10-31
 */
public interface BondWithdrawalRecordMapper  extends BaseMapper<BondWithdrawalRecord>
{
    /**
     * 查询保证金提现记录
     *
     * @param id 保证金提现记录主键
     * @return 保证金提现记录
     */
    public BondWithdrawalRecord selectBondWithdrawalRecordById(Long id);

    /**
     * 查询保证金提现记录列表
     *
     * @param bondWithdrawalRecord 保证金提现记录
     * @return 保证金提现记录集合
     */
    public List<BondWithdrawalRecord> selectBondWithdrawalRecordList(BondWithdrawalRecord bondWithdrawalRecord);

    /**
     * 新增保证金提现记录
     *
     * @param bondWithdrawalRecord 保证金提现记录
     * @return 结果
     */
    public int insertBondWithdrawalRecord(BondWithdrawalRecord bondWithdrawalRecord);

    /**
     * 修改保证金提现记录
     *
     * @param bondWithdrawalRecord 保证金提现记录
     * @return 结果
     */
    public int updateBondWithdrawalRecord(BondWithdrawalRecord bondWithdrawalRecord);

    Page<WithdrawalRecordPageResp> withdrawalRecordPage(@Param("page") Page page,@Param("userVo") UserVo userVo);

    WithdrawalRecordPageResp getDetail(@Param("id") Long id);

    BondWithdrawalRecordCount statistics(@Param("list") List<Long> bondWithdrawalRecordIdList);
}
