package com.jwipc.contract.convert;

import com.jwipc.contract.dto.ContractDeliveryDetailDTO;
import com.jwipc.contract.dto.ContractDeliveryDetailSaveDTO;
import com.jwipc.contract.entity.ContractDeliveryDetail;
import com.jwipc.contract.model.po.ContractDeliveryDetailPO;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ContractDeliveryDetailConvert {

    ContractDeliveryDetail dto2Entity(ContractDeliveryDetailSaveDTO deliveryOrderSaveDTO);
    List<ContractDeliveryDetail> dtos2Entities(List<ContractDeliveryDetailSaveDTO> item);

    List<ContractDeliveryDetailDTO> pos2Dtos(List<ContractDeliveryDetailPO> list);
}
