医院废弃物信息化管理平台
“mitao”
2026-04-21 2f18b3a28054c3917010f95ba84f7425280a2622
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
package cn.besteam.modules.system.service;
 
import cn.besteam.common.constant.DepartmentEnum;
import cn.besteam.modules.shiro.authc.util.EnvUtils;
import cn.besteam.modules.system.dto.ImportDTO;
import cn.besteam.modules.system.vo.SysDepartmentOfficeVO;
import cn.besteam.modules.system.dto.SysDepartmentOfficeQueryDTO;
import cn.besteam.modules.system.dto.SysDepartmentOfficeUpdateDTO;
import cn.besteam.modules.system.entity.SysDepartment;
import cn.besteam.modules.system.vo.*;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.commons.collections.CollectionUtils;
 
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
 
/**
 * @Description: 组织架构表
 * @author: besteam
 * @date: 2020-04-17
 * @version: V1.0
 */
public interface ISysDepartmentService extends IService<SysDepartment> {
 
    /**
     * 获取部门、科室所在医院
     *
     * @param id
     * @return
     */
    SysDepartment getHospital(Integer id);
 
    /**
     * 获取父级ID列表,自顶向下
     *
     * @param id
     * @return
     */
    List<Integer> getParentIdList(Integer id);
 
    /**
     * 获取我所在的部门
     *
     * @return
     */
    SysDepartment getMyDepartment(Integer userId);
 
    /**
     * 获取我能看到的医院列表
     *
     * @param userId
     * @return
     */
    List<SysDepartment> listMyHospital(Integer userId);
 
    /**
     * 组织架构导入
     *
     * @return
     */
    boolean importDepartment(ImportDTO dto) throws IOException;
 
    /**
     * 下载导入模板
     *
     * @param response
     */
    void downloadImportTemplate(HttpServletResponse response) throws IOException;
 
    /**
     * 生成树编码
     *
     * @param parentId
     * @return
     */
    String getTreeCode(Integer parentId);
 
    /**
     * 生成组织编码
     *
     * @param parentId
     * @param orgType
     * @return
     */
    String getOrgCode(Integer parentId, Integer orgType);
 
    /**
     * 删除缓存
     *
     * @param id
     * @return
     */
    boolean deleteCache(Integer id);
 
    /**
     * 根据ID获取组织架构信息,被删除的也要查出来
     * @param id
     * @return
     */
    SysDepartment getSysDepartmentById(Integer id);
 
 
    /**
     * 获取医院系统设置
     * @return
     */
    IPage<SysDepartmentVO> queryDepartmentPageList(Integer pageNo, Integer pageSize, SysDepartmentVO dto);
 
 
    /**
     * 获取收集小程序授权列表
     * @param vo
     * @return
     */
    IPage<CollectAppletAuthorizationListVO> getCollectAppletAuthorization(CollectAppletAuthorizationVO vo, Integer pageNo, Integer pageSize);
 
 
    /**
     * 批量配置收集小程序授权
     */
    void batchEditCollectAppletAuthorization(List<String> ids, Integer status, Integer userId);
 
 
 
    /**
     * 获取月报短信授权列表
     * @param vo
     * @return
     */
    IPage<MonthlySmsAuthorizationListVO> getMonthlySmsAuthorization(MonthlySmsAuthorizationVO vo, Integer pageNo, Integer pageSize);
 
 
    /**
     * 批量配置月报短信授权
     */
    void batchEditMonthlySmsAuthorization(List<String> ids, Integer status, Integer userId);
 
    /**
     * 发送预报表短信数据
     */
    void sendMonthlySMS();
 
    /**
     * 更新缓存
     */
    void joinCache();
 
    List<Integer> getDeptIdListByTreeCode(String treeCode);
 
    /**
     * 科室列表分页查询
     *
     * @param queryVO
     * @return
     */
    IPage<SysDepartmentOfficeVO> queryOfficePageList(SysDepartmentOfficeQueryDTO queryVO);
 
    /**
     * 更新科室信息
     * @param updateVO
     * @return
     */
    boolean updateOfficeInfo(SysDepartmentOfficeUpdateDTO updateVO);
 
    /**
     * 获取查询的医院id列表
     * @param hospitalId
     * @return
     */
    List<Integer> getSearchHospitalIdList(Integer hospitalId);
 
}