修复每次登录把部门id更新为null

pull/1082/head
lcs 2025-08-22 16:01:01 +08:00
parent 6a2e8a35e9
commit 41ff3843e6
1 changed files with 2 additions and 0 deletions

View File

@ -174,6 +174,8 @@ public class SysLoginService
{
SysUser sysUser = new SysUser();
sysUser.setUserId(userId);
//避免每次登录把部门id更新为null
sysUser.setDeptId(0L);
sysUser.setLoginIp(IpUtils.getIpAddr());
sysUser.setLoginDate(DateUtils.getNowDate());
userService.updateUserProfile(sysUser);