更新导出列表参数获取逻辑

This commit is contained in:
wangxu 2025-11-04 17:39:09 +08:00
parent 36d0223f7e
commit aca72f00f7
1 changed files with 5 additions and 1 deletions

View File

@ -159,7 +159,11 @@ def query_cross_delay_info_controller(params):
'ledger_info': cross_ledger_info,
'next_cross_info': next_cross_info
}
if params.get('excel') == 1:
excel = check_param(params, 'excel')
if not excel:
excel = 0
excel = int(excel)
if excel == 1:
return query_cross_delay_info_controller_export_excel(road_flow_delay_infos, road_flow_turn_rate)
return json.dumps(res, ensure_ascii=False)