Commit 0ff3b2e614862699d02d097ceaf2bbf70d38c742

Authored by liquanyu
1 parent 300eb67523

update

Showing 1 changed file with 11 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/LisFacade.java View file @ 0ff3b2e
... ... @@ -663,13 +663,17 @@
663 663 String hospitalId = autoMatchFacade.getHospitalId(userId);
664 664 LisReportQuery query = new LisReportQuery();
665 665 List<String> titles = new ArrayList<>();
  666 + Map<String,Map<String,String>> map = new HashMap<>();
666 667  
  668 + boolean isQuery = false;
  669 +
667 670 //秦皇岛
668 671 if ("216".equals(hospitalId))
669 672 {
670 673 titles.add("尿常规");
671 674 titles.add("[丙]血常规(24项)");
672 675 titles.add("血常规(24项)");
  676 + isQuery = true;
673 677 }
674 678 //青龙满族自治县医院
675 679 else if ("204".equals(hospitalId))
676 680  
677 681  
... ... @@ -680,13 +684,19 @@
680 684 titles.add("血常规、血型");
681 685 titles.add("血常规5分类");
682 686 titles.add("小儿血常规5分类");
  687 + isQuery = true;
683 688 }
  689 + //如果不为上面的医院就直接返回
  690 + if (!isQuery)
  691 + {
  692 + return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg(ErrorCodeConstants.SUCCESS_DESCRIPTION).setData(map);
  693 + }
684 694  
685 695 query.setTitles(titles);
686 696 query.setHospitalId(hospitalId);
687 697 query.setCheckTime(DateUtil.parseYMD(checkTime));
688 698 List<LisReportModel> lises = queryLisData(vcCardNo,phone,query);
689   - Map<String,Map<String,String>> map = new HashMap<>();
  699 +
690 700 if (CollectionUtils.isNotEmpty(lises))
691 701 {
692 702 for(LisReportModel model : lises)