调整 格式+推送时间

This commit is contained in:
2026-05-11 16:56:27 +08:00
parent 7ea35eaa9c
commit ab7d2f9b7a
9 changed files with 41 additions and 39 deletions
+6 -6
View File
@@ -189,15 +189,12 @@ def sync_brand_target(
)
return {
"brand_name": target.brand_name,
"warehouse_keys": target.warehouse_keys,
"target_table_name": target.table_name,
"target_table_id": table_id,
"available_fields": available_fields,
"source_row_count": len(source_rows),
"filtered_row_count": len(target_rows),
"deleted_record_count": deleted_count,
"created_record_count": created_count,
"available_field_count": len(available_fields),
"shop_count": len(shop_names),
}
@@ -232,5 +229,8 @@ def run_sync_brand(config: AppConfig, client: FeishuClient, postgres_result: dic
return {
"target_count": len(BRAND_SYNC_TARGETS),
"source_row_count": source_row_count,
"targets": results,
"filtered_row_count": sum(int(result.get("filtered_row_count") or 0) for result in results),
"deleted_record_count": sum(int(result.get("deleted_record_count") or 0) for result in results),
"created_record_count": sum(int(result.get("created_record_count") or 0) for result in results),
"shop_count": sum(int(result.get("shop_count") or 0) for result in results),
}