Commit 56a93dc8 by zengyongcong

更新- 角色字典名字回显加上描述

parent 8b0d5a72
......@@ -25,6 +25,11 @@ public class SysRoleServiceImpl implements SysRoleService{
@Override
public JSONArray selectSysRolesByCondition(SysRole sysRole) {
List<SysRole> roles=sysRoleDao.selectSysRolesByCondition(sysRole);
for (SysRole role : roles) {
String description = role.getDescription();
description = description == null ? "暂无描述" : description;
role.setRolename(role.getRolename() + "[" + description + "]");
}
JSONArray rolejson = JSONArray.fromObject(roles);
return rolejson;
}
......
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