package com.iamberry.wechat.service.rewards;

import java.util.List;

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

import com.iamberry.wechat.core.entity.rewards.RewardsRank;
import com.iamberry.wechat.face.rewards.RewardsService;
import com.iamberry.wechat.service.mapper.RewardsMapper;

/**
 * 会员等级 会员分销奖励记录 service 实现
 * @author Administrator
 *
 */
@Service
public class RewardsServiceImpl implements RewardsService{
	
	@Autowired
	private RewardsMapper rewardsMapper;

	@Override
	public List<RewardsRank> getRankByRankProductType(RewardsRank rewardsRank) {
		// TODO Auto-generated method stub
		return rewardsMapper.getRankByRankProductType(rewardsRank);
	}
	@Override
	public List<RewardsRank> selectRewardsList() {
		// TODO Auto-generated method stub
		return rewardsMapper.selectRewardsList();
	}

	@Override
	public Integer insertRewardsRank(RewardsRank rewardsRank) {
		// TODO Auto-generated method stub
		return rewardsMapper.insertRewardsRank(rewardsRank);
	}

	@Override
	public RewardsRank selectRewardsRankById(Integer rankId) {
		// TODO Auto-generated method stub
		return rewardsMapper.selectRewardsRankById(rankId);
	}

	@Override
	public Integer updateRewardsRank(RewardsRank rewardsRank) {
		// TODO Auto-generated method stub
		return rewardsMapper.updateRewardsRank(rewardsRank);
	}

	@Override
	public Integer deleteRewardsRankById(RewardsRank rewardsRank) {
		// TODO Auto-generated method stub
		return rewardsMapper.deleteRewardsRankById(rewardsRank);
	}
}
