| | |
| | | userInfo.getDetail().set("resIds",attRes.getData()); |
| | | |
| | | R<Dept> deptRes = sysClient.getDept(Long.valueOf(userInfo.getUser().getDeptId())); |
| | | userInfo.getDetail().set("adCodeBase",attResManagePersonClient.getAdBaseById(deptRes.getData().getAdCode()).getData()); |
| | | if (StringUtil.isBlank(deptRes.getData().getAdCode())) |
| | | // 部门为空 |
| | | throw new UsernameNotFoundException("没有找到有效组织机构~"); |
| | | else |
| | | userInfo.getDetail().set("adCodeBase",attResManagePersonClient.getAdBaseById(deptRes.getData().getAdCode()).getData()); |
| | | |
| | | // 成功则清除登录错误次数 |
| | | delFailCount(tenantId, username); |