机构权限修改
This commit is contained in:
parent
b44359051c
commit
f27293f788
@ -194,7 +194,7 @@ public class AgencyServiceImpl implements IAgencyService {
|
|||||||
List<SysRole> roleList = SecurityUtils.getLoginUser().getUser().getRoles();
|
List<SysRole> roleList = SecurityUtils.getLoginUser().getUser().getRoles();
|
||||||
if (CollectionUtils.isNotEmpty(roleList)) {
|
if (CollectionUtils.isNotEmpty(roleList)) {
|
||||||
List<String> dataScopeList = roleList.stream().map(SysRole::getDataScope).collect(Collectors.toList());
|
List<String> dataScopeList = roleList.stream().map(SysRole::getDataScope).collect(Collectors.toList());
|
||||||
if (!dataScopeList.contains("1")) {// 全部数据权限
|
if (dataScopeList.contains("1")) {// 全部数据权限
|
||||||
} else if (dataScopeList.contains("7")) { // 本机构及下属机构
|
} else if (dataScopeList.contains("7")) { // 本机构及下属机构
|
||||||
query.setAgencyAndChild("1");
|
query.setAgencyAndChild("1");
|
||||||
query.setId(SecurityUtils.getLoginUser().getUser().getHospitalAgencyId());
|
query.setId(SecurityUtils.getLoginUser().getUser().getHospitalAgencyId());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user