diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java index 04d38dd..027bbcf 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java @@ -726,7 +726,15 @@ public class PatientController { BaseResponse baseResponse=new BaseResponse(); try { List pLst=patientInfoService.list(new QueryWrapper().eq("idno", idno)); - baseResponse.setObject(pLst.size()<1?null:pLst.get(0)); + + //处理自主建档的情况(没有病例)要显示患者基本信息 + LymsPatient patient = lymsPatientService.getOne(new QueryWrapper().eq("idno", idno)); + if(null!=patient && CollectionUtils.isNotEmpty(pLst)){ + baseResponse.setObject(pLst.get(0)); + } + if(CollectionUtils.isEmpty(pLst)&&null!=patient){ + baseResponse.setObject(patient); + } baseResponse.setErrormsg("成功"); } catch (Exception e) { baseResponse.setErrormsg("失败");