package com.jwipc.contract.convert;

import com.jwipc.contract.dto.ContractReturnOrderDetailDTO;
import com.jwipc.contract.dto.ContractReturnOrderDetailSaveDTO;
import com.jwipc.contract.entity.ContractReturnOrderDetail;
import com.jwipc.contract.model.po.ContractReturnOrderDetailPO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @author qizhicai
 * @version JDK 1.8
 * @date 2025/12/17
 * @description TODO
 */
@Mapper(componentModel = "spring")
public interface ContractReturnOrderDetailsConvert {
    List<ContractReturnOrderDetailDTO> pos2Dtos(List<ContractReturnOrderDetailPO> po);

    List<ContractReturnOrderDetail> dtos2Entities(List<ContractReturnOrderDetailSaveDTO> saveDTOItem);

    ContractReturnOrderDetail dto2Entity(ContractReturnOrderDetailSaveDTO detailSaveDTO);
}
