package org.dromara.payment.invoice.mapper;

import org.apache.ibatis.annotations.Param;
import org.dromara.payment.invoice.domain.MerInvoiceType;
import org.dromara.payment.invoice.domain.vo.MerInvoiceTypeVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;

/**
 * 发票类目Mapper接口
 *
 * @author LionLi
 * @date 2024-05-06
 */
public interface MerInvoiceTypeMapper extends BaseMapperPlus<MerInvoiceType, MerInvoiceTypeVo> {
    /**
     * 根据产品id查询发票类目
     * @param busType 业务类型（6：服务商 7：运营商 8：代理商 9：商户 11:账单批次）
     * @param busId 业务id(多个逗号分隔)
     * @param proId 产品id
     * @param num 业务id数量
     * @return
     */
    List<MerInvoiceTypeVo> selectInvoiceByProId(@Param("busType") int busType, @Param("busId") String busId, @Param("proId") int proId,@Param("num") int num);


    List<MerInvoiceTypeVo>  selectInvoiceListByProId(@Param("proId") int proId);
}
