package com.jwipc.inquiry.convert;

import com.jwipc.inquiry.dto.AssistantSupplierDTO;
import com.jwipc.inquiry.dto.InquiryMaterialSupplierClientDTO;
import com.jwipc.inquiry.dto.InquiryMaterialSupplierDTO;
import com.jwipc.inquiry.entity.InquiryMaterialSupplier;
import com.jwipc.inquiry.model.po.AssistantSupplierPO;
import com.jwipc.inquiry.model.po.InquiryMaterialSupplierPO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @author shenyang.ou
 * @date 2024/2/4 19:47
 * @desc
 */
@Mapper(componentModel = "spring")
public interface InquiryMaterialSupplierConvert {
    InquiryMaterialSupplier DTO2Entity(InquiryMaterialSupplierDTO inquiryMaterialSupplierDTO);

    List<InquiryMaterialSupplierDTO> po2DTOList(List<InquiryMaterialSupplierPO> inquiryPOS);

    List<InquiryMaterialSupplier> dto2EntityList(List<InquiryMaterialSupplierDTO> inquiryMaterialSupplierList);

    List<AssistantSupplierDTO> assistantSupplierPO2DTOList(List<AssistantSupplierPO> assistantSupplierPOS);

    List<InquiryMaterialSupplierClientDTO> po2ClientDTOList(List<InquiryMaterialSupplierPO> inquiryPOS);
}
