package com.jwipc.inquiry.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.inquiry.entity.Inquiry;
import com.jwipc.inquiry.entity.PurchaseApplyBill;
import com.jwipc.inquiry.entity.PurchaseApplyBillDetail;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jwipc.inquiry.model.po.InquiryMaterialPO;
import com.jwipc.inquiry.model.po.PurchaseApplyBillDetailPO;
import com.jwipc.inquiry.model.query.PurchaseApplyBillDetailQuery;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 采购申请明细 服务类
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-02-29
 */
public interface IPurchaseApplyBillDetailService extends IService<PurchaseApplyBillDetail> {

    List<PurchaseApplyBillDetailPO> findPageByQuery(Page<Inquiry> dbPage, PurchaseApplyBillDetailQuery query);

    List<InquiryMaterialPO> makeInquiryMaterial(List<String> purchaseBillDetailIdList);

    List<PurchaseApplyBillDetailPO> findPageByQuerySC(Page<Inquiry> dbPage, PurchaseApplyBillDetailQuery query);

    List<PurchaseApplyBillDetailPO> selectPurchaseForContractList(Page<PurchaseApplyBill> dbPage, PurchaseApplyBillDetailQuery query);

    BigDecimal getPurchaseNumAmountByBillNoAndCode(String billCode, String itemCode, Long id);

}
