package com.jwipc.finance.logic.impl;

import com.jwipc.finance.logic.IPaymentApiService;
import com.jwipc.finance.model.po.CreatePaaDetailPO;
import com.jwipc.finance.model.query.PaymentApplyItemQuery;
import com.jwipc.finance.service.IPaymentCodApplyDetailService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class IPaymentApiServiceImpl implements IPaymentApiService {

    private final IPaymentCodApplyDetailService paymentCodApplyDetailService;

    @Override
    public List<CreatePaaDetailPO> readAdvancePaymentPoData(PaymentApplyItemQuery query) {
        return paymentCodApplyDetailService.readAdvancePaymentPoData(query);
    }

    @Override
    public void findPoAdvanceApplySituation(List<CreatePaaDetailPO> params, List<Long> existedItemIdList, Long applyId) {
         paymentCodApplyDetailService.findPoAdvanceApplySituation(params,existedItemIdList,applyId);

    }
}
