update Export Data Farmat
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user