chore: 清理旧版本文件,只保留Python Flask版本
删除的文件: - Node.js相关文件:.babelrc, .coze, .next, .npmrc, node_modules, src/, scripts/, components.json, eslint.config.mjs, next-env.d.ts, next.config.ts, package.json, pnpm-lock.yaml, postcss.config.mjs, tsconfig.json, tsconfig.tsbuildinfo - 旧文档:AGENTS.md, WINDOWS_GUIDE.md - 测试文件:check_*.py, fix_database.py, force_rebuild.py, test_*.py - 诊断文档:修复下载问题.md, 如何找到生成的日报.md, 最终诊断指南.md, 查看调试日志.md, 诊断指南.md, 问题已定位.md - 截图文件:assets/image*.png 保留的文件: - app.py - Flask主应用 - lib/ - Python业务逻辑模块 - templates/ - HTML模板 - public/reports/ - Excel文件存储 - requirements.txt - Python依赖 - README.md - 更新为Python版本说明 - assets/t_equipment_charge_order.sql - 数据库表结构 现在项目结构清晰,只包含Python Flask版本的核心文件。 Coze-Commit-Type: user Coze-User-ID: 3722323274763196 Coze-Conversation-ID: 9894087
This commit is contained in:
@@ -1,51 +0,0 @@
|
||||
"""
|
||||
检查历史记录中的文件路径
|
||||
"""
|
||||
from lib.db import execute_query
|
||||
|
||||
print("=" * 60)
|
||||
print("检查历史记录中的文件路径")
|
||||
print("=" * 60)
|
||||
|
||||
try:
|
||||
result = execute_query("""
|
||||
SELECT
|
||||
id,
|
||||
report_date,
|
||||
split_value,
|
||||
total_orders,
|
||||
status,
|
||||
file_path,
|
||||
create_time
|
||||
FROM t_daily_report_history
|
||||
ORDER BY create_time DESC
|
||||
LIMIT 5
|
||||
""")
|
||||
|
||||
if not result:
|
||||
print("⚠ 历史记录表为空")
|
||||
else:
|
||||
print(f"\n找到 {len(result)} 条记录:\n")
|
||||
for item in result:
|
||||
print(f"ID: {item['id']}")
|
||||
print(f" 日期: {item['report_date']}")
|
||||
print(f" 拆分值: {item['split_value']}")
|
||||
print(f" 订单数: {item['total_orders']}")
|
||||
print(f" 状态: {'成功' if item['status'] == 1 else '失败'}")
|
||||
print(f" 文件路径: '{item['file_path']}'")
|
||||
print(f" 文件路径是否为空: {not item['file_path']}")
|
||||
print(f" 创建时间: {item['create_time']}")
|
||||
print("-" * 60)
|
||||
|
||||
# 检查文件是否存在
|
||||
if item['file_path']:
|
||||
import os
|
||||
full_path = os.path.join('public', item['file_path'])
|
||||
print(f" 完整路径: {full_path}")
|
||||
print(f" 文件是否存在: {os.path.exists(full_path)}")
|
||||
print()
|
||||
|
||||
except Exception as e:
|
||||
print(f"✗ 查询失败: {e}")
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
Reference in New Issue
Block a user