企微前后台联调。

This commit is contained in:
2026-04-24 20:54:14 +08:00
parent 1f7b1e6d55
commit 1627e486a2
7 changed files with 26 additions and 14 deletions

View File

@@ -73,8 +73,9 @@ public class QweiDepartmentController {
@PostMapping("/sync")
@Operation(summary = "同步企微部门并入库")
public ResponseEntity<Map<String, Object>> sync() {
Map<String, Object> result = qweiDepartmentService.syncFromQiWei();
public ResponseEntity<Map<String, Object>> sync(
@RequestParam(required = false) String tenantId) {
Map<String, Object> result = qweiDepartmentService.syncFromQiWei(tenantId);
Boolean success = (Boolean) result.get("success");
if (success != null && success) {
return ResponseEntity.ok(result);