|
@@ -519,7 +519,9 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|
|
if (sysDeptList.size() == 0) {
|
|
|
SysUser sysUser = getById(userId);
|
|
|
sysUser.setPassword(null);
|
|
|
- return Collections.singletonList(sysUser);
|
|
|
+ List<SysUser> sysUserList = Collections.singletonList(sysUser);
|
|
|
+ DynamicDataSourceContextHolder.poll();
|
|
|
+ return sysUserList;
|
|
|
}
|
|
|
|
|
|
Set<Long> deptSet = new HashSet<>();
|