package com.ssm.manage.dao.impl;

import com.ssm.core.impl.BaseDaoImpl;
import com.ssm.manage.dao.SsmRechargeAccountDao;
import com.ssm.manage.entity.RechargeAccount;
import com.ssm.manage.mapper.RechargeAccountMapper;
import com.ssm.manage.query.RechargeAccountRequest;
import com.ssm.manage.response.RechargeAccountResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class SsmRechargeAccountDaoImpl extends BaseDaoImpl<RechargeAccount> implements SsmRechargeAccountDao {
    @Autowired
    private RechargeAccountMapper mapper;

    @Override
    public RechargeAccountMapper getMapper() {
        return mapper;
    }

    @Override
    public int updateMoney(List<RechargeAccount> list) {
        return mapper.updateMoney(list);
    }

    @Override
    public int insertBatch(List<RechargeAccount> list) {
        return mapper.insertBatch(list);
    }

    @Override
    public List<RechargeAccountResponse> memberRecharge(RechargeAccountRequest rechargeAccountRequest) {
        return mapper.memberRecharge(rechargeAccountRequest);
    }

    @Override
    public List<RechargeAccount> selectByPrimaryKeyList(List<Long> rechargeAccountIdList) {

        return mapper.selectByPrimaryKeyList(rechargeAccountIdList);
    }
}
