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);
|
}
|