mitao
2024-03-27 789b5b823440d174a198a35fd033ca975cb54f4a
ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java
@@ -182,7 +182,7 @@
        // 用户验证
        Authentication authentication = null;
        // 用户验证
        TbDept dept = tbDeptService.getOne(Wrappers.<TbDept>lambdaQuery().ge(TbDept::getAccount, account));
        TbDept dept = tbDeptService.getOne(Wrappers.<TbDept>lambdaQuery().eq(TbDept::getAccount, account));
        if (StringUtils.isNull(dept)){
            log.info("登录用户:{} 不存在.", account);
            throw new ServiceException(MessageUtils.message("user.not.exists"));