Commit 46684764bbb073dedef11f46e6e5c697a2573fc1
1 parent
8bffffda7c
Exists in
master
and in
8 other branches
修改转诊
Showing 1 changed file with 5 additions and 17 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AutoMatchFacade.java
View file @
4668476
... | ... | @@ -57,25 +57,13 @@ |
57 | 57 | List<Users> list = usersService.queryUsers(usersQuery); |
58 | 58 | List<Integer> data = new ArrayList<>(); |
59 | 59 | if (CollectionUtils.isNotEmpty(list)) { |
60 | - data.add(list.get(0).getOrgId()); | |
61 | - /* //用户角色 | |
62 | - if (UserTypeEnum.NORMAL_USER.getId().equals(list.get(0).getType())) { | |
63 | - List<Organization> list2 = accessPermissionFacade.getOrganization(accessPermissionFacade.findAccessPerminssionByUserId(list.get(0).getId())); | |
64 | - if(CollectionUtils.isNotEmpty(list2)){ | |
65 | - for(Organization organization:list2){ | |
66 | - data.add(organization.getId()); | |
67 | - } | |
68 | - } | |
69 | - }else if(UserTypeEnum.PLATFORM_ADMIN.getId().equals(list.get(0).getType())){ | |
70 | - List<Organization> list2 = accessPermissionFacade.getOrganization(accessPermissionFacade.findAccessPerminssionByUserId(list.get(0).getId())); | |
71 | - if(CollectionUtils.isNotEmpty(list2)){ | |
72 | - for(Organization organization:list2){ | |
73 | - data.add(organization.getId()); | |
74 | - } | |
75 | - } | |
60 | + | |
61 | + /**/ //用户角色 | |
62 | + if (UserTypeEnum.NORMAL_USER.getId().equals(list.get(0).getType())||UserTypeEnum.PLATFORM_ADMIN.getId().equals(list.get(0).getType())) { | |
63 | + data.add(list.get(0).getOrgId()); | |
76 | 64 | } else if(UserTypeEnum.SUPPER_ADMIN.getId().equals(list.get(0).getType())) { |
77 | 65 | return null; |
78 | - }*/ | |
66 | + } | |
79 | 67 | return data; |
80 | 68 | } |
81 | 69 | return null; |