医院废弃物信息化管理平台
“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
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
package cn.besteam.modules.medical.service;
 
import cn.besteam.modules.medical.dto.*;
import cn.besteam.modules.medical.entity.MwCollectRecord;
import cn.besteam.modules.medical.vo.*;
import cn.besteam.modules.report.vo.DisposalMonthlyReportVoItemVO;
import cn.besteam.modules.report.vo.RankStatisticsVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
 
import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.List;
import java.util.Map;
 
/**
 * @Description: APP-版本表
 * @author: besteam
 * @date: 2020-04-25
 * @version: V1.0
 */
public interface IMwCollectRecordService extends IService<MwCollectRecord> {
 
    /**
     * 新增收集记录
     *
     * @param dto
     * @return
     */
    Integer addCollect(MwCollectRecordSaveDTO dto);
 
    /**
     * 批量新增收集记录
     *
     * @param list
     * @return
     */
    boolean addCollectBatch(List<MwCollectRecordSaveDTO> list);
 
    /**
     * 删除收集记录
     *
     * @param id
     * @return
     */
    boolean delete(Integer id);
 
    /**
     * 通过code删除收集
     *
     * @param code
     * @return
     */
    boolean deleteByCode(String code);
 
    /**
     * 恢复收集记录
     *
     * @param id
     * @return
     */
    boolean restore(Integer id);
    //
    //
 
    /**
     * 入库
     *
     * @param dto
     * @return
     */
    boolean storeCollect(MwCollectRecordStoreDTO dto);
 
    /**
     * 批量入库
     *
     * @param list
     * @return
     */
    boolean storeCollectBatch(List<MwCollectRecordStoreDTO> list);
 
    /**
     * OPS端分页列表
     * 收集记录、医废追溯
     *
     * @param pageNo
     * @param pageSize
     * @param dto
     * @return
     */
    IPage<MwCollectRecordVO> queryPageCollectList(Integer pageNo, Integer pageSize, MwCollectRecordOpsDTO dto);
    List<MwCollectRecordVO> queryPageCollectList( MwCollectRecordOpsDTO dto);
 
    /**
     * OPS端分页列表
     * 入库列表
     *
     * @param pageNo
     * @param pageSize
     * @param dto
     * @return
     */
    IPage<MwCollectRecordVO> queryPageStoreList(Integer pageNo, Integer pageSize, MwCollectRecordOpsDTO dto);
    List<MwCollectRecordVO> queryPageStoreList( MwCollectRecordOpsDTO dto);
 
    /**
     * OPS端分页列表
     * 出库列表
     *
     * @param pageNo
     * @param pageSize
     * @param dto
     * @return
     */
    IPage<MwCollectRecordVO> queryPageCheckoutList(Integer pageNo, Integer pageSize, MwCollectRecordOpsDTO dto);
    List<MwCollectRecordVO> queryPageCheckoutList(MwCollectRecordOpsDTO dto);
 
    /**
     * OPS端分页列表
     * 补录列表
     *
     * @param pageNo
     * @param pageSize
     * @param dto
     * @return
     */
    IPage<MwCollectRecordVO> queryPageSupplyList(Integer pageNo, Integer pageSize, MwCollectRecordOpsDTO dto);
    List<MwCollectRecordVO> queryPageSupplyList( MwCollectRecordOpsDTO dto);
 
    /**
     * OPS端分页列表
     * 数据恢复
     *
     * @param pageNo
     * @param pageSize
     * @param dto
     * @return
     */
    IPage<MwCollectRecordVO> queryPageDeleteList(Integer pageNo, Integer pageSize, MwCollectRecordOpsDTO dto);
    List<MwCollectRecordVO> queryPageDeleteList(MwCollectRecordOpsDTO dto);
 
    /**
     * 审核补录记录
     *
     * @param dto
     * @return
     */
    boolean auditSupplement(MwCollectRecordAuditDTO dto);
 
    /**
     * 补录
     *
     * @param dto
     * @return
     */
    boolean supply(MwCollectRecordSupplyDTO dto);
 
