From a558086d4def35e987642a4e25b74580204f4192 Mon Sep 17 00:00:00 2001 From: zhangjunwen Date: Wed, 10 Jul 2024 17:47:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E5=B1=82=E5=B9=B3=E5=8F=B0=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E9=83=A8=E9=97=A8=E5=8C=BA=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inspur/framework/web/service/UserDetailsServiceImpl.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/zfipc-server/zfipc-framework/src/main/java/com/inspur/framework/web/service/UserDetailsServiceImpl.java b/zfipc-server/zfipc-framework/src/main/java/com/inspur/framework/web/service/UserDetailsServiceImpl.java index d5bb83b..d0e300c 100644 --- a/zfipc-server/zfipc-framework/src/main/java/com/inspur/framework/web/service/UserDetailsServiceImpl.java +++ b/zfipc-server/zfipc-framework/src/main/java/com/inspur/framework/web/service/UserDetailsServiceImpl.java @@ -34,8 +34,6 @@ public class UserDetailsServiceImpl implements UserDetailsService @Autowired private SysPermissionService permissionService; - @Value("${user.deptId}") - private Long deptId; @Override public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException @@ -56,9 +54,6 @@ public class UserDetailsServiceImpl implements UserDetailsService log.info("登录用户:{} 已被停用.", username); throw new ServiceException("对不起,您的账号:" + username + " 已停用"); } - else if (deptId != null && !deptId.equals(user.getDeptId())){ - throw new ServiceException("对不起,您的账号:" + username + " 不属于该工控机,无法登录"); - } passwordService.validate(user);