package com.jwipc.inquiry.convert;

import com.jwipc.inquiry.dto.AssistantMaterialSupplierDTO;
import com.jwipc.inquiry.dto.InquiryDTO;
import com.jwipc.inquiry.dto.InquiryMaterialDTO;
import com.jwipc.inquiry.dto.InquiryParamDTO;
import com.jwipc.inquiry.entity.Inquiry;
import com.jwipc.inquiry.entity.InquiryMaterial;
import com.jwipc.inquiry.model.po.AssistantMaterialSupplierPO;
import com.jwipc.inquiry.model.po.InquiryMaterialPO;
import com.jwipc.inquiry.model.po.InquiryPO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @author shenyang.ou
 * @date 2024/2/4 19:47
 * @desc
 */
@Mapper(componentModel = "spring")
public interface InquiryMaterialConvert {
    List<InquiryMaterial> DTO2EntityList(List<InquiryMaterialDTO> inquiryMaterialList);

    InquiryMaterial DTO2Entity(InquiryMaterialDTO inquiryMaterialDTO);

    List<InquiryMaterialDTO> po2DTOList(List<InquiryMaterialPO> inquiryPOS);

    InquiryMaterialDTO entity2DTO(InquiryMaterial inquiryMaterial);

    List<AssistantMaterialSupplierDTO> assistantMaterialSupplierPO2DTOList(List<AssistantMaterialSupplierPO> inquiryMaterialPOS);
}
