Commit 41ff3843 authored by lcs's avatar lcs

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

parent 6a2e8a35
...@@ -174,6 +174,8 @@ public class SysLoginService ...@@ -174,6 +174,8 @@ public class SysLoginService
{ {
SysUser sysUser = new SysUser(); SysUser sysUser = new SysUser();
sysUser.setUserId(userId); sysUser.setUserId(userId);
//避免每次登录把部门id更新为null
sysUser.setDeptId(0L);
sysUser.setLoginIp(IpUtils.getIpAddr()); sysUser.setLoginIp(IpUtils.getIpAddr());
sysUser.setLoginDate(DateUtils.getNowDate()); sysUser.setLoginDate(DateUtils.getNowDate());
userService.updateUserProfile(sysUser); userService.updateUserProfile(sysUser);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment