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

import java.util.List;

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

import com.iamberry.wechat.core.entity.PaperBean;
import com.iamberry.wechat.core.entity.banner.ActionBanner;
import com.iamberry.wechat.core.entity.banner.ActionBannerImage;
import com.iamberry.wechat.service.banner.dao.AdminBannerDAO;
import com.iamberry.wechat.service.mapper.AdminBannerMapper;
/**
 * @author 何秀刚
 * Introduction to the ： 后台banner管理dao实现
 * create date: 2016年1月9日
 */
@Repository
public class AdminBannerDAOImpl implements AdminBannerDAO {

	@Autowired
	private AdminBannerMapper adminBannerMapper;
	public void setAdminBannerMapper(AdminBannerMapper adminBannerMapper) {
		this.adminBannerMapper = adminBannerMapper;
	}
	@Override
	public List<ActionBanner> selectBannerListByPaper(PaperBean bean) {
		// TODO Auto-generated method stub
		return adminBannerMapper.selectBannerListByPaper(bean);
	}
	@Override
	public int selectBannerCountByPaper(PaperBean bean) {
		// TODO Auto-generated method stub
		return adminBannerMapper.selectBannerCountByPaper(bean);
	}
	@Override
	public int insertBanner(ActionBanner actionBanner) {
		// TODO Auto-generated method stub
		return adminBannerMapper.insertBanner(actionBanner);
	}
	@Override
	public Integer stopBannerById(Integer bannerId) {
		// TODO Auto-generated method stub
		return adminBannerMapper.stopBannerById(bannerId);
	}
	@Override
	public ActionBanner selectBannerById(Integer bannerId) {
		// TODO Auto-generated method stub
		return adminBannerMapper.selectBannerById(bannerId);
	}
	@Override
	public Integer updateBannerById(ActionBanner actionBanner) {
		// TODO Auto-generated method stub
		return adminBannerMapper.updateBannerById(actionBanner);
	}
	@Override
	public List<ActionBannerImage> selectBannerImgByBannerId(Integer bannerId) {
		// TODO Auto-generated method stub
		return adminBannerMapper.selectBannerImgByBannerId(bannerId);
	}
	@Override
	public Integer insertBannerImg(ActionBannerImage actionBannerImage) {
		// TODO Auto-generated method stub
		return adminBannerMapper.insertBannerImg(actionBannerImage);
	}
	@Override
	public Integer deleteBannerImgById(Integer id) {
		// TODO Auto-generated method stub
		return adminBannerMapper.deleteBannerImgById(id);
	}
	@Override
	public List<ActionBannerImage> selectNowBannerByType(Integer id) {
		// TODO Auto-generated method stub
		return adminBannerMapper.selectNowBannerByType(id);
	}
	
}
