wlzboy
2025-11-08 4dd78acfe298217ebc5dd247c5b45c6f33deea9b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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);
    
    /**
     * 查询常用转出医院ID列表
     * 
     * @param serviceOrdClass 分公司编码(service_order_class)
     * @return 常用转出医院ID列表
     */
    List<Integer> selectFrequentOutHospitalIds(@Param("serviceOrdClass") String serviceOrdClass);
    
    Integer getHomeHospId();
    /**
     * 查询常用转入医院ID列表
     * 
     * @param serviceOrdClass 分公司编码(service_order_class)
     * @return 常用转入医院ID列表
     */
    List<Integer> selectFrequentInHospitalIds(@Param("serviceOrdClass") String serviceOrdClass);
    
    /**
     * 根据医院ID列表查询医院信息
     * 
     * @param hospIds 医院ID列表
     * @param region 地域关键词(可选)
     * @return 医院列表
     */
    List<HospData> selectHospDataByIds(@Param("hospIds") List<Integer> hospIds, @Param("region") String region);
}