package com.jwipc.contract.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.contract.entity.ContractDeliveryDetail;
import com.jwipc.contract.mapper.ContractDeliveryDetailMapper;
import com.jwipc.contract.model.po.ContractDeliveryDetailPO;
import com.jwipc.contract.model.query.ContractDeliveryDetailQuery;
import com.jwipc.contract.service.IContractDeliveryDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 合同交货明细表 服务实现类
 * </p>
 *
 * @author qzc
 * @since 2025-12-09
 */
@Service
public class ContractDeliveryDetailServiceImpl extends ServiceImpl<ContractDeliveryDetailMapper, ContractDeliveryDetail> implements IContractDeliveryDetailService {

    @Override
    public List<ContractDeliveryDetailPO> findList(ContractDeliveryDetailQuery query) {
        return this.baseMapper.findList(query);
    }

    @Override
    public List<ContractDeliveryDetail> selectReceiptContractDetailListPage(Page<ContractDeliveryDetail> page, ContractDeliveryDetailQuery query) {
        return  baseMapper.selectReceiptContractDetailListPage(page,query);
    }

    @Override
    public List<ContractDeliveryDetail> selectreturnOrdertDetailListPage(Page<ContractDeliveryDetail> page, ContractDeliveryDetailQuery query) {
        return this.baseMapper.selectreturnOrdertDetailListPage(page,query);
    }

    @Override
    public List<ContractDeliveryDetail> selectSumReivedQuantity(List<String> dataKeys) {
        return this.baseMapper.selectSumReivedQuantity(dataKeys);
    }
}
