feat: 更新特来电字段对应关系(企业-车量自编号、设备-connector_name、场站-operator_name)
Coze-Commit-Type: user Coze-User-ID: 3722323274763196 Coze-Conversation-ID: 9894087
This commit is contained in:
@@ -28,7 +28,8 @@ ID_TO_NAME_MAPPING = {
|
|||||||
TELECOM_FIELD_MAPPING = {
|
TELECOM_FIELD_MAPPING = {
|
||||||
'order_id': 'order_no', # 订单号
|
'order_id': 'order_no', # 订单号
|
||||||
'station_id': 'station_id', # 场站ID
|
'station_id': 'station_id', # 场站ID
|
||||||
'station_name': 'station_name', # 场站名称
|
'operator_name': 'station_name', # 运营商名称 → 场站名称
|
||||||
|
'connector_name': 'equipment_name', # 连接器名称 → 设备名称
|
||||||
'charge_start_time': 'charge_begin_time', # 开始充电时间
|
'charge_start_time': 'charge_begin_time', # 开始充电时间
|
||||||
'charge_end_time': 'charge_end_time', # 结束充电时间
|
'charge_end_time': 'charge_end_time', # 结束充电时间
|
||||||
'total_power': 'charge_degree', # 总电量
|
'total_power': 'charge_degree', # 总电量
|
||||||
@@ -66,7 +67,8 @@ def query_telecom_orders(vehicle_self_nos, start_time_str, end_time_str):
|
|||||||
SELECT
|
SELECT
|
||||||
order_id,
|
order_id,
|
||||||
station_id,
|
station_id,
|
||||||
station_name,
|
operator_name,
|
||||||
|
connector_name,
|
||||||
charge_start_time,
|
charge_start_time,
|
||||||
charge_end_time,
|
charge_end_time,
|
||||||
total_power,
|
total_power,
|
||||||
|
|||||||
Reference in New Issue
Block a user