|
@@ -66,7 +66,9 @@ public class TenantUnbindRecordController extends BaseController {
|
|
|
if (sysUser == null) {
|
|
|
throw new BizException("请登录");
|
|
|
}
|
|
|
- TenantStaff employeeVo = tenantStaffService.detail(sysUserFeignService.queryUserInfo().getId());
|
|
|
+ Long id = sysUserFeignService.queryUserInfo().getId();
|
|
|
+ TenantStaff employeeVo = tenantStaffService.lambdaQuery().eq(TenantStaff::getUserId,id)
|
|
|
+ .last("limit 1").one();
|
|
|
if (employeeVo == null || UserLockFlag.LOCKED.equals(employeeVo.getStatus())) {
|
|
|
throw new BizException("权限不足");
|
|
|
}
|