package cn.superdesk.uniorder.dubbo.provider.thirdpart.qchjc.api;

import cn.superdesk.uniorder.dto.param.thirdpart.qchjc.api.customer.QchjcCustomerCancelStatementParam;
import cn.superdesk.uniorder.dto.param.thirdpart.qchjc.api.customer.QchjcCustomerMakeInvoiceStatusParam;
import cn.superdesk.uniorder.dto.param.thirdpart.qchjc.api.customer.QchjcCustomerReceivePaymentStatusParam;
import cn.superdesk.uniorder.dubbo.facade.thirdpart.qchjc.api.DubboQchApiSyncCustomerStatementService;
import cn.superdesk.uniorder.service.thirdpart.qchjc.account.QchjcCustomerStatementService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author xc
 * @description
 * @date 2022/4/10 17:38
 */
@Service(version = "1.0.0", retries = -1, timeout = 10000)
public class DubboQchApiSyncCustomerStatementServiceImpl implements DubboQchApiSyncCustomerStatementService {

    @Autowired
    private QchjcCustomerStatementService qchjcCustomerStatementService;

    /**
     * 采购单位开票状态同步
     * @param param
     * @return
     */
    @Override
    public void makeInvoiceStatusSync(QchjcCustomerMakeInvoiceStatusParam param) {
        qchjcCustomerStatementService.makeInvoiceStatusSync(param);
    }
    /**
     * 采购单位收款状态同步
     * @param param
     * @return
     */
    @Override
    public void receivePaymentStatusSync(QchjcCustomerReceivePaymentStatusParam param) {
        qchjcCustomerStatementService.receivePaymentStatusSync(param);
    }
    /**
     * 采购单位对账单作废接口
     * @param param
     * @return
     */
    @Override
    public void statementCancelSync(QchjcCustomerCancelStatementParam param) {
        qchjcCustomerStatementService.statementCancelSync(param);
    }
}
