package com.jwipc.order.convert;

import com.jwipc.order.dto.AppointmentSupplierDTO;
import com.jwipc.order.entity.AppointmentSupplier;
import com.jwipc.order.model.po.AppointmentSupplierPO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author wt
 * @version 1.0
 * @since 2024/3/4
 */
@Mapper(componentModel = "spring")
public interface AppointmentSupplierConvert {
    /**
     * 送货单预约供应商配置 数据转换
     * @param poList
     * @return
     */
    List<AppointmentSupplierDTO> po2PageListDTO(List<AppointmentSupplierPO> poList);

    /**
     * 数据转换
     * @param po
     * @return
     */
    AppointmentSupplierDTO EntityToDTO(AppointmentSupplier po);

    AppointmentSupplier DTO2Entity(AppointmentSupplierDTO dto);
}
