package com.jwipc.finance.convert;

import com.jwipc.finance.dto.ReceiveVoucherDTO;
import com.jwipc.finance.dto.StatementItemDTO;
import com.jwipc.finance.dto.StatisticVoucherDTO;
import com.jwipc.finance.entity.ReceiveVoucher;
import com.jwipc.finance.model.po.ReceiveVoucherPO;
import com.jwipc.finance.model.po.StatementItemPO;
import com.jwipc.finance.model.po.StatisticVoucherPO;
import org.mapstruct.Mapper;

import java.util.Collection;
import java.util.List;

/**
 * @author shenyang.ou
 * @date 2024/3/4 10:34
 * @desc
 */
@Mapper(componentModel = "spring")
public interface ReceiptVoucherConvert {
    List<ReceiveVoucherDTO> po2PageListDTO(List<ReceiveVoucherPO> receiveVoucherPOS);

    List<StatisticVoucherDTO> statisticVoucherpo2DtoList(List<StatisticVoucherPO> invoicedApply);

    List<StatementItemDTO> statementItemPo2DtoList(List<StatementItemPO> statementItemPOS);

    ReceiveVoucherDTO entity2DTO(ReceiveVoucher receiveVoucher);
    ReceiveVoucherDTO po2DTO(ReceiveVoucherPO receiveVoucher);
}
