package com.ssj.service.sys.poster.service.impl;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ssj.bean.sys.poster.domain.PosterActivity;
import com.ssj.dao.sys.poster.dao.PosterActivityDao;
import com.ssj.dao.sys.poster.dao.PosterQueryDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.sys.poster.service.PosterActivityService;

@Service
@Transactional
public class PosterActivityServiceImpl extends BaseServiceImpl<PosterActivity, String> implements PosterActivityService {

	private  Logger logger = LoggerFactory.getLogger(this.getClass());
	
    @Autowired
    private PosterActivityDao dao;

    @Autowired
    private PosterQueryDao posterQueryDao;
    
    @Override
	public PagingAndSortingRepository<PosterActivity, String> getDao() {
		return dao;
	}

	@Override
	public Page<Map<String, Object>> findActivityByPage(Map<String, Object> params, Pageable initPage) {
		return posterQueryDao.findActivityByPage(params, initPage);
	}

	@Override
	public List<Map<String, Object>> exportActivityList(Map<String, Object> params) {
		return posterQueryDao.exportActivityList(params);
	}


}
