diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java index ff6f0e4..1faad26 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java @@ -592,14 +592,17 @@ public class BookbuildingFacade { ArchiveData archiveData = new ArchiveData(); archiveData.setBuildDate(new Date()); archiveData.setId(tempP.getHospitalId() + ":" + tempP.getCardNo()); - archiveDataServicer.update(archiveData); if (CollectionUtils.isNotEmpty(list)) { Patients patients = new Patients(); if (list.get(0).getAssistUserId() != null && tempP.getId() != null) { patients.setAssistUserId(list.get(0).getAssistUserId()); - yunBookbuildingService.updatePregnant(patients, tempP.getId()); + }else { + patients.setAssistUserId(patients.getLastCheckEmployeeId()); + archiveData.setAssistUserId(patients.getLastCheckEmployeeId()); } + yunBookbuildingService.updatePregnant(patients, tempP.getId()); + archiveDataServicer.update(archiveData); } //自动诊断 antenatalExaminationFacade.autoPatientRisk(tempP, userId);