package com.iamberry.wechat.service.member.dao.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.iamberry.wechat.core.entity.Page;
import com.iamberry.wechat.core.entity.member.Withdraw;
import com.iamberry.wechat.service.mapper.WithdrawMapper;
import com.iamberry.wechat.service.member.dao.WithdrawDao;
@Repository
public class WithdrawDaoImpl  implements WithdrawDao {
	@Autowired
	private WithdrawMapper withdrawMapper;

	public WithdrawMapper getWithdrawMapper() {
		return withdrawMapper;
	}

	public void setWithdrawMapper(WithdrawMapper withdrawMapper) {
		this.withdrawMapper = withdrawMapper;
	}


	@Override
	public Integer getCount() {
		// TODO Auto-generated method stub
		return withdrawMapper.getCount();
	}

	@Override
	public void updateWithdraw(Withdraw withdraw) {
		// TODO Auto-generated method stub
		withdrawMapper.updateWithdraw(withdraw);
	}

	@Override
	public Integer insertApplyLogs(Withdraw withdraw) {
		// TODO Auto-generated method stub
		return withdrawMapper.insertApplyLogs(withdraw);
	}

	@Override
	public List<Withdraw> selectLogsByOpenid(Page page) {
		// TODO Auto-generated method stub
		return withdrawMapper.selectLogsByOpenid(page);
	}

	@Override
	public Integer selectLogsCountByOpenid(Page page) {
		// TODO Auto-generated method stub
		return withdrawMapper.selectLogsCountByOpenid(page);
	}

	@Override
	public Withdraw selectWithdrawLogsById(Integer id) {
		// TODO Auto-generated method stub
		return withdrawMapper.selectWithdrawLogsById(id);
	}

	@Override
	public Integer updateWithdrawStatusById(Withdraw withdraw) {
		// TODO Auto-generated method stub
		return withdrawMapper.updateWithdrawStatusById(withdraw);
	}

	@Override
	public int selectUseLogsCount(Withdraw withdraw) {
		// TODO Auto-generated method stub
		return withdrawMapper.selectUseLogsCount(withdraw);
	}

	@Override
	public List<Withdraw> selectWithDraw(Page page) {
		// TODO Auto-generated method stub
		return withdrawMapper.selectWithDraw(page);
	}
	
	@Override
	public List<Withdraw> selectWithDrawAllSumMoney(Page page) {
		// TODO Auto-generated method stub
		return withdrawMapper.selectWithDrawAllSumMoney(page);
	}
	
	
	
}
