package com.jwipc.inquiry.impl;

import com.jwipc.inquiry.client.PurchaseApplyBillClient;
import com.jwipc.inquiry.dto.PurchaseApplyBillClientDTO;
import com.jwipc.inquiry.dto.PurchaseApplyBillDetailClientDTO;
import com.jwipc.inquiry.logic.PurchaseApplyBillDetailLogic;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @author shenyang.ou
 * @date 2024/4/24 14:39
 * @desc
 */
@Service
@RequiredArgsConstructor
public class PurchaseApplyBillClientImpl implements PurchaseApplyBillClient {
    private final PurchaseApplyBillDetailLogic purchaseApplyBillDetailLogic;
    @Override
    public List<PurchaseApplyBillClientDTO> listByBillCodeList(Collection<? extends Serializable> billCodeList) {
        return purchaseApplyBillDetailLogic.listByBillCodeList(billCodeList);
    }

    @Override
    public PurchaseApplyBillClientDTO getPurchaseApplyBill(String billCode) {
        return purchaseApplyBillDetailLogic.getPurchaseApplyBill(billCode);
    }

    @Override
    public List<PurchaseApplyBillDetailClientDTO> getPurchaseApplyBillDetail(String billCode, String itemCode) {
        return purchaseApplyBillDetailLogic.getPurchaseApplyBillDetail(billCode, itemCode);
    }
}
