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.Integral;
import com.iamberry.wechat.core.entity.member.Member;
import com.iamberry.wechat.service.mapper.IntegralMapper;
import com.iamberry.wechat.service.member.dao.IntegralDao;
@Repository
public class IntegralDaoImpl  implements IntegralDao {
	@Autowired
	private IntegralMapper integralMapper;

	public IntegralMapper getIntegralMapper() {
		return integralMapper;
	}

	public void setIntegralMapper(IntegralMapper integralMapper) {
		this.integralMapper = integralMapper;
	}

	@Override
	public List<Integral> getAllIntegral() {
		return integralMapper.getAllIntegral();
	}

	@Override
	public List<Integral> getIntegralByPage(Page page) {
		return integralMapper.getIntegralByPage(page);
	}

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

	@Override
	public List<Integral> getIntegralListByOpenId(Member member) {
		// TODO Auto-generated method stub
		return integralMapper.getIntegralListByOpenId(member);
	}

	@Override
	public Integer insertIntegralLogs(Integral integer) {
		// TODO Auto-generated method stub
		return integralMapper.insertIntegralLogs(integer);
	}
}
