|
@@ -147,7 +147,7 @@ def get_process_dq(database):
|
|
|
:return:
|
|
|
"""
|
|
|
engine = create_database(database)
|
|
|
- sql_dq = "select C_ABLE_VALUE, C_FORECAST_TIME from t_forecast_power_short_term_his"
|
|
|
+ sql_dq = "select C_FORECAST_TIME AS C_TIME, C_ABLE_VALUE from t_forecast_power_short_term_his"
|
|
|
dq = exec_sql(sql_dq, engine)
|
|
|
utils.savedata.saveData("dq.csv", dq)
|
|
|
|
|
@@ -158,7 +158,7 @@ def get_process_cdq(database):
|
|
|
:return:
|
|
|
"""
|
|
|
engine = create_database(database)
|
|
|
- sql_cdq = "select C_ABLE_VALUE, C_FORECAST_TIME from t_forecast_power_ultra_short_term_his"
|
|
|
+ sql_cdq = "select C_FORECAST_TIME AS C_TIME, C_ABLE_VALUE from t_forecast_power_ultra_short_term_his"
|
|
|
cdq = exec_sql(sql_cdq, engine)
|
|
|
utils.savedata.saveData("cdq.csv", cdq)
|
|
|
|