Commit 5ddabadf authored by gaoyingwei's avatar gaoyingwei

添加 角色列表加字段

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