package com.jwipc.finance.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.finance.entity.PaymentNoticeDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.finance.model.po.PaymentNoticeDetailPO;
import com.jwipc.finance.model.query.PaymentNoticeQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 对账模块-报关单明细表 Mapper 接口
 * </p>
 *
 * @author shenyang.ou
 * @since 2025-10-27
 */
public interface PaymentNoticeDetailMapper extends BaseMapper<PaymentNoticeDetail> {

    List<PaymentNoticeDetailPO> findPageByQuery(@Param("query") PaymentNoticeQuery query);

    List<PaymentNoticeDetailPO> findPageByQuery(Page<PaymentNoticeDetail> dbPage, @Param("query") PaymentNoticeQuery query);

    List<PaymentNoticeDetailPO> createNoPageList(@Param("query") PaymentNoticeQuery query);

    List<PaymentNoticeDetailPO> provideDetailByCostMatchingId(@Param("costMatchingId") Long costMatchingId);
}
