当天数据导入

This commit is contained in:
2026-04-25 14:13:27 +08:00
parent 4d9e6f1ef8
commit 217422f422
16 changed files with 907 additions and 5 deletions

View File

@@ -83,5 +83,17 @@ public class QweiUserController {
}
return ResponseEntity.badRequest().body(result);
}
@PostMapping("/syncCustomer")
@Operation(summary = "同步企微客户并入库")
public ResponseEntity<Map<String, Object>> syncCustomer(
@RequestParam(required = false) String tenantId) {
Map<String, Object> result = qweiUserService.syncCustomerFromQiWei(tenantId);
Boolean success = (Boolean) result.get("success");
if (success != null && success) {
return ResponseEntity.ok(result);
}
return ResponseEntity.badRequest().body(result);
}
}