diff --git a/renren-admin/src/main/java/io/renren/modules/sys/controller/SysUserController.java b/renren-admin/src/main/java/io/renren/modules/sys/controller/SysUserController.java index bd2f5573..c864c2c0 100644 --- a/renren-admin/src/main/java/io/renren/modules/sys/controller/SysUserController.java +++ b/renren-admin/src/main/java/io/renren/modules/sys/controller/SysUserController.java @@ -90,6 +90,7 @@ public class SysUserController { @ApiOperation("登录用户信息") public Result info(){ SysUserDTO data = ConvertUtils.sourceToTarget(SecurityUser.getUser(), SysUserDTO.class); + data.setRoleIdList(sysRoleUserService.getRoleIdList(data.getId())); return new Result().ok(data); } @@ -144,7 +145,7 @@ public class SysUserController { // @RequiresPermissions("sys:user:delete") public Result delete(@RequestBody Long[] ids){ //效验数据 - AssertUtils.isArrayEmpty(ids, "id"); + //AssertUtils.isArrayEmpty(ids, "ids"); sysUserService.deleteBatchIds(Arrays.asList(ids));