Commit 6b6bcadd460e08da28948001d08800974481cac3

Authored by jiangjiazhi
1 parent 1d38f61063
Exists in master and in 1 other branch dev

全部孕妇管理增加按照排序

Showing 1 changed file with 8 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/utils/MongoUtil.java View file @ 6b6bcad
... ... @@ -88,6 +88,14 @@
88 88  
89 89 public List<Map<String, Object>> getHospitals(Integer userId, String provinceId, String cityId, String areaId, String streetId) {
90 90 List<String> hospitalIds = accessPermissionFacade.getCurrentUserHospPermissions(userId);
  91 +
  92 + if(CollectionUtils.isEmpty(hospitalIds)){
  93 + String hospital = autoMatchFacade.getHospitalId(userId);
  94 + if (null != hospital) {
  95 + hospitalIds.add(hospital);
  96 + }
  97 + }
  98 +
91 99 List<Map<String, Object>> hospitals= couponMapper.findHospitalInfoByIds2(CollectionUtils.createMap("list", hospitalIds, "provinceId", provinceId, "cityId", cityId, "areaId", areaId, "streetId", streetId));
92 100 return hospitals;
93 101 }