package com.ifish.serviceImpl;

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

import com.ifish.dao.PushListDao;
import com.ifish.dao.UserDao;
import com.ifish.dto.ShopsLookUserDto;
import com.ifish.entity.PushList;
import com.ifish.hibernate.Pagination;
import com.ifish.service.PageListService;

/** 
 * @ClassName: PageListServiceImpl 
 * @Description: TODO 
 * @author ggw
 *  
 */
@Service
@Transactional
public class PageListServiceImpl implements PageListService {

	@Autowired
	private PushListDao pushListDao;
	@Autowired
	private UserDao userDao;
	
	@Override
	public Pagination<PushList> getPushListByPage(Integer pushId, Integer userId, Integer firstResult, Integer pageSize) {
		return pushListDao.findByCriteria(pushId, userId, firstResult, pageSize);
	}

	@Override
	public Pagination<ShopsLookUserDto> getLookListByPage(Integer shopsUserId,Integer firstResult, Integer pageSize) {
		return userDao.findByCriteria(shopsUserId, firstResult, pageSize);
	}

}
