From 90f8f00782b04ad4d9a8395fab2ed009d26ac7c9 Mon Sep 17 00:00:00 2001 From: tikkhun Date: Fri, 23 Jan 2026 11:56:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(cube):=20=E6=B7=BB=E5=8A=A0=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=95=86=E5=93=81=E6=95=B0=E9=87=8F=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加多个Cube查询配置文件,包括按SKU和名称统计订单商品数量 新增total_sales_quantity度量字段用于统计销售总量 添加客户状态统计查询配置 --- ...e_count_query.json => customer_state_count_query.json} | 0 container/cube/query/order_item_name_quantity_sum.json | 8 ++++++++ .../order_item_product_by_sku_quantity_sum copy.json | 0 .../order_item_product_component_by_sku_quantity_sum.json | 0 container/cube/query/order_item_sku_quantity_sum.json | 8 ++++++++ 5 files changed, 16 insertions(+) rename container/cube/query/{state_count_query.json => customer_state_count_query.json} (100%) create mode 100644 container/cube/query/order_item_name_quantity_sum.json create mode 100644 container/cube/query/order_item_product_by_sku_quantity_sum copy.json create mode 100644 container/cube/query/order_item_product_component_by_sku_quantity_sum.json create mode 100644 container/cube/query/order_item_sku_quantity_sum.json diff --git a/container/cube/query/state_count_query.json b/container/cube/query/customer_state_count_query.json similarity index 100% rename from container/cube/query/state_count_query.json rename to container/cube/query/customer_state_count_query.json diff --git a/container/cube/query/order_item_name_quantity_sum.json b/container/cube/query/order_item_name_quantity_sum.json new file mode 100644 index 0000000..c11f2bf --- /dev/null +++ b/container/cube/query/order_item_name_quantity_sum.json @@ -0,0 +1,8 @@ +{ + "dimensions": ["order_item.name"], + "measures": ["order_item.quantity"], + "order": { + "order_item.quantity": "desc" + }, + "filters": [] +} \ No newline at end of file diff --git a/container/cube/query/order_item_product_by_sku_quantity_sum copy.json b/container/cube/query/order_item_product_by_sku_quantity_sum copy.json new file mode 100644 index 0000000..e69de29 diff --git a/container/cube/query/order_item_product_component_by_sku_quantity_sum.json b/container/cube/query/order_item_product_component_by_sku_quantity_sum.json new file mode 100644 index 0000000..e69de29 diff --git a/container/cube/query/order_item_sku_quantity_sum.json b/container/cube/query/order_item_sku_quantity_sum.json new file mode 100644 index 0000000..a6736e7 --- /dev/null +++ b/container/cube/query/order_item_sku_quantity_sum.json @@ -0,0 +1,8 @@ +{ + "dimensions": ["order_item.sku"], + "measures": ["order_item.quantity"], + "order": { + "order_item.total_sales_quantity": "desc" + }, + "filters": [] +} \ No newline at end of file