package com.jwipc.contract.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.contract.entity.ContractDeliveryDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.contract.model.po.ContractDeliveryDetailPO;
import com.jwipc.contract.model.query.ContractDeliveryDetailQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 合同交货明细表 Mapper 接口
 * </p>
 *
 * @author qzc
 * @since 2025-12-09
 */
public interface ContractDeliveryDetailMapper extends BaseMapper<ContractDeliveryDetail> {

    List<ContractDeliveryDetailPO> findList(@Param("query")ContractDeliveryDetailQuery query);

    List<ContractDeliveryDetail> selectReceiptContractDetailListPage(Page<ContractDeliveryDetail> page, @Param("query")ContractDeliveryDetailQuery query);

    List<ContractDeliveryDetail> selectreturnOrdertDetailListPage(Page<ContractDeliveryDetail> page, @Param("query")ContractDeliveryDetailQuery query);

    List<ContractDeliveryDetail> selectSumReivedQuantity(@Param("dataKeys")List<String> dataKeys);
}
