Commit 8bffffda7cef8459a14b2c470ff4ffef555f2da9
1 parent
60f9514360
Exists in
master
and in
1 other branch
修改转诊
Showing 1 changed file with 5 additions and 13 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AutoMatchFacade.java
View file @
8bffffd
... | ... | @@ -58,7 +58,7 @@ |
58 | 58 | List<Integer> data = new ArrayList<>(); |
59 | 59 | if (CollectionUtils.isNotEmpty(list)) { |
60 | 60 | data.add(list.get(0).getOrgId()); |
61 | - //用户角色 | |
61 | + /* //用户角色 | |
62 | 62 | if (UserTypeEnum.NORMAL_USER.getId().equals(list.get(0).getType())) { |
63 | 63 | List<Organization> list2 = accessPermissionFacade.getOrganization(accessPermissionFacade.findAccessPerminssionByUserId(list.get(0).getId())); |
64 | 64 | if(CollectionUtils.isNotEmpty(list2)){ |
65 | 65 | |
66 | 66 | |
67 | 67 | |
... | ... | @@ -66,27 +66,19 @@ |
66 | 66 | data.add(organization.getId()); |
67 | 67 | } |
68 | 68 | } |
69 | - } else if(UserTypeEnum.PLATFORM_ADMIN.getId().equals(list.get(0).getType())){ | |
69 | + }else if(UserTypeEnum.PLATFORM_ADMIN.getId().equals(list.get(0).getType())){ | |
70 | 70 | List<Organization> list2 = accessPermissionFacade.getOrganization(accessPermissionFacade.findAccessPerminssionByUserId(list.get(0).getId())); |
71 | 71 | if(CollectionUtils.isNotEmpty(list2)){ |
72 | 72 | for(Organization organization:list2){ |
73 | 73 | data.add(organization.getId()); |
74 | 74 | } |
75 | 75 | } |
76 | - /*UserOrganizationMapsQuery userOrganizationMapsQuery = new UserOrganizationMapsQuery(); | |
77 | - userOrganizationMapsQuery.setUserId(list.get(0).getId()); | |
78 | - userOrganizationMapsQuery.setYn(YnEnums.YES.getId()); | |
79 | - List<UserOrganizationMaps> list1 = userOrganizationMapsService.queryUserOrganizationMaps(userOrganizationMapsQuery); | |
80 | - if(CollectionUtils.isNotEmpty(list1)){ | |
81 | - for(UserOrganizationMaps userOrganizationMaps:list1){ | |
82 | - data.add(userOrganizationMaps.getOrgId()); | |
83 | - } | |
84 | - }*/ | |
85 | 76 | } else if(UserTypeEnum.SUPPER_ADMIN.getId().equals(list.get(0).getType())) { |
86 | 77 | return null; |
87 | - } | |
78 | + }*/ | |
79 | + return data; | |
88 | 80 | } |
89 | - return data; | |
81 | + return null; | |
90 | 82 | } |
91 | 83 | public String getHospitalId(Integer userId){ |
92 | 84 | List<Integer> list = matchOrgId(userId); |