|
@@ -2,9 +2,9 @@ package com.diagbot.facade;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
+import com.diagbot.dto.BehospitalAnalysisDTO;
|
|
import com.diagbot.dto.BehospitalCodeDetail;
|
|
import com.diagbot.dto.BehospitalCodeDetail;
|
|
import com.diagbot.dto.BehospitalCodeInfo;
|
|
import com.diagbot.dto.BehospitalCodeInfo;
|
|
-import com.diagbot.dto.BehospitalInfoDTO;
|
|
|
|
import com.diagbot.dto.DeptBaseDTO;
|
|
import com.diagbot.dto.DeptBaseDTO;
|
|
import com.diagbot.dto.EntryDefectImprove;
|
|
import com.diagbot.dto.EntryDefectImprove;
|
|
import com.diagbot.dto.EntryDefectImproveInner;
|
|
import com.diagbot.dto.EntryDefectImproveInner;
|
|
@@ -346,71 +346,71 @@ public class DataAnalysisFacade {
|
|
return currentPageList;
|
|
return currentPageList;
|
|
}
|
|
}
|
|
|
|
|
|
- public List<BehospitalInfoDTO> getEntryDefectImproveInnerDTOS( List<BehospitalInfoDTO> behospitalInfoDTOList ,GetEntryDefectImproveInnerVO
|
|
|
|
|
|
+ public List<BehospitalAnalysisDTO> getEntryDefectImproveInnerDTOS( List<BehospitalAnalysisDTO> behospitalInfoDTOList ,GetEntryDefectImproveInnerVO
|
|
getEntryDefectImproveInnerVO) {
|
|
getEntryDefectImproveInnerVO) {
|
|
if(StringUtils.isNotBlank(getEntryDefectImproveInnerVO.getAsc())){
|
|
if(StringUtils.isNotBlank(getEntryDefectImproveInnerVO.getAsc())){
|
|
if("behDeptName".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
if("behDeptName".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getBehDeptName, Comparator.nullsLast(String::compareTo))).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getBehDeptName, Comparator.nullsLast(String::compareTo))).collect(Collectors.toList());
|
|
}
|
|
}
|
|
if("behDoctorName".equals(getEntryDefectImproveInnerVO.getAsc()) || "doctorName".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
if("behDoctorName".equals(getEntryDefectImproveInnerVO.getAsc()) || "doctorName".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getDoctorName, Comparator.nullsLast(String::compareTo))).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getDoctorName, Comparator.nullsLast(String::compareTo))).collect(Collectors.toList());
|
|
}
|
|
}
|
|
if("name".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
if("name".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getName, Comparator.nullsLast(String::compareTo))).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getName, Comparator.nullsLast(String::compareTo))).collect(Collectors.toList());
|
|
}
|
|
}
|
|
if("fileCode".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
if("fileCode".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getFileCode, Comparator.nullsLast(String::compareTo))).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getFileCode, Comparator.nullsLast(String::compareTo))).collect(Collectors.toList());
|
|
}
|
|
}
|
|
if("age".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
if("age".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getAge, Comparator.nullsLast(String::compareTo))).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getAge, Comparator.nullsLast(String::compareTo))).collect(Collectors.toList());
|
|
}
|
|
}
|
|
if("behospitalDate".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
if("behospitalDate".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getBehospitalDate, Comparator.nullsLast(Date::compareTo))).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getBehospitalDate, Comparator.nullsLast(Date::compareTo))).collect(Collectors.toList());
|
|
}
|
|
}
|
|
if("leaveHospitalDate".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
if("leaveHospitalDate".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getLeaveHospitalDate, Comparator.nullsLast(Date::compareTo))).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getLeaveHospitalDate, Comparator.nullsLast(Date::compareTo))).collect(Collectors.toList());
|
|
}
|
|
}
|
|
if("scoreRes".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
if("scoreRes".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getScoreRes, Comparator.nullsLast(Double::compareTo))).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getScoreRes, Comparator.nullsLast(Double::compareTo))).collect(Collectors.toList());
|
|
}
|
|
}
|
|
if("level".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
if("level".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getLevel, Comparator.nullsLast(String::compareTo))).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getLevel, Comparator.nullsLast(String::compareTo))).collect(Collectors.toList());
|
|
}
|
|
}
|
|
if("gradeTime".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
if("gradeTime".equals(getEntryDefectImproveInnerVO.getAsc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getGradeTime, Comparator.nullsLast(Date::compareTo))).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getGradeTime, Comparator.nullsLast(Date::compareTo))).collect(Collectors.toList());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
if(StringUtils.isNotBlank(getEntryDefectImproveInnerVO.getDesc())){
|
|
if(StringUtils.isNotBlank(getEntryDefectImproveInnerVO.getDesc())){
|
|
if("behDeptName".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
if("behDeptName".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getBehDeptName, Comparator.nullsLast(String::compareTo)).reversed()).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getBehDeptName, Comparator.nullsLast(String::compareTo)).reversed()).collect(Collectors.toList());
|
|
}
|
|
}
|
|
if("behDoctorName".equals(getEntryDefectImproveInnerVO.getDesc()) || "doctorName".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
if("behDoctorName".equals(getEntryDefectImproveInnerVO.getDesc()) || "doctorName".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getDoctorName, Comparator.nullsLast(String::compareTo)).reversed()).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getDoctorName, Comparator.nullsLast(String::compareTo)).reversed()).collect(Collectors.toList());
|
|
}
|
|
}
|
|
if("name".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
if("name".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getName, Comparator.nullsLast(String::compareTo)).reversed()).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getName, Comparator.nullsLast(String::compareTo)).reversed()).collect(Collectors.toList());
|
|
}
|
|
}
|
|
if("fileCode".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
if("fileCode".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getFileCode, Comparator.nullsLast(String::compareTo)).reversed()).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getFileCode, Comparator.nullsLast(String::compareTo)).reversed()).collect(Collectors.toList());
|
|
}
|
|
}
|
|
if("age".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
if("age".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getAge, Comparator.nullsLast(String::compareTo)).reversed()).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getAge, Comparator.nullsLast(String::compareTo)).reversed()).collect(Collectors.toList());
|
|
}
|
|
}
|
|
if("behospitalDate".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
if("behospitalDate".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getBehospitalDate, Comparator.nullsLast(Date::compareTo)).reversed()).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getBehospitalDate, Comparator.nullsLast(Date::compareTo)).reversed()).collect(Collectors.toList());
|
|
}
|
|
}
|
|
if("leaveHospitalDate".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
if("leaveHospitalDate".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getLeaveHospitalDate, Comparator.nullsLast(Date::compareTo)).reversed()).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getLeaveHospitalDate, Comparator.nullsLast(Date::compareTo)).reversed()).collect(Collectors.toList());
|
|
}
|
|
}
|
|
if("scoreRes".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
if("scoreRes".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getScoreRes, Comparator.nullsLast(Double::compareTo)).reversed()).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getScoreRes, Comparator.nullsLast(Double::compareTo)).reversed()).collect(Collectors.toList());
|
|
}
|
|
}
|
|
if("level".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
if("level".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getLevel, Comparator.nullsLast(String::compareTo)).reversed()).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getLevel, Comparator.nullsLast(String::compareTo)).reversed()).collect(Collectors.toList());
|
|
}
|
|
}
|
|
if("gradeTime".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
if("gradeTime".equals(getEntryDefectImproveInnerVO.getDesc())){
|
|
- behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalInfoDTO::getGradeTime, Comparator.nullsLast(Date::compareTo)).reversed()).collect(Collectors.toList());
|
|
|
|
|
|
+ behospitalInfoDTOList = behospitalInfoDTOList.stream().sorted(Comparator.comparing(BehospitalAnalysisDTO::getGradeTime, Comparator.nullsLast(Date::compareTo)).reversed()).collect(Collectors.toList());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return behospitalInfoDTOList;
|
|
return behospitalInfoDTOList;
|
|
@@ -508,12 +508,12 @@ public class DataAnalysisFacade {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- public IPage<BehospitalInfoDTO> getEntryDefectImproveInner(GetEntryDefectImproveInnerVO
|
|
|
|
|
|
+ public IPage<BehospitalAnalysisDTO> getEntryDefectImproveInner(GetEntryDefectImproveInnerVO
|
|
getEntryDefectImproveInnerVO) {
|
|
getEntryDefectImproveInnerVO) {
|
|
int current = (int) getEntryDefectImproveInnerVO.getCurrent();
|
|
int current = (int) getEntryDefectImproveInnerVO.getCurrent();
|
|
int size = (int) getEntryDefectImproveInnerVO.getSize();
|
|
int size = (int) getEntryDefectImproveInnerVO.getSize();
|
|
- IPage<BehospitalInfoDTO> page = new Page<>();
|
|
|
|
- List<BehospitalInfoDTO> behospitalInfoDTOS = new ArrayList<>();
|
|
|
|
|
|
+ IPage<BehospitalAnalysisDTO> page = new Page<>();
|
|
|
|
+ List<BehospitalAnalysisDTO> behospitalInfoDTOS = new ArrayList<>();
|
|
entryDefectInnerSet(getEntryDefectImproveInnerVO);
|
|
entryDefectInnerSet(getEntryDefectImproveInnerVO);
|
|
// List<GetEntryInfoDTO> entryInfo = medClickInfoService.getBaseMapper().getEntryInfo();
|
|
// List<GetEntryInfoDTO> entryInfo = medClickInfoService.getBaseMapper().getEntryInfo();
|
|
List<EntryDefectImproveInner> records = medClickInfoService.getBaseMapper().getEntryDefectImproveInner(getEntryDefectImproveInnerVO);
|
|
List<EntryDefectImproveInner> records = medClickInfoService.getBaseMapper().getEntryDefectImproveInner(getEntryDefectImproveInnerVO);
|
|
@@ -557,7 +557,7 @@ public class DataAnalysisFacade {
|
|
behospitalInfoDTOS = getEntryDefectImproveInnerDTOS( behospitalInfoDTOS ,getEntryDefectImproveInnerVO);
|
|
behospitalInfoDTOS = getEntryDefectImproveInnerDTOS( behospitalInfoDTOS ,getEntryDefectImproveInnerVO);
|
|
}
|
|
}
|
|
//分页操作
|
|
//分页操作
|
|
- List<BehospitalInfoDTO> behospitalInfoDTOList = page(behospitalInfoDTOS, size, current);
|
|
|
|
|
|
+ List<BehospitalAnalysisDTO> behospitalInfoDTOList = page(behospitalInfoDTOS, size, current);
|
|
page.setRecords(behospitalInfoDTOList);
|
|
page.setRecords(behospitalInfoDTOList);
|
|
return page;
|
|
return page;
|
|
}
|
|
}
|
|
@@ -569,9 +569,9 @@ public class DataAnalysisFacade {
|
|
* @Author: cy
|
|
* @Author: cy
|
|
* @Date: 2021/12/3
|
|
* @Date: 2021/12/3
|
|
*/
|
|
*/
|
|
- public List<BehospitalInfoDTO> getBehospitalInfoDTO(EntryDefectImproveInner entryDefectImproveInner, BehospitalCodeDetail behospitalCodeDetail,
|
|
|
|
- List<BehospitalInfoDTO> behospitalInfoDTOS) {
|
|
|
|
- BehospitalInfoDTO behospitalInfoDTO = new BehospitalInfoDTO();
|
|
|
|
|
|
+ public List<BehospitalAnalysisDTO> getBehospitalInfoDTO(EntryDefectImproveInner entryDefectImproveInner, BehospitalCodeDetail behospitalCodeDetail,
|
|
|
|
+ List<BehospitalAnalysisDTO> behospitalInfoDTOS) {
|
|
|
|
+ BehospitalAnalysisDTO behospitalInfoDTO = new BehospitalAnalysisDTO();
|
|
behospitalInfoDTO.setLevel(behospitalCodeDetail.getLevel());
|
|
behospitalInfoDTO.setLevel(behospitalCodeDetail.getLevel());
|
|
behospitalInfoDTO.setScoreRes(behospitalCodeDetail.getScoreRes());
|
|
behospitalInfoDTO.setScoreRes(behospitalCodeDetail.getScoreRes());
|
|
behospitalInfoDTO.setFileCode(behospitalCodeDetail.getFileCode());
|
|
behospitalInfoDTO.setFileCode(behospitalCodeDetail.getFileCode());
|
|
@@ -595,8 +595,8 @@ public class DataAnalysisFacade {
|
|
getEntryDefectImproveInnerVO.setSize(Long.MAX_VALUE);
|
|
getEntryDefectImproveInnerVO.setSize(Long.MAX_VALUE);
|
|
getEntryDefectImproveInnerVO.setSearchCount(false);
|
|
getEntryDefectImproveInnerVO.setSearchCount(false);
|
|
String fileName = "条目缺陷改善统计病历列表.xls";
|
|
String fileName = "条目缺陷改善统计病历列表.xls";
|
|
- IPage<BehospitalInfoDTO> page = this.getEntryDefectImproveInner(getEntryDefectImproveInnerVO);
|
|
|
|
- ExcelUtils.exportExcelUser(page.getRecords(), null, "sheet1", BehospitalInfoDTO.class, fileName, response);
|
|
|
|
|
|
+ IPage<BehospitalAnalysisDTO> page = this.getEntryDefectImproveInner(getEntryDefectImproveInnerVO);
|
|
|
|
+ ExcelUtils.exportExcelUser(page.getRecords(), null, "sheet1", BehospitalAnalysisDTO.class, fileName, response);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|