Commit 5ddabadf authored by gaoyingwei's avatar gaoyingwei

添加 角色列表加字段

parent 864c7391
......@@ -81,14 +81,18 @@ public class RoleController extends BaseController {
if (record.getTenantId()!=null) {
Tenant tenant = tenantService.get(record.getTenantId());
record.setTenantName(tenant.getName());
if (record.getPid()!=null) {
Role role = roleService.get(record.getPid());
if (role!=null)
if (role != null)
record.setPidName(role.getName());
}
if (record.getDeptid()!=null) {
Dept dept = deptService.get(record.getDeptid());
if (dept!=null)
if (dept != null)
record.setDeptName(dept.getFullname());
}
}
}
return Rets.success(page);
}
......
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