|
|
|
@ -1027,24 +1027,14 @@ public class PowerServiceImpl implements PowerService {
|
|
|
|
|
tree1.setName(hospitalNameSet.get(hosKey));
|
|
|
|
|
treeList.add(tree1);
|
|
|
|
|
for (int i = 0; i < dicts.size(); i++) {
|
|
|
|
|
if(user.getRoleId() == 0){
|
|
|
|
|
if(dicts.get(i).getDictId().equals(hosKey)){
|
|
|
|
|
String deptName = dicts.get(i).getDeptName();
|
|
|
|
|
if(StringUtils.isNoneBlank(deptName)){
|
|
|
|
|
deptNameSet.put(dicts.get(i).getDeptId(),dicts.get(i).getDeptName());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
if(dicts.get(i).getParentId().equals(hosKey)){
|
|
|
|
|
String deptName = dicts.get(i).getDeptName();
|
|
|
|
|
if(StringUtils.isNoneBlank(deptName)){
|
|
|
|
|
deptNameSet.put(dicts.get(i).getDeptId(),dicts.get(i).getDeptName());
|
|
|
|
|
}
|
|
|
|
|
if(dicts.get(i).getParentId().equals(hosKey)){
|
|
|
|
|
String deptName = dicts.get(i).getDeptName();
|
|
|
|
|
if(StringUtils.isNoneBlank(deptName)){
|
|
|
|
|
deptNameSet.put(dicts.get(i).getDeptId(),dicts.get(i).getDeptName());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//添加权限系统
|
|
|
|
|
if(dicts.get(i).getParentId() != null && StringUtils.isNotBlank(dicts.get(i).getSysFlag())
|
|
|
|
|
&& dicts.get(i).getParentId().equals(hosKey) && "权限系统".equals(dicts.get(i).getSysType())){
|
|
|
|
|
if(dicts.get(i).getParentId() != null && StringUtils.isNotBlank(dicts.get(i).getSysFlag()) && dicts.get(i).getParentId().equals(hosKey) && "权限系统".equals(dicts.get(i).getSysType())){
|
|
|
|
|
poweSysNameSet.put(dicts.get(i).getDictId(),dicts.get(i));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|