feat(lzwcai_mcpskills_analyzeOrder): 添加MCP技能分析订单模块
- 创建基于MCP协议的SQL查询执行服务器 - 实现从businessQueries.json动态生成查询工具功能 - 支持中文工具名称自动转换为拼音 - 配置详细操作日志记录(仅输出到文件,不干扰MCP通信) - 添加订单延迟预警分析、工单进度跟踪、供应链风险预警等6个业务查询模板 - 提供完整的安装、使用和开发文档
This commit is contained in:
322
sql/fact_purchase_request.json
Normal file
322
sql/fact_purchase_request.json
Normal file
@@ -0,0 +1,322 @@
|
||||
[
|
||||
{
|
||||
"purchase_request_id": 1,
|
||||
"purchase_request_number": "PR74373407",
|
||||
"supplier_id": 3,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "9/9/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 40343.59,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 2,
|
||||
"purchase_request_number": "PR3197164",
|
||||
"supplier_id": 7,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "6/8/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 10282.5,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 3,
|
||||
"purchase_request_number": "PR25213757",
|
||||
"supplier_id": 9,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "6/12/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 30633.66,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 4,
|
||||
"purchase_request_number": "PR77290340",
|
||||
"supplier_id": 1,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "12/4/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 43069.26,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 5,
|
||||
"purchase_request_number": "PR4968719",
|
||||
"supplier_id": 5,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "3/12/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 12416.66,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 6,
|
||||
"purchase_request_number": "PR43870003",
|
||||
"supplier_id": 8,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "19/9/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 17904.11,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 7,
|
||||
"purchase_request_number": "PR29802771",
|
||||
"supplier_id": 8,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "6/2/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 12826.31,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 8,
|
||||
"purchase_request_number": "PR66861238",
|
||||
"supplier_id": 7,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "15/4/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 17490.41,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 9,
|
||||
"purchase_request_number": "PR1133525",
|
||||
"supplier_id": 5,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "25/1/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 22588.43,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 10,
|
||||
"purchase_request_number": "PR90232127",
|
||||
"supplier_id": 8,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "23/2/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 48310.07,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 11,
|
||||
"purchase_request_number": "PR87761304",
|
||||
"supplier_id": 10,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "30/9/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 9754.54,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 12,
|
||||
"purchase_request_number": "PR34707409",
|
||||
"supplier_id": 8,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "23/7/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 17262.64,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 13,
|
||||
"purchase_request_number": "PR88853692",
|
||||
"supplier_id": 5,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "29/10/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 29440.3,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 14,
|
||||
"purchase_request_number": "PR81818155",
|
||||
"supplier_id": 3,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "15/9/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 38365.41,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 15,
|
||||
"purchase_request_number": "PR68228246",
|
||||
"supplier_id": 2,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "27/1/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 36025.66,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 16,
|
||||
"purchase_request_number": "PR531304",
|
||||
"supplier_id": 7,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "23/1/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 21933.52,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 17,
|
||||
"purchase_request_number": "PR29567205",
|
||||
"supplier_id": 7,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "28/3/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 37543.26,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 18,
|
||||
"purchase_request_number": "PR21593197",
|
||||
"supplier_id": 10,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "24/1/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 34965.61,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 19,
|
||||
"purchase_request_number": "PR44612134",
|
||||
"supplier_id": 1,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "12/1/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 29549.23,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
},
|
||||
{
|
||||
"purchase_request_id": 20,
|
||||
"purchase_request_number": "PR11456222",
|
||||
"supplier_id": 4,
|
||||
"currency_code": null,
|
||||
"fx_rate": null,
|
||||
"doc_date_utc": "1/4/2025 16:00:00+00",
|
||||
"delivery_date_utc": null,
|
||||
"total_amount": 34575.02,
|
||||
"status": null,
|
||||
"related_order_number": null,
|
||||
"contract_number": null,
|
||||
"event_time_utc": "26/12/2025 05:36:10.-1f+00",
|
||||
"source_system": null,
|
||||
"last_updated_utc": "26/12/2025 05:36:10.-1f+00"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user