package com.sckw.payment.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sckw.payment.model.KwpWalletTransfer;
import com.sckw.payment.model.vo.req.page.MoneyPage;
import com.sckw.payment.model.vo.res.FundVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author xucaiqin
 * @date 2023-09-06 16:42:08
 */
@Mapper
public interface KwpWalletTransferMapper extends BaseMapper<KwpWalletTransfer> {
    List<KwpWalletTransfer> pageList(@Param("moneyPage") MoneyPage moneyPage);

    /**
     * 统计转账中金额
     *
     * @param fundVo
     * @return
     */
    BigDecimal sumMoney(@Param("fundVo")FundVo fundVo);
}