fix: 广州市一根据报告id查询报告未找到,不同步

lianzhong-receive
wyb 1 month ago
parent 3de32b4d7d
commit 801d986052

@ -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);

Loading…
Cancel
Save