fix: 工单创建和飞书同步修复 + 日志精简

1. TSPAssistant.create_work_order 补齐 tenant_id 参数
2. workorder_sync._create_workorder 修复 SQLAlchemy session 泄漏(用 flush 替代 commit+refresh+expunge)
3. _find_existing_workorder 返回 order_id 字符串而非 ORM 对象
4. 飞书同步日志精简:
   - feishu_client API 请求/响应日志降为 DEBUG
   - flexible_field_mapper 字段映射日志降为 DEBUG
   - workorder_sync 字段转换日志降为 DEBUG
   - 只保留关键的创建/同步结果为 INFO
This commit is contained in:
2026-04-07 10:06:29 +08:00
parent 03aa5bd9dc
commit 4ac24d2413
17 changed files with 56 additions and 1260 deletions

View File

@@ -1,16 +1,37 @@
{
"api_timeout": 30,
"max_history": 10,
"refresh_interval": 10,
"auto_monitoring": true,
"agent_mode": true,
"api_provider": "openai",
"api_base_url": "",
"api_key": "",
"api_provider": "openai",
"api_timeout": 30,
"auto_monitoring": true,
"cpu_usage_percent": 0,
"current_server_port": 5000,
"current_websocket_port": 8765,
"log_level": "INFO",
"max_history": 10,
"memory_usage_percent": 70.9,
"model_max_tokens": 1000,
"model_name": "qwen-turbo",
"model_temperature": 0.7,
"model_max_tokens": 1000,
"refresh_interval": 10,
"server_port": 5000,
"uptime_seconds": 0,
"websocket_port": 8765,
"log_level": "INFO"
"modules": {
"dashboard": true,
"chat": true,
"knowledge": true,
"workorders": true,
"conversation-history": true,
"alerts": true,
"feishu-sync": true,
"agent": false,
"token-monitor": true,
"ai-monitor": true,
"analytics": true,
"system-optimizer": true,
"settings": true,
"tenant-management": true
}
}

Binary file not shown.