package com.transaction_.service.impl;

import com.transaction_.dao.AccountDao;
import com.transaction_.entity.AccountEntity;
import com.transaction_.service.AccountTwoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
public class AccountTwoServiceImpl implements AccountTwoService {
    @Autowired
    AccountDao accountDao;
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void addAccountBalance(AccountEntity addEntity) {
        int in = accountDao.incomeAccount(addEntity, "in");
    }
}
