|
|
|
@ -116,7 +116,7 @@ public class UserController {
@@ -116,7 +116,7 @@ public class UserController {
|
|
|
|
|
@Inner(false) |
|
|
|
|
@GetMapping("/oneClickAccess/{casUserId:\\w+}") |
|
|
|
|
public R oneClickAccess(@PathVariable String casUserId) { |
|
|
|
|
if (ObjectUtil.isNotEmpty(iSsoUserService.getById(casUserId)) && ObjectUtil.isEmpty(userService.getOne(Wrappers.<User>lambdaQuery().eq(User::getCasUserId, casUserId)))) { |
|
|
|
|
if (ObjectUtil.isEmpty(iSsoUserService.getById(casUserId)) && ObjectUtil.isEmpty(userService.getOne(Wrappers.<User>lambdaQuery().eq(User::getCasUserId, casUserId)))) { |
|
|
|
|
SsoUser kicsSsoUser = iSsoUserService.getKicsSsoUser(casUserId); |
|
|
|
|
Optional.ofNullable(kicsSsoUser).orElseThrow(() -> new CheckedException("当前casUserId无效请重新检查配置!")); |
|
|
|
|
String initDeptId = configService.getValueByKey("app.init.deptId"); |
|
|
|
|