Browse Source

重置密码修改

gao.qiang 7 months ago
parent
commit
01c0fe6ea9

+ 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());