Commit 2dcaa929 by fengshuonan

修改部门名称

parent 95ee2a55
...@@ -146,16 +146,17 @@ public class ConstantFactory implements IConstantFactory { ...@@ -146,16 +146,17 @@ 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);
if (ToolUtil.isNotEmpty(dept) && ToolUtil.isNotEmpty(dept.getFullName())) {
return dept.getFullName();
}
return "";
} }
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