{
  "surface": "report",
  "manifest": {
    "version": 1,
    "surface": "report",
    "title": "赛迪与首都机场：上线以来哪些功能真正被使用",
    "description": "基于两个线上生产库的只读聚合，按首个有效订单日至2026-08-03识别累计高频功能，并以近30天作为趋势补充。",
    "generatedAt": "2026-08-04T19:18:25+08:00",
    "cards": [
      {
        "id": "airport-orders",
        "description": "首都机场自首个有效订单日至2026-08-03的累计有效订单。",
        "dataset": "headline_metrics",
        "filter": {
          "project_key": "airport"
        },
        "sourceId": "orders-source",
        "metrics": [
          {
            "label": "首都机场累计订单",
            "field": "orders",
            "format": "compact"
          },
          {
            "label": "近30天环比",
            "field": "recent_orders_delta",
            "format": "percent",
            "signed": true
          }
        ]
      },
      {
        "id": "airport-users",
        "description": "首都机场上线以来有有效订单的去重用户与累计人均订单。",
        "dataset": "headline_metrics",
        "filter": {
          "project_key": "airport"
        },
        "sourceId": "orders-source",
        "metrics": [
          {
            "label": "首都机场累计用户",
            "field": "active_users",
            "format": "compact"
          },
          {
            "label": "累计人均订单",
            "field": "orders_per_user",
            "format": "number"
          }
        ]
      },
      {
        "id": "airport-amount",
        "description": "首都机场上线以来有效订单流水与平均订单金额，不等于收入。",
        "dataset": "headline_metrics",
        "filter": {
          "project_key": "airport"
        },
        "sourceId": "orders-source",
        "metrics": [
          {
            "label": "首都机场累计流水",
            "field": "amount",
            "format": "currency"
          },
          {
            "label": "平均订单金额",
            "field": "avg_order_value",
            "format": "currency"
          }
        ]
      },
      {
        "id": "saidi-orders",
        "description": "赛迪物业自首个有效订单日至2026-08-03的累计有效订单。",
        "dataset": "headline_metrics",
        "filter": {
          "project_key": "saidi"
        },
        "sourceId": "orders-source",
        "metrics": [
          {
            "label": "赛迪物业累计订单",
            "field": "orders",
            "format": "compact"
          },
          {
            "label": "近30天环比",
            "field": "recent_orders_delta",
            "format": "percent",
            "signed": true
          }
        ]
      },
      {
        "id": "saidi-users",
        "description": "赛迪物业上线以来有有效订单的去重用户与累计人均订单。",
        "dataset": "headline_metrics",
        "filter": {
          "project_key": "saidi"
        },
        "sourceId": "orders-source",
        "metrics": [
          {
            "label": "赛迪物业累计用户",
            "field": "active_users",
            "format": "compact"
          },
          {
            "label": "累计人均订单",
            "field": "orders_per_user",
            "format": "number"
          }
        ]
      },
      {
        "id": "saidi-amount",
        "description": "赛迪物业上线以来有效订单流水与平均订单金额，不等于收入。",
        "dataset": "headline_metrics",
        "filter": {
          "project_key": "saidi"
        },
        "sourceId": "orders-source",
        "metrics": [
          {
            "label": "赛迪物业累计流水",
            "field": "amount",
            "format": "currency"
          },
          {
            "label": "平均订单金额",
            "field": "avg_order_value",
            "format": "currency"
          }
        ]
      }
    ],
    "charts": [
      {
        "id": "channel-share",
        "title": "上线以来功能渠道占比",
        "subtitle": "每个项目内部累计有效订单结构；百分比不用于比较两项目绝对规模。",
        "showDescription": true,
        "intent": "composition",
        "question": "项目上线以来，哪些业务入口真正承载了订单？",
        "rationale": "水平条形图适合比较项目与长标签渠道组合。",
        "type": "horizontalBar",
        "dataset": "lifetime_channel_share",
        "sourceId": "orders-source",
        "encodings": {
          "x": {
            "field": "project_channel",
            "type": "nominal",
            "label": "项目｜渠道"
          },
          "y": {
            "field": "order_share",
            "type": "quantitative",
            "format": "percent",
            "label": "累计订单占比"
          },
          "tooltip": [
            {
              "field": "orders",
              "type": "quantitative",
              "format": "number",
              "label": "累计订单"
            },
            {
              "field": "active_users",
              "type": "quantitative",
              "format": "number",
              "label": "累计用户"
            },
            {
              "field": "amount",
              "type": "quantitative",
              "format": "currency",
              "label": "累计流水"
            }
          ]
        },
        "valueFormat": "percent",
        "layout": "full",
        "palette": {
          "kind": "categorical",
          "name": "blue"
        },
        "settings": {
          "orientation": "horizontal",
          "sort": "descending",
          "showValues": true
        },
        "surface": {
          "surface": "explorer",
          "viewMode": "both"
        }
      },
      {
        "id": "airport-monthly",
        "title": "首都机场上线以来月度有效订单",
        "subtitle": "2026年1月从20日起、8月仅含1日至3日，两个不完整月不与整月直接比较。",
        "showDescription": true,
        "intent": "trend",
        "question": "机场上线以来的累计运行规模如何形成？",
        "rationale": "月度趋势覆盖完整上线周期，同时避免日度噪声。",
        "type": "line",
        "dataset": "monthly_airport",
        "sourceId": "orders-source",
        "encodings": {
          "x": {
            "field": "month_date",
            "type": "temporal",
            "label": "月份"
          },
          "y": {
            "field": "orders",
            "type": "quantitative",
            "format": "compact",
            "label": "有效订单"
          },
          "tooltip": [
            {
              "field": "active_users",
              "type": "quantitative",
              "format": "number",
              "label": "活跃用户"
            },
            {
              "field": "amount",
              "type": "quantitative",
              "format": "currency",
              "label": "订单流水"
            }
          ]
        },
        "layout": "full",
        "palette": {
          "kind": "identity",
          "name": "blue"
        },
        "surface": {
          "surface": "explorer",
          "viewMode": "both"
        }
      },
      {
        "id": "saidi-monthly",
        "title": "赛迪物业上线以来月度有效订单",
        "subtitle": "2026年1月从18日起、8月仅含1日至3日，两个不完整月不与整月直接比较。",
        "showDescription": true,
        "intent": "trend",
        "question": "赛迪上线以来的累计运行规模如何形成？",
        "rationale": "月度趋势覆盖完整上线周期，同时避免日度噪声。",
        "type": "line",
        "dataset": "monthly_saidi",
        "sourceId": "orders-source",
        "encodings": {
          "x": {
            "field": "month_date",
            "type": "temporal",
            "label": "月份"
          },
          "y": {
            "field": "orders",
            "type": "quantitative",
            "format": "compact",
            "label": "有效订单"
          },
          "tooltip": [
            {
              "field": "active_users",
              "type": "quantitative",
              "format": "number",
              "label": "活跃用户"
            },
            {
              "field": "amount",
              "type": "quantitative",
              "format": "currency",
              "label": "订单流水"
            }
          ]
        },
        "layout": "full",
        "palette": {
          "kind": "identity",
          "name": "orange"
        },
        "surface": {
          "surface": "explorer",
          "viewMode": "both"
        }
      },
      {
        "id": "meal-share",
        "title": "上线以来餐段结构",
        "subtitle": "每个项目内部累计有效订单占比。",
        "showDescription": true,
        "intent": "composition",
        "question": "上线以来使用集中在哪些餐段？",
        "rationale": "项目与餐段组合后的水平条形图便于看长期结构差异。",
        "type": "horizontalBar",
        "dataset": "lifetime_meal_mix",
        "sourceId": "orders-source",
        "encodings": {
          "x": {
            "field": "project_meal",
            "type": "nominal",
            "label": "项目｜餐段"
          },
          "y": {
            "field": "order_share",
            "type": "quantitative",
            "format": "percent",
            "label": "累计订单占比"
          },
          "tooltip": [
            {
              "field": "orders",
              "type": "quantitative",
              "format": "number",
              "label": "累计订单"
            },
            {
              "field": "active_users",
              "type": "quantitative",
              "format": "number",
              "label": "累计用户"
            }
          ]
        },
        "valueFormat": "percent",
        "layout": "full",
        "palette": {
          "kind": "categorical",
          "name": "blue"
        },
        "settings": {
          "orientation": "horizontal",
          "sort": "descending",
          "showValues": true
        },
        "surface": {
          "surface": "explorer",
          "viewMode": "both"
        }
      }
    ],
    "tables": [
      {
        "id": "channel-comparison-table",
        "title": "功能渠道累计与近期对比",
        "subtitle": "累计口径为主；近30天环比只用于识别近期变化。",
        "showDescription": true,
        "dataset": "channel_comparison",
        "defaultSort": {
          "field": "lifetime_orders",
          "direction": "desc"
        },
        "density": "spacious",
        "sourceId": "orders-source",
        "layout": "full",
        "columns": [
          {
            "field": "project",
            "label": "项目",
            "type": "text"
          },
          {
            "field": "channel",
            "label": "功能渠道",
            "type": "text"
          },
          {
            "field": "lifetime_orders",
            "label": "累计订单",
            "format": "number"
          },
          {
            "field": "lifetime_share",
            "label": "累计占比",
            "format": "percent"
          },
          {
            "field": "lifetime_active_users",
            "label": "累计用户",
            "format": "number"
          },
          {
            "field": "current_30d_orders",
            "label": "近30天订单",
            "format": "number"
          },
          {
            "field": "recent_delta",
            "label": "近30天环比",
            "format": "percent",
            "movement": true
          },
          {
            "field": "lifetime_amount",
            "label": "累计流水",
            "format": "currency"
          }
        ]
      },
      {
        "id": "payment-table",
        "title": "上线以来支付方式结构",
        "subtitle": "支付方式来自订单业务字段。",
        "showDescription": true,
        "dataset": "lifetime_payment_mix",
        "defaultSort": {
          "field": "orders",
          "direction": "desc"
        },
        "density": "spacious",
        "sourceId": "orders-source",
        "layout": "full",
        "columns": [
          {
            "field": "project",
            "label": "项目",
            "type": "text"
          },
          {
            "field": "payment",
            "label": "支付方式",
            "type": "text"
          },
          {
            "field": "orders",
            "label": "累计订单",
            "format": "number"
          },
          {
            "field": "order_share",
            "label": "累计占比",
            "format": "percent"
          },
          {
            "field": "active_users",
            "label": "累计用户",
            "format": "number"
          },
          {
            "field": "amount",
            "label": "累计流水",
            "format": "currency"
          }
        ]
      },
      {
        "id": "concentration-table",
        "title": "上线以来使用强度与场景集中度",
        "subtitle": "高频定义为项目上线以来累计21单及以上。",
        "showDescription": true,
        "dataset": "concentration",
        "defaultSort": {
          "field": "high_frequency_order_share",
          "direction": "desc"
        },
        "density": "spacious",
        "sourceId": "orders-source",
        "layout": "full",
        "columns": [
          {
            "field": "project",
            "label": "项目",
            "type": "text"
          },
          {
            "field": "high_frequency_user_share",
            "label": "高频用户占比",
            "format": "percent"
          },
          {
            "field": "high_frequency_order_share",
            "label": "高频用户订单贡献",
            "format": "percent"
          },
          {
            "field": "top3_restaurant_share",
            "label": "Top3餐厅订单占比",
            "format": "percent"
          },
          {
            "field": "weekend_order_share",
            "label": "周末订单占比",
            "format": "percent"
          }
        ]
      },
      {
        "id": "restaurants-table",
        "title": "上线以来各项目 Top 5 使用场景",
        "subtitle": "按累计有效订单排序；餐厅名称来自项目主数据。",
        "showDescription": true,
        "dataset": "top_restaurants",
        "defaultSort": {
          "field": "orders",
          "direction": "desc"
        },
        "density": "dense",
        "sourceId": "orders-source",
        "layout": "full",
        "columns": [
          {
            "field": "project",
            "label": "项目",
            "type": "text"
          },
          {
            "field": "rank",
            "label": "项目内排名",
            "format": "number"
          },
          {
            "field": "restaurant",
            "label": "餐厅/场景",
            "type": "text"
          },
          {
            "field": "orders",
            "label": "累计订单",
            "format": "number"
          },
          {
            "field": "order_share",
            "label": "项目内占比",
            "format": "percent"
          },
          {
            "field": "active_users",
            "label": "累计用户",
            "format": "number"
          },
          {
            "field": "amount",
            "label": "累计流水",
            "format": "currency"
          }
        ]
      },
      {
        "id": "feature-signals-table",
        "title": "订单之外的累计功能使用证据",
        "subtitle": "上线以来有记录的业务行为；近30天只用于观察变化。",
        "showDescription": true,
        "dataset": "feature_signals",
        "defaultSort": {
          "field": "lifetime_records",
          "direction": "desc"
        },
        "density": "dense",
        "sourceId": "feature-source",
        "layout": "full",
        "columns": [
          {
            "field": "project",
            "label": "项目",
            "type": "text"
          },
          {
            "field": "feature",
            "label": "功能",
            "type": "text"
          },
          {
            "field": "evidence_type",
            "label": "证据类型",
            "type": "text"
          },
          {
            "field": "lifetime_records",
            "label": "累计记录",
            "format": "number"
          },
          {
            "field": "lifetime_distinct_actors",
            "label": "累计去重主体",
            "format": "number"
          },
          {
            "field": "current_30d_records",
            "label": "近30天记录",
            "format": "number"
          },
          {
            "field": "recent_delta",
            "label": "近30天环比",
            "format": "percent",
            "movement": true
          }
        ]
      },
      {
        "id": "zero-use-table",
        "title": "上线以来未见业务记录的能力",
        "subtitle": "0 仅表示指定业务表无记录；没有页面点击流，不能证明页面从未打开。",
        "showDescription": true,
        "dataset": "zero_use_features",
        "defaultSort": {
          "field": "project",
          "direction": "asc"
        },
        "density": "dense",
        "sourceId": "feature-source",
        "layout": "full",
        "columns": [
          {
            "field": "project",
            "label": "项目",
            "type": "text"
          },
          {
            "field": "feature",
            "label": "能力",
            "type": "text"
          },
          {
            "field": "evidence_type",
            "label": "证据类型",
            "type": "text"
          },
          {
            "field": "lifetime_records",
            "label": "累计记录",
            "format": "number"
          },
          {
            "field": "current_30d_records",
            "label": "近30天记录",
            "format": "number"
          }
        ]
      },
      {
        "id": "management-table",
        "title": "上线以来后台管理操作",
        "subtitle": "报表导出与赛迪安全审计聚合；不展示操作者身份。",
        "showDescription": true,
        "dataset": "management_activity",
        "defaultSort": {
          "field": "events",
          "direction": "desc"
        },
        "density": "dense",
        "sourceId": "feature-source",
        "layout": "full",
        "columns": [
          {
            "field": "project_name",
            "label": "项目",
            "type": "text"
          },
          {
            "field": "category",
            "label": "类别",
            "type": "text"
          },
          {
            "field": "activity",
            "label": "操作",
            "type": "text"
          },
          {
            "field": "result",
            "label": "结果",
            "type": "text"
          },
          {
            "field": "events",
            "label": "累计记录",
            "format": "number"
          },
          {
            "field": "distinct_operators",
            "label": "累计去重操作者",
            "format": "number"
          }
        ]
      }
    ],
    "sources": [
      {
        "id": "orders-source",
        "label": "生产库只读聚合：上线以来有效订单",
        "path": "analyze_feature_usage.py",
        "query": {
          "engine": "MySQL",
          "description": "两个项目自首个有效订单日起的订单、渠道、支付、餐段、餐厅、频次与月趋势聚合。",
          "executed_at": "2026-08-04T19:18:25+08:00",
          "language": "SQL",
          "sql": "-- 分别在 zhct_jc_new 与 zhct_saidi 的只读连接执行\nSELECT MIN(meal_date) AS observable_launch_date\nFROM ydy_meal_order\nWHERE pay_status=20 AND order_status=30 AND is_delete=0 AND user_id>0;\n\nSELECT COUNT(*) AS orders, ROUND(SUM(total_price),2) AS amount,\n       COUNT(DISTINCT user_id) AS active_users, COUNT(DISTINCT meal_date) AS active_days\nFROM ydy_meal_order\nWHERE pay_status=20 AND order_status=30 AND is_delete=0 AND user_id>0\n  AND meal_date BETWEEN :observable_launch_date AND '2026-08-03';",
          "tables_used": [
            "zhct_jc_new.ydy_meal_order",
            "zhct_saidi.ydy_meal_order",
            "ydy_restaurants"
          ],
          "filters": [
            "首都机场：2026-01-20 至 2026-08-03；赛迪：2026-01-18 至 2026-08-03",
            "pay_status=20；order_status=30；is_delete=0；user_id>0",
            "近30天与前30天仅用于辅助趋势，不作为主规模口径"
          ],
          "metric_definitions": [
            "可观察上线起点：生产订单库中首个满足有效订单条件的 meal_date；不等同于合同上线或验收日期。",
            "有效订单：满足支付、完成、未删除和有效用户条件的订单记录数。",
            "订单流水：有效订单 total_price 合计，不等于收入、回款或毛利。"
          ]
        }
      },
      {
        "id": "feature-source",
        "label": "生产库只读聚合：上线以来功能行为与管理操作",
        "path": "feature_activity.csv",
        "query": {
          "engine": "MySQL",
          "description": "退款、评价、取餐、报表、审计、卡片、消费限额及健康相关业务表的上线以来聚合。",
          "executed_at": "2026-08-04T19:18:25+08:00",
          "language": "SQL",
          "sql": "-- 各业务表使用项目可观察上线起点至 2026-08-03 的业务日期或创建时间聚合\nSELECT COUNT(*) FROM ydy_export_log WHERE status=1 AND create_time BETWEEN :start AND :end;\nSELECT COUNT(*) FROM ydy_consume_limit_block_log WHERE consume_time BETWEEN :start AND :end;\nSELECT prepare_status, COUNT(*) FROM ydy_meal_order_pickup\nWHERE meal_date BETWEEN :start AND :end GROUP BY prepare_status;",
          "tables_used": [
            "ydy_ai_conversation",
            "ydy_billing_record",
            "ydy_consume_limit_block_log",
            "ydy_device_weight_event",
            "ydy_export_log",
            "ydy_health_record",
            "ydy_locker_pickup_api_log",
            "ydy_meal_order_pickup",
            "ydy_meal_order_refund",
            "ydy_measurement_session",
            "ydy_menus_attendance",
            "ydy_menus_subscribe",
            "ydy_order_evaluate",
            "ydy_purchase",
            "ydy_recharge_order",
            "ydy_security_audit_log",
            "ydy_sign_daka",
            "ydy_staff_card",
            "ydy_staff_face",
            "ydy_vending_shipment_result"
          ],
          "filters": [
            "仅保存项目级聚合；未导出人员、手机号、订单或日志明细"
          ],
          "metric_definitions": [
            "主动业务动作、流程记录、规则触发、配置/建档分开解释。",
            "记录数不等于页面访问人数；0 表示指定业务表无记录，不证明页面从未被打开。"
          ]
        }
      },
      {
        "id": "quality-source",
        "label": "生产库只读聚合：数据质量检查",
        "path": "data_quality.csv",
        "query": {
          "engine": "MySQL",
          "description": "订单键唯一性、未来用餐日期、状态完整性和取餐流程状态检查。",
          "executed_at": "2026-08-04T19:18:25+08:00",
          "language": "SQL",
          "sql": "SELECT COUNT(*) AS rows, COUNT(DISTINCT id), COUNT(DISTINCT order_no),\nSUM(user_id=0), SUM(meal_date>'2026-08-03'), SUM(pay_status<>20),\nSUM(order_status<>30), SUM(is_delete<>0), MIN(meal_date), MAX(meal_date)\nFROM ydy_meal_order;",
          "tables_used": [
            "zhct_jc_new.ydy_meal_order",
            "zhct_saidi.ydy_meal_order",
            "zhct_saidi.ydy_meal_order_pickup"
          ],
          "filters": [
            "报告截止日 2026-08-03；未来用餐订单不计入累计完成量"
          ],
          "metric_definitions": [
            "未来用餐订单可能是正常预约，不自动标记为错误。"
          ]
        }
      }
    ],
    "blocks": [
      {
        "id": "title",
        "type": "markdown",
        "body": "# 赛迪与首都机场：上线以来哪些功能真正被使用"
      },
      {
        "id": "executive-summary",
        "type": "markdown",
        "body": "## Executive Summary\n\n- **首都机场：上线以来是高规模消费机项目。** 从 2026-01-20 至 2026-08-03 共 895,908 单、8,039 位用户；消费机占 89.43%，外部订单接入占 10.57%。\n- **赛迪：上线以来是“消费机＋闸机”双核心。** 从 2026-01-18 至 2026-08-03 共 145,955 单、3,677 位用户；消费机占 81.09%，闸机占 18.55%，线上订餐仅占 0.36%。\n- **后台最明确的长期刚需仍是运营管理。** 机场累计报表导出 1,379 次，但只有 1 位操作者；赛迪累计实体卡、审计、限额控制和取餐流程都有真实记录。\n- **近期变化只作补充。** 机场近30天订单环比 +4.30%；赛迪订单环比 +13.01%、活跃用户环比 +12.10%。赛迪近30天限额拦截 95 次、前30天 21 次，仍需排查。"
      },
      {
        "id": "headline-strip",
        "type": "metric-strip",
        "cardIds": [
          "airport-orders",
          "airport-users",
          "airport-amount",
          "saidi-orders",
          "saidi-users",
          "saidi-amount"
        ]
      },
      {
        "id": "scope",
        "type": "markdown",
        "sourceId": "orders-source",
        "body": "## 这版如何定义“上线以来”\n\n生产库没有统一可核验的合同上线日期字段，因此以**首个有效订单日**作为“数据可观察上线起点”：赛迪为 2026-01-18，首都机场为 2026-01-20，统一统计至 2026-08-03。这个日期表示业务数据开始出现，不等同于合同签署、部署、验收或正式运营日期；若后续拿到项目正式上线证明，应替换起点并重新跑数。"
      },
      {
        "id": "channel-finding",
        "type": "markdown",
        "sourceId": "orders-source",
        "body": "## 上线以来，真正高频的是交易入口\n\n**首都机场**累计消费机 801,171 单、占 89.43%；外部订单接入 94,737 单、占 10.57%。产品与运维优先级应围绕消费机稳定性、外部订单一致性、退款和对账展开。\n\n**赛迪物业**累计消费机 118,350 单、占 81.09%；闸机 27,074 单、占 18.55%；线上订餐 531 单、仅占 0.36%。长期结构证明“消费机＋闸机”是双核心，线上订餐仍是补充入口。"
      },
      {
        "id": "channel-chart-block",
        "type": "chart",
        "chartId": "channel-share"
      },
      {
        "id": "channel-table-block",
        "type": "table",
        "tableId": "channel-comparison-table"
      },
      {
        "id": "airport-trend-finding",
        "type": "markdown",
        "sourceId": "orders-source",
        "body": "## 首都机场：高频用户和分散场景构成规模基础\n\n上线以来累计人均 111.45 单；累计21单以上用户占 84.55%，贡献 98.86% 的订单。Top3 餐厅只占 38.61%，业务分布在多个餐厅与设备场景；周末占 14.53%，保障不能只按普通工作日食堂设计。"
      },
      {
        "id": "airport-monthly-block",
        "type": "chart",
        "chartId": "airport-monthly"
      },
      {
        "id": "saidi-trend-finding",
        "type": "markdown",
        "sourceId": "orders-source",
        "body": "## 赛迪物业：工作日核心点位高度集中\n\n上线以来累计人均 39.69 单；累计21单以上用户占 37.86%，贡献 87.47% 的订单。Top3 餐厅贡献 91.99%，周末仅占 2.55%，适合围绕少数工作日高密度点位完成产品试点和问题闭环。"
      },
      {
        "id": "saidi-monthly-block",
        "type": "chart",
        "chartId": "saidi-monthly"
      },
      {
        "id": "meal-finding",
        "type": "markdown",
        "sourceId": "orders-source",
        "body": "## 长期餐段与支付结构决定保障重点\n\n机场午餐占 49.27%、早餐 33.28%、晚餐 17.45%，三餐均有稳定规模；支付以刷卡 55.09%、消费码 34.91%、线上 10.00% 为主。赛迪午餐占 62.92%、早餐 28.15%，支付高度集中在消费码 84.43%。机场需要多餐段、多支付链路保障；赛迪应重点守住工作日午餐和消费码链路。"
      },
      {
        "id": "meal-chart-block",
        "type": "chart",
        "chartId": "meal-share"
      },
      {
        "id": "payment-table-block",
        "type": "table",
        "tableId": "payment-table"
      },
      {
        "id": "concentration-table-block",
        "type": "table",
        "tableId": "concentration-table"
      },
      {
        "id": "restaurants-table-block",
        "type": "table",
        "tableId": "restaurants-table"
      },
      {
        "id": "secondary-finding",
        "type": "markdown",
        "sourceId": "feature-source",
        "body": "## 订单之外，长期真实使用集中在报表、退款、卡片和规则控制\n\n机场上线以来累计报表导出 1,379 次，其中消费订单导出 1,177 次；全部导出记录仅涉及 1 位操作者。另有退款申请 1,473 条、实体卡 11,016 条。后台管理需求明确，但操作人集中度需要确认是否符合岗位与权限设计。\n\n赛迪上线以来累计实体卡 2,180 条、安全审计 1,347 条、消费限额拦截 210 次、取餐流程 257 条。取餐记录全部停留在 `prepare_status=10`（备餐中）；这是累计范围内的流程闭环问题，不只是最近30天现象。"
      },
      {
        "id": "feature-signals-block",
        "type": "table",
        "tableId": "feature-signals-table"
      },
      {
        "id": "management-table-block",
        "type": "table",
        "tableId": "management-table"
      },
      {
        "id": "zero-use-finding",
        "type": "markdown",
        "sourceId": "feature-source",
        "body": "## 已部署不等于已使用：营养健康与 AI 上线以来仍未形成可见闭环\n\n在本次核查的业务表中，两个项目上线以来均未见 AI 营养对话、餐单预约、签到打卡或线上充值记录；赛迪的健康测量、健康数据、称重设备、采购、账单缴费、取餐柜和售货机也为 0。赛迪历史仅有 7 条人脸记录，但订单中没有刷脸支付。\n\n**解释边界：** 这只能说明指定业务表没有记录。生产库没有统一页面点击流，因此不能用 0 证明页面从未打开，也不能直接判断功能无价值。"
      },
      {
        "id": "zero-use-table-block",
        "type": "table",
        "tableId": "zero-use-table"
      },
      {
        "id": "recommendations",
        "type": "markdown",
        "body": "## 下一步建议\n\n1. **机场 P0：** 对消费机与外部订单接入建立按餐厅/设备的成功率、延迟、离线单、重复单、退款率与对账监控；将高频报表改为自动订阅或定时生成，降低单人操作依赖。\n2. **赛迪 P0：** 以消费机＋闸机为双核心，统一监控成功率、重复消费/通行、订单一致性和午餐高峰容量；线上订餐先验证目标用户与复购，再决定投入。\n3. **赛迪一周内核查：** 复盘累计 210 次限额拦截的规则分布，重点抽查近30天 95 次激增；核对 257 条取餐记录全部“备餐中”是业务设计、历史数据还是状态回写缺陷。\n4. **补统一埋点：** PC、小程序、H5 和设备统一记录 page_view、feature_action、success、fail，才能回答页面访问排行、点击后失败和功能漏斗。\n5. **以后所有项目统一口径：** 主看“上线以来累计使用”，再辅以近30天活跃度、环比和异常变化；不要用近期窗口替代项目全生命周期结论。"
      },
      {
        "id": "caveats",
        "type": "markdown",
        "sourceId": "quality-source",
        "body": "## 口径与限制\n\n- 主统计期：首都机场 2026-01-20 至 2026-08-03；赛迪 2026-01-18 至 2026-08-03。起点均为首个有效订单日。\n- 近期辅助窗口：近30天 2026-07-05 至 2026-08-03；前30天 2026-06-05 至 2026-07-04；时区 Asia/Shanghai。\n- 核心订单按 `meal_date` 统计，必须已支付、已完成、未删除、用户 ID 有效；2026-08-04 当日未纳入。\n- 月度图中首月和2026年8月均为不完整月，不能与整月直接比较。\n- 订单流水不等于收入、回款、合同额或毛利；未来用餐订单可能是正常预约，不自动判为异常。\n- 本报告能回答“哪些功能产生了数据库业务记录”，不能完整回答“哪些页面被打开最多”。"
      }
    ]
  },
  "snapshot": {
    "version": 1,
    "generatedAt": "2026-08-04T19:18:25+08:00",
    "status": "ready",
    "datasets": {
      "headline_metrics": [
        {
          "project_key": "airport",
          "project": "首都机场",
          "orders": 895908,
          "recent_orders_delta": 0.042950835840031454,
          "active_users": 8039,
          "orders_per_user": 111.45,
          "amount": 19427756.77,
          "avg_order_value": 21.68,
          "launch_date": "2026-01-20"
        },
        {
          "project_key": "saidi",
          "project": "赛迪物业",
          "orders": 145955,
          "recent_orders_delta": 0.13009437555546155,
          "active_users": 3677,
          "orders_per_user": 39.69,
          "amount": 2683422.08,
          "avg_order_value": 18.39,
          "launch_date": "2026-01-18"
        }
      ],
      "channel_comparison": [
        {
          "project": "首都机场",
          "channel": "消费机",
          "project_channel": "首都机场｜消费机",
          "lifetime_orders": 801171,
          "lifetime_active_users": 7879,
          "lifetime_amount": 14675748.98,
          "lifetime_share": 0.894256,
          "current_30d_orders": 131971,
          "previous_30d_orders": 126339,
          "recent_delta": 0.04457847537181703
        },
        {
          "project": "首都机场",
          "channel": "外部订单接入",
          "project_channel": "首都机场｜外部订单接入",
          "lifetime_orders": 94737,
          "lifetime_active_users": 3452,
          "lifetime_amount": 4752007.79,
          "lifetime_share": 0.105744,
          "current_30d_orders": 16079,
          "previous_30d_orders": 15614,
          "recent_delta": 0.029780965799923065
        },
        {
          "project": "赛迪物业",
          "channel": "消费机",
          "project_channel": "赛迪物业｜消费机",
          "lifetime_orders": 118350,
          "lifetime_active_users": 2131,
          "lifetime_amount": 1751612.08,
          "lifetime_share": 0.810866,
          "current_30d_orders": 20076,
          "previous_30d_orders": 18019,
          "recent_delta": 0.11415727842832557
        },
        {
          "project": "赛迪物业",
          "channel": "闸机",
          "project_channel": "赛迪物业｜闸机",
          "lifetime_orders": 27074,
          "lifetime_active_users": 2016,
          "lifetime_amount": 812220,
          "lifetime_share": 0.185496,
          "current_30d_orders": 6529,
          "previous_30d_orders": 5508,
          "recent_delta": 0.18536673928830782
        },
        {
          "project": "赛迪物业",
          "channel": "线上订餐",
          "project_channel": "赛迪物业｜线上订餐",
          "lifetime_orders": 531,
          "lifetime_active_users": 142,
          "lifetime_amount": 119590,
          "lifetime_share": 0.003638,
          "current_30d_orders": 98,
          "previous_30d_orders": 102,
          "recent_delta": -0.039215686274509776
        }
      ],
      "lifetime_channel_share": [
        {
          "project": "首都机场",
          "channel": "消费机",
          "project_channel": "首都机场｜消费机",
          "orders": 801171,
          "active_users": 7879,
          "amount": 14675748.98,
          "order_share": 0.894256
        },
        {
          "project": "首都机场",
          "channel": "外部订单接入",
          "project_channel": "首都机场｜外部订单接入",
          "orders": 94737,
          "active_users": 3452,
          "amount": 4752007.79,
          "order_share": 0.105744
        },
        {
          "project": "赛迪物业",
          "channel": "消费机",
          "project_channel": "赛迪物业｜消费机",
          "orders": 118350,
          "active_users": 2131,
          "amount": 1751612.08,
          "order_share": 0.810866
        },
        {
          "project": "赛迪物业",
          "channel": "闸机",
          "project_channel": "赛迪物业｜闸机",
          "orders": 27074,
          "active_users": 2016,
          "amount": 812220,
          "order_share": 0.185496
        },
        {
          "project": "赛迪物业",
          "channel": "线上订餐",
          "project_channel": "赛迪物业｜线上订餐",
          "orders": 531,
          "active_users": 142,
          "amount": 119590,
          "order_share": 0.003638
        }
      ],
      "lifetime_payment_mix": [
        {
          "project": "首都机场",
          "payment": "刷卡",
          "orders": 493571,
          "active_users": 6450,
          "amount": 9353818.54,
          "order_share": 0.550917
        },
        {
          "project": "首都机场",
          "payment": "消费码",
          "orders": 312762,
          "active_users": 6029,
          "amount": 5708509.9,
          "order_share": 0.349101
        },
        {
          "project": "首都机场",
          "payment": "线上支付",
          "orders": 89575,
          "active_users": 3389,
          "amount": 4365428.33,
          "order_share": 0.099982
        },
        {
          "project": "赛迪物业",
          "payment": "消费码",
          "orders": 123234,
          "active_users": 1916,
          "amount": 1909722.87,
          "order_share": 0.844329
        },
        {
          "project": "赛迪物业",
          "payment": "刷卡",
          "orders": 22190,
          "active_users": 1749,
          "amount": 654109.21,
          "order_share": 0.152033
        },
        {
          "project": "赛迪物业",
          "payment": "线上支付",
          "orders": 531,
          "active_users": 142,
          "amount": 119590,
          "order_share": 0.003638
        }
      ],
      "lifetime_meal_mix": [
        {
          "project": "首都机场",
          "meal": "午餐",
          "project_meal": "首都机场｜午餐",
          "orders": 441395,
          "active_users": 7720,
          "amount": 10495835.13,
          "order_share": 0.492679
        },
        {
          "project": "首都机场",
          "meal": "早餐",
          "project_meal": "首都机场｜早餐",
          "orders": 298199,
          "active_users": 7165,
          "amount": 4048397.12,
          "order_share": 0.332846
        },
        {
          "project": "首都机场",
          "meal": "晚餐",
          "project_meal": "首都机场｜晚餐",
          "orders": 156314,
          "active_users": 6697,
          "amount": 4883524.52,
          "order_share": 0.174476
        },
        {
          "project": "赛迪物业",
          "meal": "午餐",
          "project_meal": "赛迪物业｜午餐",
          "orders": 91834,
          "active_users": 3545,
          "amount": 1786126.51,
          "order_share": 0.629194
        },
        {
          "project": "赛迪物业",
          "meal": "早餐",
          "project_meal": "赛迪物业｜早餐",
          "orders": 41082,
          "active_users": 2720,
          "amount": 523347.18,
          "order_share": 0.28147
        },
        {
          "project": "赛迪物业",
          "meal": "晚餐",
          "project_meal": "赛迪物业｜晚餐",
          "orders": 12949,
          "active_users": 2300,
          "amount": 371440.39,
          "order_share": 0.088719
        },
        {
          "project": "赛迪物业",
          "meal": "夜宵",
          "project_meal": "赛迪物业｜夜宵",
          "orders": 90,
          "active_users": 71,
          "amount": 2508,
          "order_share": 0.000617
        }
      ],
      "monthly_airport": [
        {
          "project_key": "airport",
          "project_name": "首都机场智慧营养健康餐厅",
          "month": "2026-01",
          "orders": 35211,
          "active_users": 5874,
          "amount": 893407.65,
          "month_date": "2026-01-01"
        },
        {
          "project_key": "airport",
          "project_name": "首都机场智慧营养健康餐厅",
          "month": "2026-02",
          "orders": 113778,
          "active_users": 6729,
          "amount": 3146302.51,
          "month_date": "2026-02-01"
        },
        {
          "project_key": "airport",
          "project_name": "首都机场智慧营养健康餐厅",
          "month": "2026-03",
          "orders": 146993,
          "active_users": 6858,
          "amount": 2912758.28,
          "month_date": "2026-03-01"
        },
        {
          "project_key": "airport",
          "project_name": "首都机场智慧营养健康餐厅",
          "month": "2026-04",
          "orders": 143318,
          "active_users": 6895,
          "amount": 3018659.55,
          "month_date": "2026-04-01"
        },
        {
          "project_key": "airport",
          "project_name": "首都机场智慧营养健康餐厅",
          "month": "2026-05",
          "orders": 141920,
          "active_users": 7045,
          "amount": 2936012.76,
          "month_date": "2026-05-01"
        },
        {
          "project_key": "airport",
          "project_name": "首都机场智慧营养健康餐厅",
          "month": "2026-06",
          "orders": 145775,
          "active_users": 7116,
          "amount": 2994927.09,
          "month_date": "2026-06-01"
        },
        {
          "project_key": "airport",
          "project_name": "首都机场智慧营养健康餐厅",
          "month": "2026-07",
          "orders": 158087,
          "active_users": 7137,
          "amount": 3289632.41,
          "month_date": "2026-07-01"
        },
        {
          "project_key": "airport",
          "project_name": "首都机场智慧营养健康餐厅",
          "month": "2026-08",
          "orders": 10826,
          "active_users": 4840,
          "amount": 236056.52,
          "month_date": "2026-08-01"
        }
      ],
      "monthly_saidi": [
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "month": "2026-01",
          "orders": 10920,
          "active_users": 1440,
          "amount": 183934.96,
          "month_date": "2026-01-01"
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "month": "2026-02",
          "orders": 10659,
          "active_users": 1422,
          "amount": 173569.76,
          "month_date": "2026-02-01"
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "month": "2026-03",
          "orders": 22091,
          "active_users": 1707,
          "amount": 375723.41,
          "month_date": "2026-03-01"
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "month": "2026-04",
          "orders": 24313,
          "active_users": 1991,
          "amount": 490185.43,
          "month_date": "2026-04-01"
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "month": "2026-05",
          "orders": 22213,
          "active_users": 1609,
          "amount": 425859.08,
          "month_date": "2026-05-01"
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "month": "2026-06",
          "orders": 25713,
          "active_users": 1668,
          "amount": 483730.7,
          "month_date": "2026-06-01"
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "month": "2026-07",
          "orders": 28813,
          "active_users": 1845,
          "amount": 529415.44,
          "month_date": "2026-07-01"
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "month": "2026-08",
          "orders": 1233,
          "active_users": 803,
          "amount": 21003.3,
          "month_date": "2026-08-01"
        }
      ],
      "concentration": [
        {
          "project": "首都机场",
          "high_frequency_user_share": 0.845503172036323,
          "high_frequency_order_share": 0.9886015081905731,
          "top3_restaurant_share": 0.38612000339320557,
          "weekend_order_share": 0.14528500694267715
        },
        {
          "project": "赛迪物业",
          "high_frequency_user_share": 0.37856948599401685,
          "high_frequency_order_share": 0.8747353636394779,
          "top3_restaurant_share": 0.9198794148881505,
          "weekend_order_share": 0.025507862012264054
        }
      ],
      "top_restaurants": [
        {
          "project": "首都机场",
          "rank": 1,
          "restaurant": "大餐线1",
          "orders": 154356,
          "active_users": 3751,
          "amount": 1541871.17,
          "order_share": 0.17229
        },
        {
          "project": "首都机场",
          "rank": 2,
          "restaurant": "BGS食堂设备1",
          "orders": 96999,
          "active_users": 1992,
          "amount": 2408713.69,
          "order_share": 0.108269
        },
        {
          "project": "首都机场",
          "rank": 3,
          "restaurant": "美食登机牌",
          "orders": 94573,
          "active_users": 3448,
          "amount": 4730375.92,
          "order_share": 0.105561
        },
        {
          "project": "首都机场",
          "rank": 4,
          "restaurant": "小卖部",
          "orders": 80061,
          "active_users": 3781,
          "amount": 2646447.24,
          "order_share": 0.089363
        },
        {
          "project": "首都机场",
          "rank": 5,
          "restaurant": "大餐线2",
          "orders": 72063,
          "active_users": 3109,
          "amount": 567696.89,
          "order_share": 0.080436
        },
        {
          "project": "赛迪物业",
          "rank": 1,
          "restaurant": "大厦-零点",
          "orders": 63026,
          "active_users": 1131,
          "amount": 831825.72,
          "order_share": 0.431818
        },
        {
          "project": "赛迪物业",
          "rank": 2,
          "restaurant": "员工餐厅-份菜档口",
          "orders": 38944,
          "active_users": 1068,
          "amount": 588889.49,
          "order_share": 0.266822
        },
        {
          "project": "赛迪物业",
          "rank": 3,
          "restaurant": "诚园餐厅",
          "orders": 32291,
          "active_users": 2281,
          "amount": 924172.01,
          "order_share": 0.221239
        },
        {
          "project": "赛迪物业",
          "rank": 4,
          "restaurant": "员工餐厅-风味档口",
          "orders": 7248,
          "active_users": 777,
          "amount": 112822.66,
          "order_share": 0.049659
        },
        {
          "project": "赛迪物业",
          "rank": 5,
          "restaurant": "大厦-自助",
          "orders": 3915,
          "active_users": 542,
          "amount": 106122.2,
          "order_share": 0.026823
        }
      ],
      "feature_signals": [
        {
          "project": "首都机场",
          "feature": "退款申请",
          "evidence_type": "主动业务动作",
          "lifetime_records": 1473,
          "lifetime_distinct_actors": 958,
          "current_30d_records": 187,
          "previous_30d_records": 228,
          "recent_delta": -0.17982456140350878,
          "source_table": "ydy_meal_order_refund"
        },
        {
          "project": "首都机场",
          "feature": "就餐评价",
          "evidence_type": "主动业务动作",
          "lifetime_records": 72,
          "lifetime_distinct_actors": 50,
          "current_30d_records": 6,
          "previous_30d_records": 2,
          "recent_delta": 2.0,
          "source_table": "ydy_order_evaluate"
        },
        {
          "project": "首都机场",
          "feature": "后台报表导出",
          "evidence_type": "主动业务动作",
          "lifetime_records": 1379,
          "lifetime_distinct_actors": 1,
          "current_30d_records": 192,
          "previous_30d_records": 132,
          "recent_delta": 0.4545454545454546,
          "source_table": "ydy_export_log"
        },
        {
          "project": "首都机场",
          "feature": "消费限额拦截",
          "evidence_type": "规则触发记录",
          "lifetime_records": 23,
          "lifetime_distinct_actors": 8,
          "current_30d_records": 0,
          "previous_30d_records": 0,
          "recent_delta": null,
          "source_table": "ydy_consume_limit_block_log"
        },
        {
          "project": "首都机场",
          "feature": "实体卡建档",
          "evidence_type": "配置/建档",
          "lifetime_records": 11016,
          "lifetime_distinct_actors": 9170,
          "current_30d_records": 85,
          "previous_30d_records": 101,
          "recent_delta": -0.15841584158415845,
          "source_table": "ydy_staff_card"
        },
        {
          "project": "赛迪物业",
          "feature": "退款申请",
          "evidence_type": "主动业务动作",
          "lifetime_records": 114,
          "lifetime_distinct_actors": 65,
          "current_30d_records": 3,
          "previous_30d_records": 2,
          "recent_delta": 0.5,
          "source_table": "ydy_meal_order_refund"
        },
        {
          "project": "赛迪物业",
          "feature": "订餐取餐流程",
          "evidence_type": "业务流程记录",
          "lifetime_records": 257,
          "lifetime_distinct_actors": 0,
          "current_30d_records": 98,
          "previous_30d_records": 102,
          "recent_delta": -0.039215686274509776,
          "source_table": "ydy_meal_order_pickup"
        },
        {
          "project": "赛迪物业",
          "feature": "后台报表导出",
          "evidence_type": "主动业务动作",
          "lifetime_records": 129,
          "lifetime_distinct_actors": 8,
          "current_30d_records": 10,
          "previous_30d_records": 18,
          "recent_delta": -0.4444444444444444,
          "source_table": "ydy_export_log"
        },
        {
          "project": "赛迪物业",
          "feature": "消费限额拦截",
          "evidence_type": "规则触发记录",
          "lifetime_records": 210,
          "lifetime_distinct_actors": 113,
          "current_30d_records": 95,
          "previous_30d_records": 21,
          "recent_delta": 3.5238095238095237,
          "source_table": "ydy_consume_limit_block_log"
        },
        {
          "project": "赛迪物业",
          "feature": "后台安全审计操作",
          "evidence_type": "业务流程记录",
          "lifetime_records": 1347,
          "lifetime_distinct_actors": 15,
          "current_30d_records": 547,
          "previous_30d_records": 436,
          "recent_delta": 0.25458715596330284,
          "source_table": "ydy_security_audit_log"
        },
        {
          "project": "赛迪物业",
          "feature": "实体卡建档",
          "evidence_type": "配置/建档",
          "lifetime_records": 2180,
          "lifetime_distinct_actors": 2059,
          "current_30d_records": 486,
          "previous_30d_records": 283,
          "recent_delta": 0.7173144876325088,
          "source_table": "ydy_staff_card"
        },
        {
          "project": "赛迪物业",
          "feature": "人脸建档",
          "evidence_type": "配置/建档",
          "lifetime_records": 7,
          "lifetime_distinct_actors": 7,
          "current_30d_records": 0,
          "previous_30d_records": 0,
          "recent_delta": null,
          "source_table": "ydy_staff_face"
        }
      ],
      "zero_use_features": [
        {
          "project": "首都机场",
          "feature": "餐单预约",
          "evidence_type": "主动业务动作",
          "lifetime_records": 0,
          "lifetime_distinct_actors": 0,
          "current_30d_records": 0,
          "previous_30d_records": 0,
          "recent_delta": null,
          "source_table": "ydy_menus_subscribe"
        },
        {
          "project": "首都机场",
          "feature": "就餐考勤",
          "evidence_type": "业务流程记录",
          "lifetime_records": 0,
          "lifetime_distinct_actors": 0,
          "current_30d_records": 0,
          "previous_30d_records": 0,
          "recent_delta": null,
          "source_table": "ydy_menus_attendance"
        },
        {
          "project": "首都机场",
          "feature": "线上充值",
          "evidence_type": "主动业务动作",
          "lifetime_records": 0,
          "lifetime_distinct_actors": 0,
          "current_30d_records": 0,
          "previous_30d_records": 0,
          "recent_delta": null,
          "source_table": "ydy_recharge_order"
        },
        {
          "project": "首都机场",
          "feature": "AI 营养对话",
          "evidence_type": "主动业务动作",
          "lifetime_records": 0,
          "lifetime_distinct_actors": 0,
          "current_30d_records": 0,
          "previous_30d_records": 0,
          "recent_delta": null,
          "source_table": "ydy_ai_conversation"
        },
        {
          "project": "首都机场",
          "feature": "签到打卡",
          "evidence_type": "主动业务动作",
          "lifetime_records": 0,
          "lifetime_distinct_actors": 0,
          "current_30d_records": 0,
          "previous_30d_records": 0,
          "recent_delta": null,
          "source_table": "ydy_sign_daka"
        },
        {
          "project": "首都机场",
          "feature": "采购单",
          "evidence_type": "主动业务动作",
          "lifetime_records": 0,
          "lifetime_distinct_actors": 0,
          "current_30d_records": 0,
          "previous_30d_records": 0,
          "recent_delta": null,
          "source_table": "ydy_purchase"
        },
        {
          "project": "赛迪物业",
          "feature": "餐单预约",
          "evidence_type": "主动业务动作",
          "lifetime_records": 0,
          "lifetime_distinct_actors": 0,
          "current_30d_records": 0,
          "previous_30d_records": 0,
          "recent_delta": null,
          "source_table": "ydy_menus_subscribe"
        },
        {
          "project": "赛迪物业",
          "feature": "就餐考勤",
          "evidence_type": "业务流程记录",
          "lifetime_records": 0,
          "lifetime_distinct_actors": 0,
          "current_30d_records": 0,
          "previous_30d_records": 0,
          "recent_delta": null,
          "source_table": "ydy_menus_attendance"
        },
        {
          "project": "赛迪物业",
          "feature": "线上充值",
          "evidence_type": "主动业务动作",
          "lifetime_records": 0,
          "lifetime_distinct_actors": 0,
          "current_30d_records": 0,
          "previous_30d_records": 0,
          "recent_delta": null,
          "source_table": "ydy_recharge_order"
        },
        {
          "project": "赛迪物业",
          "feature": "AI 营养对话",
          "evidence_type": "主动业务动作",
          "lifetime_records": 0,
          "lifetime_distinct_actors": 0,
          "current_30d_records": 0,
          "previous_30d_records": 0,
          "recent_delta": null,
          "source_table": "ydy_ai_conversation"
        },
        {
          "project": "赛迪物业",
          "feature": "健康测量会话",
          "evidence_type": "主动业务动作",
          "lifetime_records": 0,
          "lifetime_distinct_actors": 0,
          "current_30d_records": 0,
          "previous_30d_records": 0,
          "recent_delta": null,
          "source_table": "ydy_measurement_session"
        },
        {
          "project": "赛迪物业",
          "feature": "健康数据记录",
          "evidence_type": "业务流程记录",
          "lifetime_records": 0,
          "lifetime_distinct_actors": 0,
          "current_30d_records": 0,
          "previous_30d_records": 0,
          "recent_delta": null,
          "source_table": "ydy_health_record"
        },
        {
          "project": "赛迪物业",
          "feature": "签到打卡",
          "evidence_type": "主动业务动作",
          "lifetime_records": 0,
          "lifetime_distinct_actors": 0,
          "current_30d_records": 0,
          "previous_30d_records": 0,
          "recent_delta": null,
          "source_table": "ydy_sign_daka"
        },
        {
          "project": "赛迪物业",
          "feature": "称重设备事件",
          "evidence_type": "业务流程记录",
          "lifetime_records": 0,
          "lifetime_distinct_actors": 0,
          "current_30d_records": 0,
          "previous_30d_records": 0,
          "recent_delta": null,
          "source_table": "ydy_device_weight_event"
        },
        {
          "project": "赛迪物业",
          "feature": "采购单",
          "evidence_type": "主动业务动作",
          "lifetime_records": 0,
          "lifetime_distinct_actors": 0,
          "current_30d_records": 0,
          "previous_30d_records": 0,
          "recent_delta": null,
          "source_table": "ydy_purchase"
        },
        {
          "project": "赛迪物业",
          "feature": "账单缴费",
          "evidence_type": "主动业务动作",
          "lifetime_records": 0,
          "lifetime_distinct_actors": 0,
          "current_30d_records": 0,
          "previous_30d_records": 0,
          "recent_delta": null,
          "source_table": "ydy_billing_record"
        }
      ],
      "management_activity": [
        {
          "project_key": "airport",
          "project_name": "首都机场智慧营养健康餐厅",
          "period": "上线以来",
          "category": "报表导出",
          "activity": "消费订单导出",
          "result": "成功",
          "events": 1177,
          "distinct_operators": 1
        },
        {
          "project_key": "airport",
          "project_name": "首都机场智慧营养健康餐厅",
          "period": "上线以来",
          "category": "报表导出",
          "activity": "补贴统计",
          "result": "成功",
          "events": 103,
          "distinct_operators": 1
        },
        {
          "project_key": "airport",
          "project_name": "首都机场智慧营养健康餐厅",
          "period": "上线以来",
          "category": "报表导出",
          "activity": "充值统计",
          "result": "成功",
          "events": 61,
          "distinct_operators": 1
        },
        {
          "project_key": "airport",
          "project_name": "首都机场智慧营养健康餐厅",
          "period": "上线以来",
          "category": "报表导出",
          "activity": "人员消费报表",
          "result": "成功",
          "events": 24,
          "distinct_operators": 1
        },
        {
          "project_key": "airport",
          "project_name": "首都机场智慧营养健康餐厅",
          "period": "上线以来",
          "category": "报表导出",
          "activity": "消费订单导出",
          "result": "状态4",
          "events": 10,
          "distinct_operators": 1
        },
        {
          "project_key": "airport",
          "project_name": "首都机场智慧营养健康餐厅",
          "period": "上线以来",
          "category": "报表导出",
          "activity": "设备消费报表",
          "result": "成功",
          "events": 8,
          "distinct_operators": 1
        },
        {
          "project_key": "airport",
          "project_name": "首都机场智慧营养健康餐厅",
          "period": "上线以来",
          "category": "报表导出",
          "activity": "现金退款",
          "result": "成功",
          "events": 5,
          "distinct_operators": 1
        },
        {
          "project_key": "airport",
          "project_name": "首都机场智慧营养健康餐厅",
          "period": "上线以来",
          "category": "报表导出",
          "activity": "部门消费报表",
          "result": "成功",
          "events": 1,
          "distinct_operators": 1
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "period": "上线以来",
          "category": "报表导出",
          "activity": "消费订单导出",
          "result": "成功",
          "events": 115,
          "distinct_operators": 6
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "period": "上线以来",
          "category": "报表导出",
          "activity": "人员消费报表",
          "result": "成功",
          "events": 10,
          "distinct_operators": 4
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "period": "上线以来",
          "category": "报表导出",
          "activity": "消费订单导出",
          "result": "状态4",
          "events": 2,
          "distinct_operators": 1
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "period": "上线以来",
          "category": "报表导出",
          "activity": "设备消费报表",
          "result": "成功",
          "events": 2,
          "distinct_operators": 1
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "period": "上线以来",
          "category": "报表导出",
          "activity": "部门消费报表",
          "result": "成功",
          "events": 1,
          "distinct_operators": 1
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "period": "上线以来",
          "category": "报表导出",
          "activity": "菜品销量统计",
          "result": "成功",
          "events": 1,
          "distinct_operators": 1
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "period": "上线以来",
          "category": "审计:auth",
          "activity": "login",
          "result": "success",
          "events": 970,
          "distinct_operators": 1
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "period": "上线以来",
          "category": "审计:auth",
          "activity": "logout",
          "result": "success",
          "events": 193,
          "distinct_operators": 14
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "period": "上线以来",
          "category": "审计:auth",
          "activity": "login",
          "result": "fail",
          "events": 168,
          "distinct_operators": 1
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "period": "上线以来",
          "category": "审计:meal_order",
          "activity": "refundAgree",
          "result": "success",
          "events": 7,
          "distinct_operators": 1
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "period": "上线以来",
          "category": "审计:meal_order",
          "activity": "refund",
          "result": "success",
          "events": 7,
          "distinct_operators": 1
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "period": "上线以来",
          "category": "审计:auth",
          "activity": "change_expired_pwd",
          "result": "success",
          "events": 2,
          "distinct_operators": 1
        }
      ],
      "data_quality": [
        {
          "project_key": "airport",
          "project_name": "首都机场智慧营养健康餐厅",
          "rows": 901949,
          "distinct_ids": 901949,
          "distinct_order_numbers": 901949,
          "missing_user_orders": 0,
          "future_meal_orders": 6041,
          "not_paid": 0,
          "not_completed": 0,
          "deleted": 0,
          "first_meal_date": "2026-01-20",
          "last_meal_date": "2026-08-04",
          "period": "",
          "quality_check": "",
          "prepare_status": "",
          "records": ""
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "rows": 147141,
          "distinct_ids": 147141,
          "distinct_order_numbers": 147141,
          "missing_user_orders": 0,
          "future_meal_orders": 1120,
          "not_paid": 66,
          "not_completed": 66,
          "deleted": 0,
          "first_meal_date": "2026-01-18",
          "last_meal_date": "2026-08-07",
          "period": "",
          "quality_check": "",
          "prepare_status": "",
          "records": ""
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "rows": "",
          "distinct_ids": "",
          "distinct_order_numbers": "",
          "missing_user_orders": "",
          "future_meal_orders": "",
          "not_paid": "",
          "not_completed": "",
          "deleted": "",
          "first_meal_date": "",
          "last_meal_date": "",
          "period": "上线以来",
          "quality_check": "取餐流程状态",
          "prepare_status": 10,
          "records": 257
        },
        {
          "project_key": "saidi",
          "project_name": "北京赛迪物业智慧营养健康餐厅",
          "rows": "",
          "distinct_ids": "",
          "distinct_order_numbers": "",
          "missing_user_orders": "",
          "future_meal_orders": "",
          "not_paid": "",
          "not_completed": "",
          "deleted": "",
          "first_meal_date": "",
          "last_meal_date": "",
          "period": "近30天",
          "quality_check": "取餐流程状态",
          "prepare_status": 10,
          "records": 98
        }
      ]
    }
  },
  "sources": [
    {
      "id": "orders-source",
      "label": "生产库只读聚合：上线以来有效订单",
      "path": "analyze_feature_usage.py",
      "query": {
        "engine": "MySQL",
        "description": "两个项目自首个有效订单日起的订单、渠道、支付、餐段、餐厅、频次与月趋势聚合。",
        "executed_at": "2026-08-04T19:18:25+08:00",
        "language": "SQL",
        "sql": "-- 分别在 zhct_jc_new 与 zhct_saidi 的只读连接执行\nSELECT MIN(meal_date) AS observable_launch_date\nFROM ydy_meal_order\nWHERE pay_status=20 AND order_status=30 AND is_delete=0 AND user_id>0;\n\nSELECT COUNT(*) AS orders, ROUND(SUM(total_price),2) AS amount,\n       COUNT(DISTINCT user_id) AS active_users, COUNT(DISTINCT meal_date) AS active_days\nFROM ydy_meal_order\nWHERE pay_status=20 AND order_status=30 AND is_delete=0 AND user_id>0\n  AND meal_date BETWEEN :observable_launch_date AND '2026-08-03';",
        "tables_used": [
          "zhct_jc_new.ydy_meal_order",
          "zhct_saidi.ydy_meal_order",
          "ydy_restaurants"
        ],
        "filters": [
          "首都机场：2026-01-20 至 2026-08-03；赛迪：2026-01-18 至 2026-08-03",
          "pay_status=20；order_status=30；is_delete=0；user_id>0",
          "近30天与前30天仅用于辅助趋势，不作为主规模口径"
        ],
        "metric_definitions": [
          "可观察上线起点：生产订单库中首个满足有效订单条件的 meal_date；不等同于合同上线或验收日期。",
          "有效订单：满足支付、完成、未删除和有效用户条件的订单记录数。",
          "订单流水：有效订单 total_price 合计，不等于收入、回款或毛利。"
        ]
      }
    },
    {
      "id": "feature-source",
      "label": "生产库只读聚合：上线以来功能行为与管理操作",
      "path": "feature_activity.csv",
      "query": {
        "engine": "MySQL",
        "description": "退款、评价、取餐、报表、审计、卡片、消费限额及健康相关业务表的上线以来聚合。",
        "executed_at": "2026-08-04T19:18:25+08:00",
        "language": "SQL",
        "sql": "-- 各业务表使用项目可观察上线起点至 2026-08-03 的业务日期或创建时间聚合\nSELECT COUNT(*) FROM ydy_export_log WHERE status=1 AND create_time BETWEEN :start AND :end;\nSELECT COUNT(*) FROM ydy_consume_limit_block_log WHERE consume_time BETWEEN :start AND :end;\nSELECT prepare_status, COUNT(*) FROM ydy_meal_order_pickup\nWHERE meal_date BETWEEN :start AND :end GROUP BY prepare_status;",
        "tables_used": [
          "ydy_ai_conversation",
          "ydy_billing_record",
          "ydy_consume_limit_block_log",
          "ydy_device_weight_event",
          "ydy_export_log",
          "ydy_health_record",
          "ydy_locker_pickup_api_log",
          "ydy_meal_order_pickup",
          "ydy_meal_order_refund",
          "ydy_measurement_session",
          "ydy_menus_attendance",
          "ydy_menus_subscribe",
          "ydy_order_evaluate",
          "ydy_purchase",
          "ydy_recharge_order",
          "ydy_security_audit_log",
          "ydy_sign_daka",
          "ydy_staff_card",
          "ydy_staff_face",
          "ydy_vending_shipment_result"
        ],
        "filters": [
          "仅保存项目级聚合；未导出人员、手机号、订单或日志明细"
        ],
        "metric_definitions": [
          "主动业务动作、流程记录、规则触发、配置/建档分开解释。",
          "记录数不等于页面访问人数；0 表示指定业务表无记录，不证明页面从未被打开。"
        ]
      }
    },
    {
      "id": "quality-source",
      "label": "生产库只读聚合：数据质量检查",
      "path": "data_quality.csv",
      "query": {
        "engine": "MySQL",
        "description": "订单键唯一性、未来用餐日期、状态完整性和取餐流程状态检查。",
        "executed_at": "2026-08-04T19:18:25+08:00",
        "language": "SQL",
        "sql": "SELECT COUNT(*) AS rows, COUNT(DISTINCT id), COUNT(DISTINCT order_no),\nSUM(user_id=0), SUM(meal_date>'2026-08-03'), SUM(pay_status<>20),\nSUM(order_status<>30), SUM(is_delete<>0), MIN(meal_date), MAX(meal_date)\nFROM ydy_meal_order;",
        "tables_used": [
          "zhct_jc_new.ydy_meal_order",
          "zhct_saidi.ydy_meal_order",
          "zhct_saidi.ydy_meal_order_pickup"
        ],
        "filters": [
          "报告截止日 2026-08-03；未来用餐订单不计入累计完成量"
        ],
        "metric_definitions": [
          "未来用餐订单可能是正常预约，不自动标记为错误。"
        ]
      }
    }
  ]
}