同步用户并构建上级链条
This commit is contained in:
@@ -108,4 +108,16 @@ public class LbDepartmentUserController {
|
||||
}
|
||||
return ResponseEntity.badRequest().body(result);
|
||||
}
|
||||
|
||||
@PostMapping("/syncFromLbUser")
|
||||
@Operation(summary = "从lb_user同步到部门用户并构建上级链条")
|
||||
public ResponseEntity<Map<String, Object>> syncFromLbUser(
|
||||
@Parameter(description = "租户id", required = true) @RequestParam String tenantId) {
|
||||
Map<String, Object> result = lbDepartmentUserService.syncFromLbUser(tenantId);
|
||||
Boolean success = (Boolean) result.get("success");
|
||||
if (success != null && success) {
|
||||
return ResponseEntity.ok(result);
|
||||
}
|
||||
return ResponseEntity.badRequest().body(result);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user