|
|
|
@ -215,6 +215,7 @@ public class ReportJob {
|
|
|
|
taskDistributeService.cancel(reportDownTwoDto.getTasks().get(0).getTaskId());
|
|
|
|
taskDistributeService.cancel(reportDownTwoDto.getTasks().get(0).getTaskId());
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
boolean babyTask = isBabyTask(reportDownTwoDto);
|
|
|
|
String patientId = reportDownTwoDto.getPatient().getPatientId();
|
|
|
|
String patientId = reportDownTwoDto.getPatient().getPatientId();
|
|
|
|
String inpatientNo = reportDownTwoDto.getPatient().getInpatientNo();
|
|
|
|
String inpatientNo = reportDownTwoDto.getPatient().getInpatientNo();
|
|
|
|
Integer admissTimes = reportDownTwoDto.getHospitals().get(0).getAdmissTimes();
|
|
|
|
Integer admissTimes = reportDownTwoDto.getHospitals().get(0).getAdmissTimes();
|
|
|
|
@ -269,13 +270,24 @@ public class ReportJob {
|
|
|
|
reportDto.setDowntype(1);
|
|
|
|
reportDto.setDowntype(1);
|
|
|
|
reportDto.setFileSource("1");
|
|
|
|
reportDto.setFileSource("1");
|
|
|
|
reportDto.setFilestoragetype("1");
|
|
|
|
reportDto.setFilestoragetype("1");
|
|
|
|
|
|
|
|
if (babyTask) {
|
|
|
|
|
|
|
|
// 婴儿任务,文件传到母亲病案,来源加后缀
|
|
|
|
|
|
|
|
PatientInfoDTO parent = reportDownTwoDto.getParent();
|
|
|
|
|
|
|
|
reportDto.setAdmisstimes(parent.getAdmissTimes());
|
|
|
|
|
|
|
|
reportDto.setInpatientNo(parent.getInpatientNo());
|
|
|
|
|
|
|
|
reportDto.setPatientId(parent.getPatientId());
|
|
|
|
|
|
|
|
reportDto.setSysFlag(reportQueryNurseInsertSugarCollectorId+SdRyReportQueryConfig.BABY_COLLECTOR_ID_SUFFIX);
|
|
|
|
|
|
|
|
}
|
|
|
|
reportService.report(reportDto);
|
|
|
|
reportService.report(reportDto);
|
|
|
|
collectFileCount++;
|
|
|
|
collectFileCount++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
log.info("住院号:{},住院次数{},护理采集文件: {} 条", inpatientNo, admissTimes, collectFileCount);
|
|
|
|
log.info("住院号:{},住院次数{},护理采集文件: {} 条", inpatientNo, admissTimes, collectFileCount);
|
|
|
|
|
|
|
|
if (babyTask) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
// 设置一个redisKey,过期被监听处理
|
|
|
|
// 设置一个redisKey,过期被监听处理
|
|
|
|
String redisKey = String.format(ReportDownloadWait.REPORT_DOWNLOAD_WAIT_KEY, reportQueryNurseInsertSugarCollectorId, patientId);
|
|
|
|
String redisKey = String.format(ReportDownloadWait.REPORT_DOWNLOAD_WAIT_KEY, reportQueryNurseInsertSugarCollectorId, patientId);
|
|
|
|
redisOps.setEx(redisKey, "0", waittime*60);
|
|
|
|
redisOps.setEx(redisKey, "0", waittime * 60);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|