医院废弃物信息化管理平台
“mitao”
2025-12-24 3763145f34d7706923d55edc32f5cfbc8bc08b92
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
package cn.besteam.modules.system.mapper;
 
import cn.besteam.modules.system.dto.SysDepartmentDTO;
import cn.besteam.modules.system.vo.SysDepartmentOfficeVO;
import cn.besteam.modules.system.dto.SysDepartmentOfficeQueryDTO;
import cn.besteam.modules.system.entity.SysDepartment;
import cn.besteam.modules.system.vo.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
 
import java.util.List;
import java.util.Map;
 
/**
 * @Description: 组织架构表
 * @author: besteam
 * @date: 2020-04-17
 * @version: V1.0
 */
@Repository
public interface SysDepartmentMapper extends BaseMapper<SysDepartment> {
 
    /**
     * 根据父类id获取部门列表
     *
     * @param page
     * @return
     */
    @Select("SELECT * FROM sys_department WHERE parent_id = -1 and del_flag=0")
    List<SysDepartment> getSysDepartmentByParentId(IPage<SysDepartmentDTO> page);
 
    /**
     * 根据ID获取组织架构信息,被删除的也要查出来
     *
     * @param id
     * @return
     */
    @Select("SELECT * FROM sys_department WHERE id = #{id} ")
    SysDepartment getSysDepartmentById(@Param("id") Integer id);
 
    /**
     * 获取医院系统设置
     * @return
     */
    IPage<SysDepartmentVO> queryDepartmentPageList(Page<SysDepartmentVO> page, @Param("dto")SysDepartmentVO dto);
 
 
    /**
     * 获取收集小程序授权列表
     * @param vo
     * @return
     */
    List<CollectAppletAuthorizationListVO> getCollectAppletAuthorization(@Param("page") Page<CollectAppletAuthorizationListVO> page, @Param("vo") CollectAppletAuthorizationVO vo,@Param("ids") List<Integer> ids);
 
 
    /**
     * 批量修改收集小程序授权
     * @param status
     */
    void batchEditCollectAppletAuthorization(@Param("ids") List<String> ids, Integer status, @Param("userId") Integer userId);
 
 
 
    /**
     * 获取月报短信授权列表
     * @param vo
     * @return
     */
    IPage<MonthlySmsAuthorizationListVO> getMonthlySmsAuthorization(Page<MonthlySmsAuthorizationListVO> page, @Param("vo") MonthlySmsAuthorizationVO vo);
 
 
    /**
     * 批量修改月报短信授权
     * @param status
     */
    void batchEditMonthlySmsAuthorization(@Param("ids") List<String> ids, Integer status, @Param("userId") Integer userId);
 
 
    /**
     * 获取预报发送医院数据
     * @return
     */
    List<Map<String, Object>> getMonthlySMSHospitalData();
 
    /**
     * 获取月报发送数量
     * @param month
     * @return
     */
    List<Map<String, Object>> getMonthlySMSData(@Param("id") Integer id, @Param("month") String month, @Param("status") Integer status);
 
    List<Integer> getDeptIdListByTreeCode(@Param("treeCode") String treeCode);
 
    /**
     * 科室列表分页查询
     * @param page
     * @param queryVO
     * @param treeCode
     * @return
     */
    IPage<SysDepartmentOfficeVO> queryOfficePageList(
        Page<SysDepartmentOfficeVO> page,
        @Param("queryVO") SysDepartmentOfficeQueryDTO queryVO,
        @Param("treeCode") String treeCode
    );
}