package com.ruoyi.frequency.givewallerecord.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.controller.req.WalletPageReq;
import com.ruoyi.controller.resp.WalletPageResp;
import com.ruoyi.frequency.givewallerecord.entity.GiveWalletRecord;
import com.ruoyi.vo.UserVo;
import org.apache.ibatis.annotations.Param;

/**
 * 抵用金钱包记录Mapper接口
 * 
 * @author liwenlong
 * @date 2024-05-18
 */
public interface GiveWalletRecordMapper  extends BaseMapper<GiveWalletRecord>
{
    /**
     * 查询抵用金钱包记录
     * 
     * @param id 抵用金钱包记录主键
     * @return 抵用金钱包记录
     */
    public GiveWalletRecord selectGiveWalletRecordById(Long id);

    /**
     * 查询抵用金钱包记录列表
     * 
     * @param giveWalletRecord 抵用金钱包记录
     * @return 抵用金钱包记录集合
     */
    public List<GiveWalletRecord> selectGiveWalletRecordList(GiveWalletRecord giveWalletRecord);

    /**
     * 新增抵用金钱包记录
     * 
     * @param giveWalletRecord 抵用金钱包记录
     * @return 结果
     */
    public int insertGiveWalletRecord(GiveWalletRecord giveWalletRecord);

    /**
     * 修改抵用金钱包记录
     * 
     * @param giveWalletRecord 抵用金钱包记录
     * @return 结果
     */
    public int updateGiveWalletRecord(GiveWalletRecord giveWalletRecord);

    Page<WalletPageResp> giveWalletPage(@Param("page") Page<Object> objectPage, @Param("req") WalletPageReq req, @Param("userVo") UserVo userVo);
}
