package cn.besteam.modules.medical.mapper;
|
|
import cn.besteam.modules.medical.dto.ApiStatisticsDTO;
|
import cn.besteam.modules.medical.dto.MwCollectRecordOpsDTO;
|
import cn.besteam.modules.medical.entity.MwCollectRecord;
|
import cn.besteam.modules.medical.vo.*;
|
import cn.besteam.modules.report.dto.DisposalMonthlyReportSumDto;
|
import cn.besteam.modules.report.dto.DisposalMonthlyReportVoItemDto;
|
import cn.besteam.modules.report.vo.RankStatisticsVO;
|
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 java.util.Date;
|
import java.util.List;
|
import java.util.Map;
|
import java.util.Set;
|
|
/**
|
* @Description: APP-版本表
|
* @author: besteam
|
* @date: 2020-04-25
|
* @version: V1.0
|
*/
|
public interface MwCollectRecordMapper extends BaseMapper<MwCollectRecord> {
|
|
/**
|
* 收集记录、医废追溯
|
*
|
* @param page
|
* @param dto
|
* @return
|
*/
|
IPage<MwCollectRecordVO> queryPageCollectList(Page<MwCollectRecordVO> page, @Param("dto") MwCollectRecordOpsDTO dto);
|
List<MwCollectRecordVO> queryPageCollectList( @Param("dto") MwCollectRecordOpsDTO dto);
|
|
/**
|
* 入库记录
|
*
|
* @param page
|
* @param dto
|
* @return
|
*/
|
IPage<MwCollectRecordVO> queryPageStoreList(Page<MwCollectRecordVO> page, @Param("dto") MwCollectRecordOpsDTO dto);
|
List<MwCollectRecordVO> queryPageStoreList( @Param("dto") MwCollectRecordOpsDTO dto);
|
|
/**
|
* 出库记录
|
*
|
* @param page
|
* @param dto
|
* @return
|
*/
|
IPage<MwCollectRecordVO> queryPageCheckoutList(Page<MwCollectRecordVO> page, @Param("dto") MwCollectRecordOpsDTO dto);
|
List<MwCollectRecordVO> queryPageCheckoutList( @Param("dto") MwCollectRecordOpsDTO dto);
|
|
/**
|
* 补录记录
|
*
|
* @param page
|
* @param dto
|
* @return
|
*/
|
IPage<MwCollectRecordVO> queryPageSupplyList(Page<MwCollectRecordVO> page, @Param("dto") MwCollectRecordOpsDTO dto);
|
List<MwCollectRecordVO> queryPageSupplyList(@Param("dto") MwCollectRecordOpsDTO dto);
|
|
/**
|
* 数据恢复
|
*
|
* @param page
|
* @param dto
|
* @return
|
*/
|
IPage<MwCollectRecordVO> queryPageDeleteList(Page<MwCollectRecordVO> page, @Param("dto") MwCollectRecordOpsDTO dto);
|
List<MwCollectRecordVO> queryPageDeleteList( @Param("dto") MwCollectRecordOpsDTO dto);
|
|
/**
|
* 获取记录详情
|
*
|
* @param id
|
* @return
|
*/
|
MwCollectRecordVO getRecordDetail(@Param("id") Integer id);
|
|
/**
|
* 获取此次出库操作医废收集类型统计
|
*
|
* @param idList
|
* @param wasteTypeStr
|
* @param status
|
* @param delFlag
|
* @param auditStatus
|
* @return
|
*/
|
ApiMedicalStatisticsVO getStatistic(@Param("idList") List<Integer> idList, @Param("wasteTypeStr") String wasteTypeStr, @Param("status") Integer status, @Param("delFlag") Integer delFlag, @Param("auditStatus") Integer auditStatus);
|
|
/**
|
* 获取所有科室数量和重量
|
*
|
* @param dto
|
* @param wasteTypeStrSet
|
* @param departmentName
|
* @param userId
|
* @param delFlag
|
* @param auditStatus
|
* @return
|
*/
|
List<ApiMedicalStatisticsVO> getNumberAndWeightStatistics(@Param("param") ApiStatisticsDTO dto, @Param("wasteTypeStrSet") Set<String> wasteTypeStrSet, @Param("departmentName") String departmentName, @Param("userId") Integer userId, @Param("delFlag") Integer delFlag, @Param("auditStatus") Integer auditStatus);
|
|
/**
|
* 获取当前登陆用户所有医废类型数量和重量统计
|
*
|
* @param dto
|
* @param wasteTypeStrSet
|
* @param userId
|
* @param delFlag
|
* @param auditStatus
|
* @return
|
*/
|
List<ApiMedicalStatisticsVO> getWasteNumberAndWeightStatistics(@Param("param") ApiStatisticsDTO dto, @Param("wasteTypeStrSet") Set<String> wasteTypeStrSet, @Param("userId") Integer userId, @Param("delFlag") Integer delFlag, @Param("auditStatus") Integer auditStatus);
|
|
/**
|
* 入库统计
|
*
|
* @param dto
|
* @param wasteTypeStrSet
|
* @param userId
|
* @param delFlag
|
* @param auditStatus
|
* @return
|
*/
|
List<ApiMedicalStatisticsVO> getStoreStatistics(@Param("hospitalId")Integer hospitalId,@Param("param") ApiStatisticsDTO dto, @Param("wasteTypeStrSet") Set<String> wasteTypeStrSet, @Param("userId") Integer userId, @Param("delFlag") Integer delFlag, @Param("auditStatus") Integer auditStatus);
|
|
/**
|
* 出库统计
|
*
|
* @param dto
|
* @param wasteTypeStrSet
|
* @param userId
|
* @param delFlag
|
* @param auditStatus
|
* @return
|
*/
|
List<ApiMedicalStatisticsVO> getCheckoutStatistics(@Param("hospitalId")Integer hospitalId,@Param("param") ApiStatisticsDTO dto, @Param("wasteTypeStrSet") Set<String> wasteTypeStrSet, @Param("userId") Integer userId, @Param("delFlag") Integer delFlag, @Param("auditStatus") Integer auditStatus);
|
|
/**
|
* 获取未装箱清单列表
|
*
|
* @param warehouseId
|
* @param userId
|
* @return
|
*/
|
List<MwCollectRecord> getUnBoxingList(@Param("warehouseId") Integer warehouseId, @Param("userId") Integer userId);
|
|
List<MwCollectRecord> getUnBoxingListNew(@Param("warehouseId") Integer warehouseId,
|
@Param("userId") Integer userId,
|
@Param("hospitalId")Integer hospitalId);
|
|
/**
|
* 获取未装箱清单列表(箱装)
|
* @param warehouseId
|
* @param userId
|
* @param hospitalId
|
* @return
|
*/
|
List<MwCollectRecord> getUnBoxingListTotal(@Param("warehouseId") Integer warehouseId,
|
@Param("userId") Integer userId,
|
@Param("hospitalId")Integer hospitalId);
|
|
/**
|
* 产废排行统计
|
*
|
* @param page
|
* @param departmentIdList
|
* @param startTime
|
* @param endTime
|
* @return
|
*/
|
IPage<RankStatisticsVO> getRankStatisticsList(Page<RankStatisticsVO> page, @Param("departmentIdList") List<Integer> departmentIdList, @Param("startTime") Date startTime, @Param("endTime") Date endTime,@Param("typeName")String typeName);
|
|
/**
|
* 区域产废排行统计
|
*
|
* @param page
|
* @param departmentIdList
|
* @param startTime
|
* @param endTime
|
* @return
|
*/
|
IPage<RankStatisticsVO> getRegionStatisticsList(Page<RankStatisticsVO> page, @Param("departmentIdList") List<Integer> departmentIdList, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
|
/**
|
* 未出医废定时器使用-获取科室最后收集时间
|
*
|
* @return
|
*/
|
List<NonCollectMedicalWasteVO> getDepartmentLastCollectList();
|
/**
|
* 未出医废定时器使用-获取医院最后收集时间
|
*
|
* @return
|
*/
|
List<NonCollectMedicalWasteVO> getHospitalLastCollectList();
|
|
/**
|
* 关联科室查看最后一次产废数据
|
* @param officeIds
|
* @return
|
*/
|
NonCollectMedicalWasteVO getDepartmentLastCollect(@Param("officeIds") String officeIds);
|
|
/**
|
* 获取科室产废排行榜
|
*
|
* @param departmentIdList
|
* @param startTime
|
* @param endTime
|
* @return
|
*/
|
List<RankStatisticsVO> getOfficeRankStatistics(@Param("departmentIdList") List<Integer> departmentIdList, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
|
/**
|
* 获取收集轨迹
|
* @param dto
|
* @return
|
*/
|
List<MwCollectCollectTrajectoryVO> getCollectTrajectory( @Param("pageNo")Integer pageNo, @Param("pageSize")Integer pageSize, @Param("dto") MwCollectCollectTrajectoryParamVO dto);
|
|
/**
|
* 获取收集轨迹 总条数
|
* @param dto
|
* @return
|
*/
|
int getCollectTrajectoryCount(@Param("dto") MwCollectCollectTrajectoryParamVO dto);
|
|
/**
|
* 获取医废排行榜(小程序端)
|
* @param dto
|
* @return
|
*/
|
List<Map<String,Object>> getMedicalStatistics(@Param("dto") MwCollectCollectTrajectoryParamVO dto);
|
|
/**
|
* 获取出库运输信息
|
* @param hospitalIds
|
* @return
|
*/
|
List<MwTransitConfigSelectVO> getTransitInfoList(@Param("hospitalIds")List<Integer> hospitalIds);
|
|
|
/**
|
* 获取匹配的医院数据
|
* @param departmentId
|
* @param startTime
|
* @param endTime
|
* @param keyWord
|
* @param dictTypeId
|
* @return
|
*/
|
List<DisposalMonthlyReportVoItemDto> getDisposalMonthlyReport(@Param("departmentId") Integer departmentId, @Param("startTime") String startTime,
|
@Param("endTime") String endTime, @Param("keyWord") List<String> keyWord,
|
@Param("dictTypeId") List<Integer> dictTypeId,@Param("hospitalIds") List<Integer> hospitalIds);
|
|
|
List<DisposalMonthlyReportSumDto> getDisposalMonthlyReportSum(@Param("hospitalIds") List<Integer> hospitalIds, @Param("startTime") String startTime,
|
@Param("endTime") String endTime, @Param("status") Integer status,
|
@Param("dictTypeId") Integer dictTypeId);
|
|
Double getTotalNonCheckout(@Param("departmentIdList") List<Integer> departmentIdList, @Param("wasteTypes") List<String> wasteTypes);
|
|
}
|