|
@@ -2,9 +2,9 @@ package com.diagbot.facade;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import com.diagbot.dto.BehospitalAnalysisDTO;
|
|
|
import com.diagbot.dto.BehospitalCodeDetail;
|
|
|
import com.diagbot.dto.BehospitalCodeInfo;
|
|
|
-import com.diagbot.dto.BehospitalInfoDTO;
|
|
|
import com.diagbot.dto.DeptBaseDTO;
|
|
|
import com.diagbot.dto.EntryDefectImprove;
|
|
|
import com.diagbot.dto.EntryDefectImproveInner;
|
|
@@ -35,12 +35,14 @@ import com.diagbot.vo.GetEntryDefectImproveVO;
|
|
|
import com.diagbot.vo.GetQcClickInnerPageVO;
|
|
|
import com.diagbot.vo.GetQcClickVO;
|
|
|
import com.diagbot.vo.MedClickInfoVO;
|
|
|
+import org.apache.commons.collections4.MapUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Qualifier;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
+import java.text.DecimalFormat;
|
|
|
import java.text.ParseException;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
@@ -120,7 +122,7 @@ public class DataAnalysisFacade {
|
|
|
StringBuilder sbFir = new StringBuilder();
|
|
|
for (QcresultDetail qcresultDetail : list) {
|
|
|
if (1 == qcresultDetail.getGradeType()) {
|
|
|
- if (null != qcresultDetail.getCasesEntryId()) {
|
|
|
+ if (null != qcresultDetail.getCasesEntryId() && 0L != qcresultDetail.getCasesEntryId()) {
|
|
|
sbFir.append(qcresultDetail.getCasesEntryId() + "、");
|
|
|
}
|
|
|
}
|
|
@@ -206,6 +208,7 @@ public class DataAnalysisFacade {
|
|
|
int size = (int) getEntryDefectImproveVO.getSize();
|
|
|
IPage<GetEntryDefectImproveDTO> page = new Page<>();
|
|
|
entryDefectSet(getEntryDefectImproveVO);
|
|
|
+ DecimalFormat df = new DecimalFormat("#.00");
|
|
|
List<GetEntryDefectImproveDTO> getEntryDefectImproveDTO = new ArrayList<>();
|
|
|
//获取标准缺陷信息
|
|
|
List<GetEntryInfoDTO> entryInfo = medClickInfoService.getBaseMapper().getEntryInfo();
|
|
@@ -231,6 +234,12 @@ public class DataAnalysisFacade {
|
|
|
getEntryDefectImprove.setImproveleNum(improveleMap.get(stringLongEntry.getKey()));
|
|
|
}
|
|
|
getEntryDefectImprove.setHandleNum(getEntryDefectImprove.getTotalNum() - getEntryDefectImprove.getImproveleNum());
|
|
|
+ double handleRatio = 0d;
|
|
|
+ if(getEntryDefectImprove.getTotalNum()!=0 && getEntryDefectImprove.getHandleNum()!=0){
|
|
|
+ handleRatio = getEntryDefectImprove.getHandleNum().doubleValue()*100/getEntryDefectImprove.getTotalNum().doubleValue();
|
|
|
+ String handleStr = df.format(handleRatio)+"%";
|
|
|
+ getEntryDefectImprove.setHandleStr(handleStr);
|
|
|
+ }
|
|
|
getEntryDefectImproveDTO.add(getEntryDefectImprove);
|
|
|
}
|
|
|
}
|
|
@@ -290,11 +299,13 @@ public class DataAnalysisFacade {
|
|
|
for (BehospitalCodeInfo behospitalCodeInfo : behospitalCodeInfoList) {
|
|
|
//病历下
|
|
|
List<QcResultDetailInfo> qcResultDetailInfos = behospitalCodeInfo.getQcResultDetailInfos();
|
|
|
- //获取多病历多质控质控缺陷总量
|
|
|
- totalMap = getEntryTotalMap(qcResultDetailInfos, totalMap);
|
|
|
- //获取多病历多质控质控缺陷待改善总量
|
|
|
- QcResultDetailInfo qcResultDetailInfo = qcResultDetailInfos.get(qcResultDetailInfos.size() - 1);
|
|
|
- improveleMap = getEntryImproveleMap(qcResultDetailInfo, improveleMap);
|
|
|
+ //获取多病历多质控质控缺陷总量
|
|
|
+ totalMap = getEntryTotalMap(qcResultDetailInfos, totalMap);
|
|
|
+ if (MapUtils.isNotEmpty(totalMap)) {
|
|
|
+ //获取多病历多质控质控缺陷待改善总量
|
|
|
+ QcResultDetailInfo qcResultDetailInfo = qcResultDetailInfos.get(qcResultDetailInfos.size() - 1);
|
|
|
+ improveleMap = getEntryImproveleMap(qcResultDetailInfo, improveleMap);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -335,71 +346,71 @@ public class DataAnalysisFacade {
|
|
|
return currentPageList;
|
|
|
}
|
|
|
|
|
|
- public List<BehospitalInfoDTO> getEntryDefectImproveInnerDTOS( List<BehospitalInfoDTO> behospitalInfoDTOList ,GetEntryDefectImproveInnerVO
|
|
|
+ public List<BehospitalAnalysisDTO> getEntryDefectImproveInnerDTOS( List<BehospitalAnalysisDTO> behospitalInfoDTOList ,GetEntryDefectImproveInnerVO
|
|
|
getEntryDefectImproveInnerVO) {
|
|
|
if(StringUtils.isNotBlank(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())){
|
|
|
- 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())){
|
|
|
- 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())){
|
|
|
- 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())){
|
|
|
- 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())){
|
|
|
- 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())){
|
|
|
- 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())){
|
|
|
- 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())){
|
|
|
- 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())){
|
|
|
- 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("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())){
|
|
|
- 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())){
|
|
|
- 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())){
|
|
|
- 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())){
|
|
|
- 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())){
|
|
|
- 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())){
|
|
|
- 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())){
|
|
|
- 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())){
|
|
|
- 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())){
|
|
|
- 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;
|
|
@@ -438,9 +449,12 @@ public class DataAnalysisFacade {
|
|
|
public static Map getEntryTotalMap(List<QcResultDetailInfo> qcResultDetailInfos, Map<String, Long> totalMap) {
|
|
|
Set<String> totalSet = new HashSet<String>();
|
|
|
for (QcResultDetailInfo qcResultDetailInfo : qcResultDetailInfos) {
|
|
|
- //质控下获取科室下总缺陷
|
|
|
- String casesEntryIds = qcResultDetailInfo.getCasesEntryIds();
|
|
|
- totalSet = getSetEntry(casesEntryIds, totalSet);
|
|
|
+ //质控下获取科室下总缺陷
|
|
|
+ String casesEntryIds = qcResultDetailInfo.getCasesEntryIds();
|
|
|
+ totalSet = getSetEntry(casesEntryIds, totalSet);
|
|
|
+ }
|
|
|
+ if (null == totalSet && totalSet.size() == 0) {
|
|
|
+ return totalMap;
|
|
|
}
|
|
|
totalMap = getSetEntryCount(totalMap, totalSet);
|
|
|
return totalMap;
|
|
@@ -469,12 +483,14 @@ public class DataAnalysisFacade {
|
|
|
}
|
|
|
|
|
|
public static Map getSetEntryCount(Map<String, Long> map, Set<String> sets) {
|
|
|
+ if (null != sets && sets.size() > 0) {
|
|
|
for (String set : sets) {
|
|
|
if (map.containsKey(set)) {
|
|
|
long count = map.get(set) + 1l;
|
|
|
map.put(set, count);
|
|
|
} else {
|
|
|
map.put(set, 1L);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return map;
|
|
@@ -492,12 +508,12 @@ public class DataAnalysisFacade {
|
|
|
}
|
|
|
|
|
|
|
|
|
- public IPage<BehospitalInfoDTO> getEntryDefectImproveInner(GetEntryDefectImproveInnerVO
|
|
|
+ public IPage<BehospitalAnalysisDTO> getEntryDefectImproveInner(GetEntryDefectImproveInnerVO
|
|
|
getEntryDefectImproveInnerVO) {
|
|
|
int current = (int) getEntryDefectImproveInnerVO.getCurrent();
|
|
|
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);
|
|
|
// List<GetEntryInfoDTO> entryInfo = medClickInfoService.getBaseMapper().getEntryInfo();
|
|
|
List<EntryDefectImproveInner> records = medClickInfoService.getBaseMapper().getEntryDefectImproveInner(getEntryDefectImproveInnerVO);
|
|
@@ -541,7 +557,7 @@ public class DataAnalysisFacade {
|
|
|
behospitalInfoDTOS = getEntryDefectImproveInnerDTOS( behospitalInfoDTOS ,getEntryDefectImproveInnerVO);
|
|
|
}
|
|
|
//分页操作
|
|
|
- List<BehospitalInfoDTO> behospitalInfoDTOList = page(behospitalInfoDTOS, size, current);
|
|
|
+ List<BehospitalAnalysisDTO> behospitalInfoDTOList = page(behospitalInfoDTOS, size, current);
|
|
|
page.setRecords(behospitalInfoDTOList);
|
|
|
return page;
|
|
|
}
|
|
@@ -553,9 +569,9 @@ public class DataAnalysisFacade {
|
|
|
* @Author: cy
|
|
|
* @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.setScoreRes(behospitalCodeDetail.getScoreRes());
|
|
|
behospitalInfoDTO.setFileCode(behospitalCodeDetail.getFileCode());
|
|
@@ -579,8 +595,8 @@ public class DataAnalysisFacade {
|
|
|
getEntryDefectImproveInnerVO.setSize(Long.MAX_VALUE);
|
|
|
getEntryDefectImproveInnerVO.setSearchCount(false);
|
|
|
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);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -617,6 +633,9 @@ public class DataAnalysisFacade {
|
|
|
}
|
|
|
|
|
|
private void clickPageSet(GetQcClickVO getQcClickVO) {
|
|
|
+ if(StringUtils.isNotBlank(getQcClickVO.getDeptName())){
|
|
|
+ getQcClickVO.setDeptName(transferredMeaning(getQcClickVO.getDeptName()));
|
|
|
+ }
|
|
|
//入参验证
|
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
|
|
|
Date startDate = null;
|
|
@@ -634,6 +653,12 @@ public class DataAnalysisFacade {
|
|
|
}
|
|
|
|
|
|
private void clickInnerPageSet(GetQcClickInnerPageVO getQcClickInnerPageVO) {
|
|
|
+ if(StringUtils.isNotBlank(getQcClickInnerPageVO.getDoctorId())){
|
|
|
+ getQcClickInnerPageVO.setDoctorId(transferredMeaning(getQcClickInnerPageVO.getDoctorId()));
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(getQcClickInnerPageVO.getDoctorName())){
|
|
|
+ getQcClickInnerPageVO.setDoctorName(transferredMeaning(getQcClickInnerPageVO.getDoctorName()));
|
|
|
+ }
|
|
|
//入参验证
|
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
|
|
|
Date startDate = null;
|
|
@@ -650,7 +675,19 @@ public class DataAnalysisFacade {
|
|
|
getQcClickInnerPageVO.setHospitalId(Long.parseLong(SysUserUtils.getCurrentHospitalID()));
|
|
|
}
|
|
|
|
|
|
+ public String transferredMeaning(String tranStr){
|
|
|
+ if( tranStr.contains("%")){
|
|
|
+ tranStr = tranStr.replace("%", "\\%");
|
|
|
+ }
|
|
|
+ if( tranStr.contains("_")){
|
|
|
+ tranStr = tranStr.replace("_","\\_");
|
|
|
+ }
|
|
|
+ return tranStr;
|
|
|
+ };
|
|
|
private void entryDefectSet(GetEntryDefectImproveVO getEntryDefectImproveVO) {
|
|
|
+ if(StringUtils.isNotBlank(getEntryDefectImproveVO.getDeptName())){
|
|
|
+ getEntryDefectImproveVO.setDeptName(transferredMeaning(getEntryDefectImproveVO.getDeptName()));
|
|
|
+ }
|
|
|
getEntryDefectImproveVO.setCurrent(1L);
|
|
|
getEntryDefectImproveVO.setSize(Long.MAX_VALUE);
|
|
|
//入参验证
|
|
@@ -670,6 +707,15 @@ public class DataAnalysisFacade {
|
|
|
}
|
|
|
|
|
|
private void entryDefectInnerSet(GetEntryDefectImproveInnerVO getEntryDefectImproveInnerVO) {
|
|
|
+ if(StringUtils.isNotBlank(getEntryDefectImproveInnerVO.getPatName())){
|
|
|
+ getEntryDefectImproveInnerVO.setPatName(transferredMeaning(getEntryDefectImproveInnerVO.getPatName()));
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(getEntryDefectImproveInnerVO.getDoctorId())){
|
|
|
+ getEntryDefectImproveInnerVO.setDoctorId(transferredMeaning(getEntryDefectImproveInnerVO.getDoctorId()));
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(getEntryDefectImproveInnerVO.getDoctorName())){
|
|
|
+ getEntryDefectImproveInnerVO.setDoctorName(transferredMeaning(getEntryDefectImproveInnerVO.getDoctorName()));
|
|
|
+ }
|
|
|
getEntryDefectImproveInnerVO.setCurrent(1L);
|
|
|
getEntryDefectImproveInnerVO.setSize(Long.MAX_VALUE);
|
|
|
//入参验证
|