Commit e1a5bb8beda3b8b2c79af9faa2400feb3b5d9607
1 parent
2c0b316873
Exists in
master
and in
1 other branch
platform permission
用户查询 根据角色
Showing 3 changed files with 5 additions and 3 deletions
platform-biz-service/src/main/java/com/lyms/platform/permission/model/Users.java
View file @
e1a5bb8
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 | public class Users { |
7 | 7 | private Integer id; |
8 | 8 | private Integer logincenterId; |
9 | - private Integer type; //0 管理员 1 用户 | |
9 | + private Integer type; //0 管理员 1 用户 2超级管理员 | |
10 | 10 | private Integer orgId; //机构ID |
11 | 11 | private Integer deptId; //部门ID |
12 | 12 | private Integer ksId; //科室ID |
platform-biz-service/src/main/resources/mainOrm/Organization.xml
View file @
e1a5bb8
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AutoMatchFacade.java
View file @
e1a5bb8
... | ... | @@ -69,7 +69,7 @@ |
69 | 69 | data.add(users.getOrgId()); |
70 | 70 | } |
71 | 71 | } |
72 | - } else{ | |
72 | + } else if(list.get(0).getType() == 1){ | |
73 | 73 | List<Organization> list2 =accessPermissionFacade.findAccessPerminssionByUserId(list.get(0).getId()); |
74 | 74 | if(CollectionUtils.isNotEmpty(list2)){ |
75 | 75 | for(Organization organization:list2){ |
... | ... | @@ -85,6 +85,8 @@ |
85 | 85 | data.add(userOrganizationMaps.getOrgId()); |
86 | 86 | } |
87 | 87 | }*/ |
88 | + } else if(list.get(0).getType() == 2) { | |
89 | + return null; | |
88 | 90 | } |
89 | 91 | } |
90 | 92 | return data; |