package com.jwipc.inquiry.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jwipc.inquiry.entity.Inquiry;
import com.jwipc.inquiry.model.po.*;
import com.jwipc.inquiry.model.query.InquiryConvertContractQuery;
import com.jwipc.inquiry.model.query.InquiryQuery;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 询价表 服务类
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-02-18
 */
public interface IInquiryService extends IService<Inquiry> {

    List<InquiryPO> findPageByQuery(Page<Inquiry> dbPage, InquiryQuery query);

    List<InquiryMaterialQuotePO> materialQuoteList(Long inquiryId);

    List<InquiryEditSupplierPO> supplierListByInquiryId(Long inquiryId);

    InquiryDetailByIdPO formDeatilById(Long xjId);

    Map formSupplierDeatilById(Long xjId);

    List<InquiryDetailByIdDetailPO> formMaterialDeatilById(Long xjId,String supplierId);

    List<InquiryDetailByIdPO> xjlistFindByList(Long xjId);

    List<InquiryPO> inquiryContractList(InquiryConvertContractQuery query);

    List<InquiryDetailByIdDetailPO> formDetailByMaterialSupplierId(List<String> inquiryIdList, String supplierId);

    List<InquiryDetailByIdPO> getConvertedContractByInquiryId(Long inquiryId);

    List<InquiryCostContractPO> getInquiryCostContractList(InquiryConvertContractQuery query);
}
