package com.ruoyi.frequency.bankcard.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.BankCardPageReq;
import com.ruoyi.controller.resp.BankCardDetailResp;
import com.ruoyi.controller.resp.BankCardPageResp;
import com.ruoyi.frequency.bankcard.entity.BankCard;
import com.ruoyi.vo.UserVo;
import org.apache.ibatis.annotations.Param;

/**
 * 银行卡Mapper接口
 * 
 * @author liwenlong
 * @date 2024-04-10
 */
public interface BankCardMapper  extends BaseMapper<BankCard>
{
    /**
     * 查询银行卡
     * 
     * @param id 银行卡主键
     * @return 银行卡
     */
    public BankCard selectBankCardById(Long id);

    /**
     * 查询银行卡列表
     * 
     * @param bankCard 银行卡
     * @return 银行卡集合
     */
    public List<BankCard> selectBankCardList(BankCard bankCard);

    /**
     * 新增银行卡
     * 
     * @param bankCard 银行卡
     * @return 结果
     */
    public int insertBankCard(BankCard bankCard);

    /**
     * 修改银行卡
     * 
     * @param bankCard 银行卡
     * @return 结果
     */
    public int updateBankCard(BankCard bankCard);

    Page<BankCardPageResp> bankCardPage(@Param("page") Page<Object> objectPage, @Param("item")BankCardPageReq req,@Param("userVo") UserVo userVo);

    BankCardDetailResp bankCardDetail(@Param("bankCardId") Long bankCardId,@Param("userVo") UserVo userVo);
}
