|
@@ -1,12 +1,16 @@
|
|
|
package com.diagbot.facade;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.diagbot.dto.AverageStatisticsDTO;
|
|
|
+import com.diagbot.dto.AverageStatisticsFeeDTO;
|
|
|
import com.diagbot.dto.EntryNumDTO;
|
|
|
import com.diagbot.dto.HomePageNumDTO;
|
|
|
import com.diagbot.dto.LevelStatisticsDTO;
|
|
|
import com.diagbot.dto.LevelStatisticsTZDTO;
|
|
|
+import com.diagbot.dto.QcResultPercentDTO;
|
|
|
import com.diagbot.util.ExcelUtils;
|
|
|
import com.diagbot.vo.FilterOrderVO;
|
|
|
+import com.diagbot.vo.FilterPageByAverageVO;
|
|
|
import com.diagbot.vo.FilterPageVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
@@ -24,7 +28,8 @@ public class ConsoleExportFacade {
|
|
|
|
|
|
@Autowired
|
|
|
private ConsoleFacade consoleFacade;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ private QcCasesFacade qcCasesFacade;
|
|
|
|
|
|
/**
|
|
|
* 病案首页合格率占比
|
|
@@ -76,4 +81,64 @@ public class ConsoleExportFacade {
|
|
|
String fileName = "各科室缺陷占比-台州.xls";
|
|
|
ExcelUtils.exportExcel(records, null, "sheet1", LevelStatisticsTZDTO.class, fileName, response, 12.8f);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 按科室统计平均住院天数导出
|
|
|
+ *
|
|
|
+ * @param filterPageByAverageVO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public void getAverageDayNumExport(HttpServletResponse response, FilterPageByAverageVO filterPageByAverageVO) {
|
|
|
+ filterPageByAverageVO.setCurrent(1L);
|
|
|
+ filterPageByAverageVO.setSize(Long.MAX_VALUE);
|
|
|
+ filterPageByAverageVO.setSearchCount(false);
|
|
|
+ IPage<AverageStatisticsDTO> page = consoleFacade.getAverageDayNumPage(filterPageByAverageVO);
|
|
|
+ String fileName = " 按科室统计平均住院天数.xls";
|
|
|
+ ExcelUtils.exportExcel(page.getRecords(), null, "sheet1", AverageStatisticsDTO.class, fileName, response, 12.8f);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 按科室统计平均住院费用导出
|
|
|
+ *
|
|
|
+ * @param filterPageByAverageVO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public void getAverageFeeExport(HttpServletResponse response, FilterPageByAverageVO filterPageByAverageVO) {
|
|
|
+ filterPageByAverageVO.setCurrent(1L);
|
|
|
+ filterPageByAverageVO.setSize(Long.MAX_VALUE);
|
|
|
+ filterPageByAverageVO.setSearchCount(false);
|
|
|
+ IPage<AverageStatisticsFeeDTO> page = consoleFacade.getAverageFeePage(filterPageByAverageVO);
|
|
|
+ String fileName = " 按科室统计平均住院费用.xls";
|
|
|
+ ExcelUtils.exportExcel(page.getRecords(), null, "sheet1", AverageStatisticsFeeDTO.class, fileName, response, 12.8f);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 各科室甲级病历占比排行导出
|
|
|
+ *
|
|
|
+ * @param filterPageVO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public void levelPercentGroupByDeptExport(HttpServletResponse response, FilterPageVO filterPageVO) {
|
|
|
+ filterPageVO.setCurrent(1L);
|
|
|
+ filterPageVO.setSize(Long.MAX_VALUE);
|
|
|
+ filterPageVO.setSearchCount(false);
|
|
|
+ IPage<QcResultPercentDTO> page = consoleFacade.levelPercentGroupByDeptPage(filterPageVO);
|
|
|
+ String fileName = " 各科室甲级病历占比排行.xls";
|
|
|
+ ExcelUtils.exportExcel(page.getRecords(), null, "sheet1", QcResultPercentDTO.class, fileName, response, 12.8f);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 缺陷详情导出
|
|
|
+ *
|
|
|
+ * @param filterPageVO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public void entryCountGroupByEntryExport(HttpServletResponse response, FilterPageVO filterPageVO) {
|
|
|
+ filterPageVO.setCurrent(1L);
|
|
|
+ filterPageVO.setSize(Long.MAX_VALUE);
|
|
|
+ filterPageVO.setSearchCount(false);
|
|
|
+ IPage<EntryNumDTO> page = consoleFacade.entryCountGroupByEntryPage(filterPageVO);
|
|
|
+ String fileName = "缺陷详情.xls";
|
|
|
+ ExcelUtils.exportExcel(page.getRecords(), null, "sheet1", EntryNumDTO.class, fileName, response, 12.8f);
|
|
|
+ }
|
|
|
}
|