package com.jwipc.inquiry.convert;

import com.jwipc.inquiry.dto.*;
import com.jwipc.inquiry.entity.Inquiry;
import com.jwipc.inquiry.entity.InquiryTemplate;
import com.jwipc.inquiry.model.po.*;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @author shenyang.ou
 * @date 2024/2/4 19:47
 * @desc
 */
@Mapper(componentModel = "spring")
public interface InquiryConvert {
    List<InquiryDTO> po2DTOList(List<InquiryPO> inquiryPOS);

    InquiryDTO entity2DTO(Inquiry inquiry);

    Inquiry DTO2Entity(InquiryParamDTO param);

    List<InquiryMaterialQuoteDTO> materialQuotePO2DTOList(List<InquiryMaterialQuotePO> inquiryMaterialQuotePOS);

    List<InquiryEditSupplierDTO> editSupplierPo2DTOList(List<InquiryEditSupplierPO> inquiryPOS);

    List<InquiryDetailByIdDetailClientDTO> inquiryDetailByIdDetailPO2DTOList(List<InquiryDetailByIdDetailPO> inquiryDetailByIdDetailPOS);

    List<InquiryCostContractDTO> inquiryCostContractPO2DTOList(List<InquiryCostContractPO> inquiryCostContractPOS);
}
