gao.qiang преди 7 месеца
родител
ревизия
01c0fe6ea9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      hazard-admin/src/main/java/com/ozs/web/controller/system/SysUserController.java

+ 1 - 1
hazard-admin/src/main/java/com/ozs/web/controller/system/SysUserController.java

@@ -361,7 +361,7 @@ public class SysUserController extends BaseController {
         boolean stop=false;
         LoginUser loginUser = getLoginUser();
         LambdaQueryWrapper<SysUserRole> wrapper=new LambdaQueryWrapper<>();
-        wrapper.eq(SysUserRole::getUserId,loginUser.getUserId());
+        wrapper.eq(SysUserRole::getUserId,loginUser.getId());
         List<SysUserRole> sysUserRoles = sysUserRoleMapper.selectList(wrapper);
         for (SysUserRole sysUserRole : sysUserRoles) {
             String roleKey = roleService.getRoleKey(sysUserRole.getRoleId());