mitao
2024-12-24 ab96d801d6c5e2feea9677367c1b44c2e08b78ee
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package com.sinata.system.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sinata.system.domain.SysDepartment;
import com.sinata.system.domain.vo.DisposalUnitVO;
import com.sinata.system.domain.vo.MedicalInstitutionVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * <p>
 * 区域表 Mapper 接口
 * </p>
 *
 * @author mitao
 * @since 2024-12-02
 */
@Mapper
public interface SysDepartmentMapper extends BaseMapper<SysDepartment> {
    /**
     * 查询用户区域列表
     * @param userId
     * @return
     */
    SysDepartment getDepartmentByUserId(@Param("userId") Long userId);
 
    /**
     * 根据类型查询机构列表
     *
     * @param medicalInstitutionVOPage
     * @param departmentName
     * @param contactPerson
     * @param contactPhone
     * @param treeCode
     * @return
     */
    Page<MedicalInstitutionVO> pageMedicalList(Page<MedicalInstitutionVO> medicalInstitutionVOPage, @Param("departmentName") String departmentName, @Param("contactPerson") String contactPerson, @Param("contactPhone") String contactPhone, @Param("treeCode") String treeCode);
 
    /**
     * 查询医疗机构详情
     *
     * @param id
     * @return
     */
    MedicalInstitutionVO getMedicalDetailById(Long id);
 
    /**
     * 根据treeCode查询处置单位列表
     *
     * @param treeCode
     * @return
     */
    List<DisposalUnitVO> getDisposalUnitListByTreeCode(String treeCode);
 
    /**
     * 处置单位分页列表
     *
     * @param page
     * @param departmentName
     * @param contactPerson
     * @param contactPhone
     * @param treeCode
     * @return
     */
    Page<DisposalUnitVO> pageRegulatoryUnitList(Page<DisposalUnitVO> page, @Param("departmentId") Long departmentId, @Param("departmentName") String departmentName, @Param("contactPerson") String contactPerson, @Param("contactPhone") String contactPhone, @Param("treeCode") String treeCode);
 
    /**
     * 处置单位详情
     *
     * @param id
     * @return
     */
    DisposalUnitVO getDisposalUnitDetailById(@Param("id") Long id);
 
    /**
     * 路线关联医院列表
     *
     * @param id
     * @return
     */
    List<MedicalInstitutionVO> getHospitalListByRouteId(@Param("id") Long id);
}