package com.jwipc.supplier.convert;

import com.jwipc.supplier.dto.SupplierPurchaseCategoryBaseDTO;
import com.jwipc.supplier.dto.SupplierPurchaseCategoryVersionCompareDTO;
import com.jwipc.supplier.entity.SupplierPurchaseCategory;
import com.jwipc.supplier.entity.SupplierPurchaseCategoryVersion;
import com.jwipc.supplier.model.po.SupplierPurchaseCategoryVersionComparePO;
import org.mapstruct.Mapper;

import java.util.List;


@Mapper(componentModel = "spring")
public interface SupplierPurchaseCategoryVersionConvert {
    List<SupplierPurchaseCategoryVersion> dtos2Entities(List<SupplierPurchaseCategoryBaseDTO> categoryList);

    List<SupplierPurchaseCategoryVersion> toVersion(List<SupplierPurchaseCategory> supplierPurchaseCategories);

    List<SupplierPurchaseCategoryVersionCompareDTO> pos2Dtos(List<SupplierPurchaseCategoryVersionComparePO> categoryVersionComparePOS);

    List<SupplierPurchaseCategory> toMastEntity(List<SupplierPurchaseCategoryVersion> addOrUpdate);
}
