Commit a5aa5e9a7b833e51dff88332868ccb60259494e1

Authored by zhangchao
1 parent e21d2b3211
Exists in dev

#fix:优化预建档建档医生更新

Showing 1 changed file with 5 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java View file @ a5aa5e9
... ... @@ -592,14 +592,17 @@
592 592 ArchiveData archiveData = new ArchiveData();
593 593 archiveData.setBuildDate(new Date());
594 594 archiveData.setId(tempP.getHospitalId() + ":" + tempP.getCardNo());
595   - archiveDataServicer.update(archiveData);
596 595  
597 596 if (CollectionUtils.isNotEmpty(list)) {
598 597 Patients patients = new Patients();
599 598 if (list.get(0).getAssistUserId() != null && tempP.getId() != null) {
600 599 patients.setAssistUserId(list.get(0).getAssistUserId());
601   - yunBookbuildingService.updatePregnant(patients, tempP.getId());
  600 + }else {
  601 + patients.setAssistUserId(patients.getLastCheckEmployeeId());
  602 + archiveData.setAssistUserId(patients.getLastCheckEmployeeId());
602 603 }
  604 + yunBookbuildingService.updatePregnant(patients, tempP.getId());
  605 + archiveDataServicer.update(archiveData);
603 606 }
604 607 //自动诊断
605 608 antenatalExaminationFacade.autoPatientRisk(tempP, userId);