mirror of https://github.com/elunez/eladmin
phase 4 translation
parent
0e98bede80
commit
a6068086a4
|
@ -113,6 +113,7 @@ public class RoleServiceImpl implements RoleService {
|
||||||
role.setName(resources.getName());
|
role.setName(resources.getName());
|
||||||
role.setDescription(resources.getDescription());
|
role.setDescription(resources.getDescription());
|
||||||
role.setDataScope(resources.getDataScope());
|
role.setDataScope(resources.getDataScope());
|
||||||
|
role.setDepts(resources.getDepts());
|
||||||
role.setLevel(resources.getLevel());
|
role.setLevel(resources.getLevel());
|
||||||
roleRepository.save(role);
|
roleRepository.save(role);
|
||||||
// 更新相关缓存
|
// 更新相关缓存
|
||||||
|
@ -201,7 +202,6 @@ public class RoleServiceImpl implements RoleService {
|
||||||
map.put("Role description", role.getDescription());
|
map.put("Role description", role.getDescription());
|
||||||
map.put("Role data scope", role.getDataScope());
|
map.put("Role data scope", role.getDataScope());
|
||||||
map.put("Role level", role.getLevel());
|
map.put("Role level", role.getLevel());
|
||||||
map.put("Role status", role.getEnabled() ? "Enabled" : "Disabled");
|
|
||||||
map.put("Creation date", role.getCreateTime());
|
map.put("Creation date", role.getCreateTime());
|
||||||
list.add(map);
|
list.add(map);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue