当天数据导入
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user