Commit 2dcaa929 by fengshuonan

修改部门名称

parent 95ee2a55
......@@ -146,17 +146,18 @@ public class ConstantFactory implements IConstantFactory {
@Override
@Cacheable(value = Cache.CONSTANT, key = "'" + CacheKey.DEPT_NAME + "'+#deptId")
public String getDeptName(Long deptId) {
if (deptId == 0L) {
if (deptId == null) {
return "";
} else if (deptId == 0L) {
return "顶级";
}
} else {
Dept dept = deptMapper.selectById(deptId);
if (ToolUtil.isNotEmpty(dept) && ToolUtil.isNotEmpty(dept.getFullName())) {
return dept.getFullName();
}
return "";
}
}
/**
* 获取菜单的名称们(多个)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment