package com.ifish.dao;

import java.util.List;

import com.ifish.dto.ShopsListDto;
import com.ifish.entity.ShopsInfo;
import com.ifish.hibernate.Pagination;


/** 
 * @ClassName: ShopsInfoDao 
 * @Description: TODO 
 * @author ggw 
 *  
 */
public interface ShopsInfoDao extends BaseDao<ShopsInfo, Integer>{
	
	/**
	 * 根据距离获取数据
	 * @param longitude
	 * @param latitude
	 * @param firstResult
	 * @param pageSize
	 * @return
	 */
	public Pagination<ShopsListDto> findByDistance(Double longitude,Double latitude,Integer firstResult,Integer pageSize);
	
	
	/**
	 * 随机取得用户ID
	 * @return
	 */
	public List<Integer> getShopsUserIdByRand(Integer userId);
	
}
