package com.iamberry.wechat.service.home.dao.impl;

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

import com.iamberry.wechat.core.entity.member.Member;
import com.iamberry.wechat.service.home.dao.HomeServiceDao;
import com.iamberry.wechat.service.mapper.HomeMemberMapper;
/**
 * @author 何秀刚
 * Class Description: DAO实现类
 * Create Date:2016年4月18日
 * Update Date:2016年4月18日
 */
@Repository
public class HomeServiceDaoImpl implements HomeServiceDao {
	@Autowired
	private HomeMemberMapper homeMemberMapper;
	
	@Override
	public Member selectMemberInfoByOpenId(String openid) {
		// TODO Auto-generated method stub
		return homeMemberMapper.selectMemberInfoByOpenId(openid);
	}

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

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

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

	@Override
	public Integer updateMemberStatusByOpenId(String openid) {
		// TODO Auto-generated method stub
		return homeMemberMapper.updateMemberStatusByOpenId(openid);
	}

	@Override
	public Member selectMemberQrcodeUrlByOpenid(String openid) {
		// TODO Auto-generated method stub
		return homeMemberMapper.selectMemberQrcodeUrlByOpenid(openid);
	}

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

	@Override
	public Integer selectUserIntegralByOpenid(String openid) {
		// TODO Auto-generated method stub
		return homeMemberMapper.selectUserIntegralByOpenid(openid);
	}

	@Override
	public Member selectUserInfoByPlaceId(Integer placeId) {
		// TODO Auto-generated method stub
		return homeMemberMapper.selectUserInfoByPlaceId(placeId);
	}

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