package com.jwipc.supplier.convert;

import com.jwipc.supplier.dto.SupplierAvlBaseDTO;
import com.jwipc.supplier.dto.SupplierAvlExportDTO;
import com.jwipc.supplier.dto.SupplierAvlSaveDTO;
import com.jwipc.supplier.entity.SupplierAvl;
import com.jwipc.supplier.model.po.SupplierAvlSelectPO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * dengjsh
 */
@Mapper(componentModel = "spring")
public interface SupplierAvlConvert {
    SupplierAvl dto2Entity(SupplierAvlSaveDTO saveDTO);

    List<SupplierAvlBaseDTO> entities2Dtos(List<SupplierAvl> list);

    List<SupplierAvlBaseDTO> entities2SelectDtos(List<SupplierAvlSelectPO> list);

    SupplierAvlBaseDTO entity2Dto(SupplierAvl supplierAvl);

    /**
     * @param supplierAvlExportDTOS
     */
    List<SupplierAvl> importDTOs2Entites(List<SupplierAvlExportDTO> supplierAvlExportDTOS) ;
}
