package com.ssm.manage.service.impl;

import com.ssm.core.service.impl.BaseServiceImpl;
import com.ssm.manage.dao.BaseDao;
import com.ssm.manage.dao.SsmRechargeAccountGiveDao;
import com.ssm.manage.entity.*;
import com.ssm.manage.mapper.RechargeAccountGiveMapper;
import com.ssm.manage.service.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class SsmRechargeAccountGiveServiceImpl extends BaseServiceImpl<RechargeAccountGive> implements SsmRechargeAccountGiveService {
    @Autowired
    private SsmRechargeAccountGiveDao dao;

    @Autowired
    private RechargeAccountGiveMapper mapper;

    @Override
    public BaseDao<RechargeAccountGive> getDao() {
        return dao;
    }

    @Override
    public void updateByGifMoney(RechargeAccountGive accountGive) {
        dao.updateByGifMoney(accountGive);
    }

    @Override
    public int updateByMemberId(RechargeAccountGive accountGive) {
        return mapper.updateByMemberId(accountGive);
    }
}
