Commit 411154efb35990b1b6652d8c030fd91865ac6a31

Authored by liquanyu
1 parent 7ee09e6865

产检

Showing 1 changed file with 8 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java View file @ 411154e
... ... @@ -2523,11 +2523,19 @@
2523 2523 if(list.size()==1){
2524 2524 return list.get(0);
2525 2525 }else{
  2526 +
  2527 + Patients mainPatient = null;
  2528 +
2526 2529 for(Patients ps:list){
  2530 + if (StringUtils.isEmpty(ps.getSource()))
  2531 + {
  2532 + mainPatient = ps;
  2533 + }
2527 2534 if(hospitalId.equals(ps.getHospitalId())){
2528 2535 return ps;
2529 2536 }
2530 2537 }
  2538 + return mainPatient;
2531 2539 }
2532 2540 }
2533 2541 if (outHospital) {