    /**
     * 获取记录详情
     *
     * @param id
     * @return
     */
    MwCollectRecordVO getRecordDetail(Integer id);
 
    /**
     * 获取此次出库操作医废收集类型统计
     *
     * @param idList
     * @param wasteTypeStr
     * @return
     */
    ApiMedicalStatisticsVO getStatistic(List<Integer> idList, String wasteTypeStr, Integer status, Integer delFlag, Integer auditStatus);
 
    /**
     * 统计-收集统计
     *
     * @param dto
     * @return
     */
    ApiStatisticsVO collectStatistics(ApiStatisticsDTO dto, HttpServletRequest request);
 
    /**
     * 统计-入库和出库统计
     *
     * @param dto
     * @return
     */
    List<ApiMedicalStatisticsVO> storeAndCheckoutStatistics(ApiStatisticsDTO dto,HttpServletRequest request);
 
    /**
     * 获取未装箱清单列表
     *
     * @param warehouseId
     * @param userId
     * @return
     */
    List<MwCollectRecord> getUnBoxingList(Integer warehouseId, Integer userId);
 
    /**
     * 获取已装箱列表
     * @param warehouseId
     * @param userId
     * @param hospitalId
     * @return
     */
    List<MwCollectRecord> getUnBoxingListNew(Integer warehouseId, Integer userId,Integer hospitalId);
 
    /**
     * 获取未装箱清单列表(箱装)
     * @param warehouseId
     * @param userId
     * @param hospitalId
     * @return
     */
    List<MwCollectRecord> getUnBoxingListTotal(Integer warehouseId, Integer userId,Integer hospitalId);
 
    /**
     * 产废排行统计
     *
     * @param pageNo
     * @param pageSize
     * @param departmentIdList
     * @param startTime
     * @param endTime
     * @return
     */
    IPage<RankStatisticsVO> getRankStatisticsList(Integer pageNo, Integer pageSize, List<Integer> departmentIdList, Date startTime, Date endTime,String typeName);
 
    /**
     * 区域产废排行统计
     *
     * @param pageNo
     * @param pageSize
     * @param departmentIdList
     * @param startTime
     * @param endTime
     * @return
     */
    IPage<RankStatisticsVO> getRegionStatisticsList(Integer pageNo, Integer pageSize, List<Integer> departmentIdList, Date startTime, Date endTime);
 
    /**
     * 未出医废定时器使用-获取科室最后收集时间
     *
     * @return
     */
    List<NonCollectMedicalWasteVO> getDepartmentLastCollectList();
 
    /**
     * 未出医废定时器使用-获取医院最后收集时间
     *
     * @return
     */
    List<NonCollectMedicalWasteVO> getHospitalLastCollectList();
 
    /**
     * 关联科室查看最后一次产废数据
     * @param officeIds
     * @return
     */
    NonCollectMedicalWasteVO getDepartmentLastCollect(String officeIds);
 
    /**
     * 获取科室产废排行榜
     *
     * @param departmentIdList
     * @param startTime
     * @param endTime
     * @return
     */
 
    List<RankStatisticsVO> getOfficeRankStatistics(List<Integer> departmentIdList, Date startTime, Date endTime);
 
    /**
     * 获取收集轨迹
     * @param pageNo
     * @param pageSize
     * @param dto
     * @return
     */
    IPage<MwCollectCollectTrajectoryVO> getCollectTrajectory(Integer pageNo, Integer pageSize, MwCollectCollectTrajectoryParamVO dto);
    /**
     * 获取医废排行榜(小程序端)
     * @param dto
     * @return
     */
    List<Map<String,Object>> getMedicalStatistics(MwCollectCollectTrajectoryParamVO dto);
 
 
    /**
     * 获取处置情况月报表
     * @param departmentId
     * @param startTime
     * @param endTime
     * @param keyWord
     * @param dictTypeId
     * @return
     */
    List<DisposalMonthlyReportVoItemVO> getDisposalMonthlyReport(Integer departmentId, Date startTime, Date endTime, String keyWord, List<Integer> dictTypeId);
 
    Double getTotalNonCheckout(List<Integer> departmentIdList, List<String> wasteTypes);
}