diff --git a/lib/report_generator.py b/lib/report_generator.py index 0fbe383..dcd8f8f 100644 --- a/lib/report_generator.py +++ b/lib/report_generator.py @@ -28,7 +28,8 @@ ID_TO_NAME_MAPPING = { TELECOM_FIELD_MAPPING = { 'order_id': 'order_no', # 订单号 'station_id': 'station_id', # 场站ID - 'station_name': 'station_name', # 场站名称 + 'operator_name': 'station_name', # 运营商名称 → 场站名称 + 'connector_name': 'equipment_name', # 连接器名称 → 设备名称 'charge_start_time': 'charge_begin_time', # 开始充电时间 'charge_end_time': 'charge_end_time', # 结束充电时间 'total_power': 'charge_degree', # 总电量 @@ -66,7 +67,8 @@ def query_telecom_orders(vehicle_self_nos, start_time_str, end_time_str): SELECT order_id, station_id, - station_name, + operator_name, + connector_name, charge_start_time, charge_end_time, total_power,