package com.xunhong.erp.turbo.biz.app.executor.cmd;

import com.xunhong.erp.turbo.api.biz.dto.cmd.OrderSupplierBatchInvoiceUploadCmd;
import com.xunhong.erp.turbo.biz.domain.gateway.OrderSupplierGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 订单供应商批量上传发票执行器
 *
 * @author claude
 */
@Slf4j
@Component
@RequiredArgsConstructor
public class OrderSupplierBatchInvoiceUploadCmdExe {

    private final OrderSupplierGateway orderSupplierGateway;

    /**
     * 执行批量上传发票
     *
     * @param orderSupplierBatchInvoiceUploadCmd 批量上传发票命令
     */
    public void execute(OrderSupplierBatchInvoiceUploadCmd orderSupplierBatchInvoiceUploadCmd) {
		orderSupplierGateway.batchInvoiceUpload(orderSupplierBatchInvoiceUploadCmd);
	}
}
