Commit 2dcaa929 by fengshuonan

修改部门名称

parent 95ee2a55
...@@ -146,17 +146,18 @@ public class ConstantFactory implements IConstantFactory { ...@@ -146,17 +146,18 @@ public class ConstantFactory implements IConstantFactory {
@Override @Override
@Cacheable(value = Cache.CONSTANT, key = "'" + CacheKey.DEPT_NAME + "'+#deptId") @Cacheable(value = Cache.CONSTANT, key = "'" + CacheKey.DEPT_NAME + "'+#deptId")
public String getDeptName(Long deptId) { public String getDeptName(Long deptId) {
if (deptId == null) {
if (deptId == 0L) { return "";
} else if (deptId == 0L) {
return "顶级"; return "顶级";
} } else {
Dept dept = deptMapper.selectById(deptId); Dept dept = deptMapper.selectById(deptId);
if (ToolUtil.isNotEmpty(dept) && ToolUtil.isNotEmpty(dept.getFullName())) { if (ToolUtil.isNotEmpty(dept) && ToolUtil.isNotEmpty(dept.getFullName())) {
return dept.getFullName(); return dept.getFullName();
} }
return ""; 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