package com.jwipc.order.convert;

import com.jwipc.order.dto.DeliveryOrderControlBaseDTO;
import com.jwipc.order.dto.DeliveryOrderControlSaveDTO;
import com.jwipc.order.entity.DeliveryOrderControl;
import com.jwipc.order.model.po.DeliveryOrderControlSelectPO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * dengjsh
 */
@Mapper(componentModel = "spring")
public interface DeliveryOrderControlConvert {
    DeliveryOrderControl dto2Entity(DeliveryOrderControlSaveDTO saveDTO);

    List<DeliveryOrderControlBaseDTO> entities2Dtos(List<DeliveryOrderControl> list);

    List<DeliveryOrderControlBaseDTO> entities2SelectDtos(List<DeliveryOrderControlSelectPO> list);

    DeliveryOrderControlBaseDTO entity2Dto(DeliveryOrderControl deliveryOrderControl);

}
