package com.jwipc.finance.mapper;

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

import java.util.List;

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

    List<CustomsDeclarationDetailPO> findPageByQuery(@Param("query") CustomsDeclarationQuery query);

    List<CustomsDeclarationDetailPO> findPageByQuery(Page<CustomsDeclarationDetail> dbPage, @Param("query") CustomsDeclarationQuery query);

    List<CustomsDeclarationDetailPO> createNoPageList(@Param("query") CustomsDeclarationQuery query);

    List<CustomsDeclarationDetailPO> provideDetailByPaymentMatchingId(@Param("paymentMatchingId") Long paymentMatchingId);
}
