package org.dromara.payment.bill.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.payment.bill.domain.MerBill;
import org.dromara.payment.bill.domain.MerBillDetail;
import org.dromara.payment.bill.domain.vo.MerBillDetailVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.payment.bill.domain.vo.MerBillVo;

import java.util.List;

/**
 * 账单明细Mapper接口
 *
 * @author LionLi
 * @date 2024-04-08
 */
public interface MerBillDetailMapper extends BaseMapperPlus<MerBillDetail, MerBillDetailVo> {
    Page<MerBillDetailVo> queryPageList(@Param("page") Page<MerBillDetail> page, @Param(Constants.WRAPPER) Wrapper<MerBillDetail> queryWrapper);

    List<MerBillDetailVo> queryList(@Param(Constants.WRAPPER) Wrapper<MerBillDetail> queryWrapper);


    List<MerBillDetail> selectAmountByCards(List<String> cardIds,Integer proId);
}
