package incheon.sgp.ipd.edulife.mapper;

import java.util.List;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
import org.apache.ibatis.annotations.Param;

import incheon.com.config.annotation.ExternalDB;
import incheon.sgp.ipd.edulife.vo.MedicalFacilityVO;

@org.egovframe.rte.psl.dataaccess.mapper.Mapper @incheon.com.config.annotation.ExternalDB
public interface MedicalFacilityMapper {

	List<MedicalFacilityVO> getMedicalFacilityListByRadius(
	    @Param("latitude") double latitude,
	    @Param("longitude") double longitude,
	    @Param("radius") double radius, 
	    @Param("offset") int offset,
	    @Param("limit") int limit
	);
	
	List<MedicalFacilityVO> getPediatricCareListByRadius(
	    @Param("latitude") double latitude,
	    @Param("longitude") double longitude,
	    @Param("radius") double radius,
	    @Param("offset") int offset,
	    @Param("limit") int limit
	);

	MedicalFacilityVO findMedicalFacilityByInfo(
			@Param("latitude") double latitude, 
			@Param("longitude") double longitude, 
			@Param("name") String name
	);

	MedicalFacilityVO findPediatricCareByInfo(
			@Param("latitude") double latitude, 
			@Param("longitude") double longitude, 
			@Param("name") String name
	);
}