防止用户个人信息修改部门

This commit is contained in:
RuoYi 2022-08-12 12:16:30 +08:00
parent 890ad682d7
commit 893ef39401

View File

@ -76,6 +76,7 @@ public class SysProfileController extends BaseController
user.setUserId(sysUser.getUserId()); user.setUserId(sysUser.getUserId());
user.setPassword(null); user.setPassword(null);
user.setAvatar(null); user.setAvatar(null);
user.setDeptId(null);
if (userService.updateUserProfile(user) > 0) if (userService.updateUserProfile(user) > 0)
{ {
// 更新缓存用户信息 // 更新缓存用户信息