QcresultInfoMapper.java 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. package com.diagbot.mapper;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.baomidou.mybatisplus.core.metadata.IPage;
  4. import com.diagbot.dto.AverageStatisticsDTO;
  5. import com.diagbot.dto.DeptEntryNumDTO;
  6. import com.diagbot.dto.DeptNumDTO;
  7. import com.diagbot.dto.EntryNumDTO;
  8. import com.diagbot.dto.NumDTO;
  9. import com.diagbot.dto.QcResultPercentDTO;
  10. import com.diagbot.entity.QcresultInfo;
  11. import com.diagbot.vo.FilterPageByDeptVO;
  12. import com.diagbot.vo.FilterPageVO;
  13. import com.diagbot.vo.FilterVO;
  14. import com.diagbot.vo.QcresultFilterVO;
  15. import org.apache.ibatis.annotations.Param;
  16. import java.util.List;
  17. /**
  18. * <p>
  19. * 质控评分结果信息
  20. 每次评分增加一条信息,前面所有评分is_deleted全部设置为Y Mapper 接口
  21. * </p>
  22. *
  23. * @author zhoutg
  24. * @since 2020-04-13
  25. */
  26. public interface QcresultInfoMapper extends BaseMapper<QcresultInfo> {
  27. /**
  28. * 筛选质控记录
  29. *
  30. * @param qcresultFilterVO
  31. * @return
  32. */
  33. public int getQcresultSelectively(QcresultFilterVO qcresultFilterVO);
  34. /**
  35. * 质控病历数统计
  36. *
  37. * @param qcresultFilterVO
  38. * @return
  39. */
  40. public int resultCount(QcresultFilterVO qcresultFilterVO);
  41. /**
  42. * 按科室统计各等级病历百分比
  43. *
  44. * @param filterVO
  45. * @return
  46. */
  47. public List<QcResultPercentDTO> levelPercentGroupByDept(FilterVO filterVO);
  48. /**
  49. * 按模块统计缺陷数
  50. *
  51. * @param filterVO
  52. * @return
  53. */
  54. public List<NumDTO> entryCountGroupByCase(FilterVO filterVO);
  55. /**
  56. * 条目缺陷分组统计
  57. *
  58. * @param filterVO
  59. * @return
  60. */
  61. public List<NumDTO> entryCountGroupByEntry(FilterVO filterVO);
  62. /**
  63. * 质控平均分按科室统计
  64. *
  65. * @param filterVO
  66. * @return
  67. */
  68. public List<AverageStatisticsDTO> getAverageScore(FilterVO filterVO);
  69. /**
  70. * 按科室统计质控病历数
  71. *
  72. * @param qcresultFilterVO
  73. * @return
  74. */
  75. public List<NumDTO> resultCountByDept(QcresultFilterVO qcresultFilterVO);
  76. /**
  77. * 各模块缺陷占比-按科室
  78. *
  79. * @param filterVO
  80. * @return
  81. */
  82. public List<DeptNumDTO> entryCountGroupByCaseAndDept(FilterVO filterVO);
  83. /**
  84. * 条目缺陷占比-按科室
  85. *
  86. * @param filterVO
  87. * @return
  88. */
  89. public List<DeptNumDTO> entryCountGroupByEntryAndDept(FilterVO filterVO);
  90. /**
  91. * 各模块缺陷占比(分页)
  92. *
  93. * @param filterPageVO
  94. * @return
  95. */
  96. public IPage<NumDTO> entryCountGroupByCasePage(@Param("filterPageVO") FilterPageVO filterPageVO);
  97. /**
  98. * 缺陷详情(分页)
  99. *
  100. * @param filterPageVO
  101. * @return
  102. */
  103. public IPage<EntryNumDTO> entryCountGroupByEntryPage(@Param("filterPageVO") FilterPageVO filterPageVO);
  104. /**
  105. * 各科室质控平均分(分页)
  106. *
  107. * @param filterPageVO
  108. * @return
  109. */
  110. public IPage<AverageStatisticsDTO> getAverageScoreByDeptPage(@Param("filterPageVO") FilterPageVO filterPageVO);
  111. /**
  112. * 各科室甲级病历占比排行(分页)
  113. *
  114. * @param filterPageVO
  115. * @return
  116. */
  117. public IPage<QcResultPercentDTO> levelPercentGroupByDeptPage(@Param("filterPageVO") FilterPageVO filterPageVO);
  118. /**
  119. * 各模块缺陷占比-科室(分页)
  120. *
  121. * @param filterPageByDeptVO
  122. * @return
  123. */
  124. public IPage<DeptNumDTO> entryCountGroupByCaseAndDeptPage(@Param("filterPageByDeptVO") FilterPageByDeptVO filterPageByDeptVO);
  125. /**
  126. * 缺陷详情-科室(分页)
  127. *
  128. * @param filterPageByDeptVO
  129. * @return
  130. */
  131. public IPage<DeptEntryNumDTO> entryCountGroupByEntryAndDeptPage(@Param("filterPageByDeptVO") FilterPageByDeptVO filterPageByDeptVO);
  132. /**
  133. * 条目缺陷占比(内页)
  134. *
  135. * @return
  136. */
  137. public IPage<EntryNumDTO> entryGroupByEntryInnerPage(@Param("filterPageVO") FilterPageVO filterPageVO);
  138. /**
  139. * 条目缺陷占比-科室(内页)
  140. *
  141. * @param filterPageByDeptVO
  142. * @return
  143. */
  144. public IPage<DeptEntryNumDTO> entryGroupByEntryAndDeptInnerPage(@Param("filterPageByDeptVO") FilterPageByDeptVO filterPageByDeptVO);
  145. /**
  146. * 各科室质控平均分(首页)-根据内外科系统统计
  147. *
  148. * @param filterVO
  149. * @return
  150. */
  151. public List<AverageStatisticsDTO> getAverageScoreByDeptClass(FilterVO filterVO);
  152. /**
  153. * 单项否决缺陷占比
  154. *
  155. * @param filterVO
  156. * @return
  157. */
  158. public List<EntryNumDTO> entryRejectPercent(FilterVO filterVO);
  159. /**
  160. * 各科室甲/乙/丙级病历占比
  161. *
  162. * @param filterVO
  163. * @return
  164. */
  165. public List<DeptNumDTO> qcResultLevelPercent(FilterVO filterVO);
  166. }