package com.ruoyi.system.mapper;
|
|
import com.ruoyi.common.annotation.DataSource;
|
import com.ruoyi.common.enums.DataSourceType;
|
import com.ruoyi.system.domain.HospData;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* 医院数据Mapper接口
|
*
|
* @author ruoyi
|
* @date 2024-01-16
|
*/
|
@DataSource(DataSourceType.SQLSERVER)
|
public interface HospDataMapper {
|
|
/**
|
* 根据医院名称或地址搜索医院
|
*
|
* @param keyword 搜索关键词
|
* @param region 地域关键词(用于过滤省市区)
|
* @return 医院列表
|
*/
|
List<HospData> searchHospitals(@Param("keyword") String keyword, @Param("region") String region);
|
|
/**
|
* 根据医院ID查询医院信息
|
*
|
* @param hospId 医院ID
|
* @return 医院信息
|
*/
|
HospData selectHospDataById(@Param("hospId") Integer hospId);
|
}
|