package com.jwipc.contract.convert;

import com.jwipc.contract.dto.ContractReturnOrderDTO;
import com.jwipc.contract.dto.ContractReturnOrderSaveDTO;
import com.jwipc.contract.dto.ContractReturnOrdersLookupDTO;
import com.jwipc.contract.entity.ContractReturnOrder;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @author qizhicai
 * @version JDK 1.8
 * @date 2025/12/16
 * @description TODO
 */
@Mapper(componentModel = "spring")
public interface ContractReturnOrderConvert {

    ContractReturnOrdersLookupDTO entity2LookupDTO(ContractReturnOrder order);

    ContractReturnOrder dto2Entity(ContractReturnOrderSaveDTO saveDTO);

    List<ContractReturnOrderDTO> entities2Dtos(List<ContractReturnOrder> list);
}
