package com.jwipc.finance.convert;

import com.jwipc.finance.dto.DeductionDTO;

import com.jwipc.finance.dto.DeductionExportDTO;

import com.jwipc.finance.model.param.DeductionParam;

import com.jwipc.finance.model.po.DeductionPO;

import com.jwipc.finance.entity.Deduction;
import org.mapstruct.Mapper;

import java.util.List;


@Mapper(componentModel = "spring")
public interface DeductionConvert {
    List<DeductionDTO> po2PageListDTO(List<DeductionPO> deductionPOS);
    DeductionDTO po2DTO(DeductionPO deductionPO);
    Deduction param2Entity(DeductionParam param);
    List<DeductionDTO> entity2ListDTO(List<Deduction> deduction);

    List<DeductionExportDTO> entites2ExportDTOs(List<Deduction> deduction);

    List<Deduction> po2PageListEntities(List<DeductionPO> deductionPOS);

//    DeductionDTO assistantSupplierPO2DTO(DeductionPO deductionPO);
}
