|
|
|
@ -143,9 +143,18 @@ public class WebServiceImpl implements IWebService {
|
|
|
|
|
if (item.getPidAddmissTimes().equals(times) && item.getPidInNo().equalsIgnoreCase(pNo)) {
|
|
|
|
|
log.info("正在同步" + item.getPidComName() + i);
|
|
|
|
|
// log.info("进入条件");
|
|
|
|
|
PatientReportResult patientReportResult = this.getReportResult(item.getRepId());
|
|
|
|
|
String base64Result = patientReportResult.getResult().getPatient().getPatientReport();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<ScanAssort> addScanList = new ArrayList<>();
|
|
|
|
|
String base64Result;
|
|
|
|
|
try {
|
|
|
|
|
PatientReportResult patientReportResult = this.getReportResult(item.getRepId());
|
|
|
|
|
base64Result = patientReportResult.getResult().getPatient().getPatientReport();
|
|
|
|
|
} catch (Exception ex) {
|
|
|
|
|
log.error("检验报告id:{} 获取报告出错了!", item.getRepId());
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
log.info("开始转换");
|
|
|
|
|
addScanList = PDFFileUtils.base64StringToPDF(base64Result, root, item.getRepId(), item.getPidComName(), i);
|
|
|
|
|