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

import com.ssj.bean.sys.poster.domain.PosterActivity;
import com.ssj.bean.sys.poster.domain.PosterActivityJoin;
import com.ssj.dao.sys.poster.dao.PosterActivityDao;
import com.ssj.dao.sys.poster.dao.PosterActivityJoinDao;
import com.ssj.dao.sys.poster.dao.PosterQueryDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.sys.poster.service.PosterActivityJoinService;
import com.ssj.service.sys.poster.service.PosterActivityService;
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 java.util.Map;

@Service
@Transactional
public class PosterActivityJoinServiceImpl extends BaseServiceImpl<PosterActivityJoin, String> implements PosterActivityJoinService {

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

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


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