Commit ebc03a8433e797a37f2805511665119a8f656f2d
1 parent
20f5cb38fd
Exists in
master
and in
1 other branch
增加字段
Showing 1 changed file with 4 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AccessPermissionFacade.java
View file @
ebc03a8
... | ... | @@ -78,10 +78,12 @@ |
78 | 78 | PermissionTypeEnums permissionTypeEnums = PermissionTypeEnums.getEnumsById(roles.getPermissiontype()); |
79 | 79 | |
80 | 80 | Assert.notNull(permissionTypeEnums, "权限类型不存在."); |
81 | - | |
81 | + if(CollectionUtils.isNotEmpty(accessPermissionAddRequest.getDeptId())){ | |
82 | + permission.setDeptid(accessPermissionAddRequest.getDeptId()); | |
83 | + } | |
82 | 84 | permission.setType(permissionTypeEnums.getId()); |
83 | 85 | dataPermissionsModel.getData().clear(); |
84 | - dataPermissionsModel.addOnePer( roles.getHospitalid(), permission); | |
86 | + dataPermissionsModel.addOnePer(roles.getHospitalid(), permission); | |
85 | 87 | }else if(PermissionTypeEnums.Type.ADMIN.getId()==NumberUtils.toInt(accessPermissionAddRequest.getType())){ |
86 | 88 | //如果是院外的权限,就只需要设置医院的id |
87 | 89 | permission.setType(PermissionTypeEnums.ALL_HOSPITAL.getId()); |