package com.jwipc.supplier.mapper;

import com.jwipc.supplier.clent.dto.SupplierBankDTO;
import com.jwipc.supplier.entity.SupplierBank;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.supplier.model.po.SupplierBankDMPO;
import com.jwipc.supplier.model.po.SupplierBankSendPO;
import com.jwipc.supplier.model.query.SupplierPurchaseCategoryBaseQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 供应商银行信息 Mapper 接口
 * </p>
 *
 * @author ZhangJie
 * @since 2024-02-05
 */
public interface SupplierBankMapper extends BaseMapper<SupplierBank> {
    /**
     * 查询银行信息
     * @param supplierId
     * @return
     */
    List<SupplierBank> findSupplierBankData(@Param("supplierId") String supplierId);

    List<SupplierBankDMPO> findForBankdmReportExport(@Param("q") SupplierPurchaseCategoryBaseQuery query);

    List<SupplierBankSendPO> findSupplierBankDatas(@Param("ids")List<Long> ids);

}
