机构权限修改

This commit is contained in:
zhangheng 2024-12-25 18:18:37 +08:00
parent b44359051c
commit f27293f788

View File

@ -194,7 +194,7 @@ public class AgencyServiceImpl implements IAgencyService {
List<SysRole> roleList = SecurityUtils.getLoginUser().getUser().getRoles();
if (CollectionUtils.isNotEmpty(roleList)) {
List<String> dataScopeList = roleList.stream().map(SysRole::getDataScope).collect(Collectors.toList());
if (!dataScopeList.contains("1")) {// 全部数据权限
if (dataScopeList.contains("1")) {// 全部数据权限
} else if (dataScopeList.contains("7")) { // 本机构及下属机构
query.setAgencyAndChild("1");
query.setId(SecurityUtils.getLoginUser().getUser().getHospitalAgencyId());