update Export Data Farmat

This commit is contained in:
2025-08-28 22:09:59 +08:00
parent debbf6e8c1
commit 41beb2ec33
4 changed files with 11 additions and 32 deletions

View File

@@ -45,11 +45,11 @@ class DataExporter:
field_names = [col['COLUMN_NAME'] for col in columns
if col['COLUMN_NAME'] not in ('id', 'update_time')]
# 查询数据
# 查询数据, 按照 avg_all 字段倒叙排列
data = db.execute_query(f"""
SELECT {', '.join(field_names)}
FROM {table_name}
ORDER BY stock_code
ORDER BY avg_all DESC
""")
if not data: