Commit 95ee2a55 by fengshuonan

修改部门名称

parent 11c172b6
...@@ -146,6 +146,11 @@ public class ConstantFactory implements IConstantFactory { ...@@ -146,6 +146,11 @@ 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 == 0L) {
return "顶级";
}
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();
......
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