|
|
|
@ -97,6 +97,7 @@ public class MzZyyReportCollectJob {
|
|
|
|
|
List<String> httpUrls = new ArrayList<>();
|
|
|
|
|
int i = 1;
|
|
|
|
|
for (MzZyyTestDto testFormPdf : testFormPdfs) {
|
|
|
|
|
try {
|
|
|
|
|
MzZyyLisType lisType = MzZyyLisType.getLisType(testFormPdf.getType());
|
|
|
|
|
List<MzZyyLisExportDto> base64Files = mzZyyLisService.exportTestFormPdf(lisType, testFormPdf.getMachineId(), testFormPdf.getSampleId(), testFormPdf.getTestDate());
|
|
|
|
|
for (MzZyyLisExportDto base64File : base64Files) {
|
|
|
|
@ -108,6 +109,12 @@ public class MzZyyReportCollectJob {
|
|
|
|
|
httpUrls.add(httpUrl);
|
|
|
|
|
i++;
|
|
|
|
|
}
|
|
|
|
|
} catch (Exception ex) {
|
|
|
|
|
log.error("梅州中医院Lis采集,住院号:" + inpatientNo + ",住院流水号:" + jzh + ",type=" + testFormPdf.getType()
|
|
|
|
|
+ ",machineId=" + testFormPdf.getMachineId() + ",sampleId=" + testFormPdf.getSampleId() + ",testDate=" + testFormPdf.getTestDate()
|
|
|
|
|
+ ",采集base64出现错误," + ex.getMessage(), ex);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
log.info("住院号:{},住院流水号:{},采集了 {} 份文件。", inpatientNo, jzh, httpUrls.size());
|
|
|
|
|
|
|
|
|
|