Commit 585f6434777805e4253ee0eee804e33df8e84bff

Authored by shiyang
1 parent d27e5cfa39
Exists in master and in 1 other branch dev

update

Showing 1 changed file with 9 additions and 1 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java View file @ 585f643
... ... @@ -726,7 +726,15 @@
726 726 BaseResponse baseResponse=new BaseResponse();
727 727 try {
728 728 List<PatientInfo> pLst=patientInfoService.list(new QueryWrapper<PatientInfo>().eq("idno", idno));
729   - baseResponse.setObject(pLst.size()<1?null:pLst.get(0));
  729 +
  730 + //处理自主建档的情况(没有病例)要显示患者基本信息
  731 + LymsPatient patient = lymsPatientService.getOne(new QueryWrapper<LymsPatient>().eq("idno", idno));
  732 + if(null!=patient && CollectionUtils.isNotEmpty(pLst)){
  733 + baseResponse.setObject(pLst.get(0));
  734 + }
  735 + if(CollectionUtils.isEmpty(pLst)&&null!=patient){
  736 + baseResponse.setObject(patient);
  737 + }
730 738 baseResponse.setErrormsg("成功");
731 739 } catch (Exception e) {
732 740 baseResponse.setErrormsg("失败");