Commit b87fdd23 by ‘chizw’

[+]数据脚本

1 parent b139c748
......@@ -156,7 +156,7 @@ def select_extract_data():
speed = '极慢'
item["speed"] = speed
item.pop("detail_json")
item.pop("recording_duration")
# item.pop("recording_duration")
time.sleep(3)
for row in data:
print(f"{row.get('id')}\t{row.get('employee_name')}\t{row.get('car_model')}\t"
......@@ -175,3 +175,5 @@ def select_extract_data():
# run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_172075478615417207538825792.mp3", "东联")
# run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_172119302897717211886442290.mp3", "李钰达")
# run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_17205900068901720588971648.mp3", "张东华")
select_extract_data()
\ No newline at end of file
......@@ -189,11 +189,11 @@ def update_tingwu_ask_res_asr_text(task_id: str, asr_text: str):
def select_extract_data():
sql = (
f"""
select ibr.id,t3.employee_name,rci.car_model,
select ibr.id,t3.employee_name,rci.car_model,
case when rci.bussiness_type = 1 then '会员权益/升级' when ibr.check_type = 2 then '轻改' end bussiness_type,
if(t4.customer_phone is not null,'成交','未成交') as estimated_result,
case when rbmca.Is_mentioned = 1 then '安心包' else '大套餐' end product,
icde.detail_json,ibr.recording_duration
icde.detail_json,ibr.recording_duration
from inspection_badge_recordings ibr
left join reception_customer_info rci on rci.id =ibr.reception_id
left join inspection_employee_badge t3 on ibr.badge_id =t3.badge_id
......@@ -212,6 +212,9 @@ left join ( select
and dclgo.status in (4, 6) and upgrade_flag = 'Y'
group by dclgoc.customer_phone
order by order_time desc) t4 on rci.phone_number =t4.customer_phone
where recording_start_time BETWEEN %s AND %s and ;"""
where recording_start_time BETWEEN %s and %s
and ibr.recording_duration > 60*15 and t3.employee_name in ('黄锦秀','庞丽丽','郑曼如','王希丽','范达华')
order by t3.employee_name,ibr.recording_start_time desc
;"""
)
return pool.select_all(sql, ('2024-12-16', '2024-12-23'))
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!