package com.crm.pay.service.impl.pay;

import com.crm.pay.service.FinanceDepositService;
import com.crm.pay.service.QrCodePayService;
import com.crm.pay.service.impl.base.BasePayServiceImpl;
import com.crm.rely.backend.model.entity.finance.deposit.FinanceDepositAddEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class QrCodePayServiceImpl extends BasePayServiceImpl implements QrCodePayService {

    @Autowired
    private FinanceDepositService financeDepositService;

    @Override
    @Transactional(rollbackFor = Exception.class)
    public void pay(FinanceDepositAddEntity balanceSaveEntity) throws Exception {

        financeDepositService.save(balanceSaveEntity);
    }
}
