Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
funasr_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bfc8012c
authored
Mar 12, 2025
by
‘chizw’
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]限制优化
1 parent
4317ab80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
config/config_release.py
mysql_service/funasr_db.py
config/config_release.py
View file @
bfc8012
...
@@ -19,4 +19,4 @@ class Config:
...
@@ -19,4 +19,4 @@ class Config:
kafka_consumer_analysis_topic
=
'funasr_analysis_topic'
kafka_consumer_analysis_topic
=
'funasr_analysis_topic'
charset
=
'utf8'
charset
=
'utf8'
domain_mapping
=
{
'glsk-oss.oss-cn-shenzhen-internal.aliyuncs.com'
:
[
'glsk-oss.oss-cn-shenzhen.aliyuncs.com'
]}
domain_mapping
=
{
'glsk-oss.oss-cn-shenzhen-internal.aliyuncs.com'
:
[
'glsk-oss.oss-cn-shenzhen.aliyuncs.com'
]}
subprocess_count
=
3
subprocess_count
=
2
mysql_service/funasr_db.py
View file @
bfc8012
...
@@ -190,17 +190,18 @@ def update_tingwu_ask_res_asr_text(task_id: str, asr_text: str):
...
@@ -190,17 +190,18 @@ def update_tingwu_ask_res_asr_text(task_id: str, asr_text: str):
def
select_extract_data
():
def
select_extract_data
():
sql
=
(
sql
=
(
f
"""
f
"""
select ibr.id,t3.employee_name,rci.car_model,
select ibr.id,
ibr.recording_url,
t3.employee_name,rci.car_model,
case when rci.bussiness_type = 1 then '会员权益/升级' when ibr.check_type = 2 then '轻改' end bussiness_type,
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,
if(t4.customer_phone is not null,'成交','未成交') as estimated_result,
case when rbmca.Is_mentioned = 1 then '安心包' else '大套餐' end product,
case when rbmca.Is_mentioned = 1 then '安心包' else '大套餐' end product,
icde.detail_json,ibr.recording_duration
icde.detail_json,ibr.recording_duration
,dclsm.merchant_name
from inspection_badge_recordings ibr
from inspection_badge_recordings ibr
left join reception_customer_info rci on rci.id =ibr.reception_id
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
left join inspection_employee_badge t3 on ibr.badge_id =t3.badge_id
LEFT JOIN inspection_conversation_batch icb ON icb.file_url = ibr.recording_url
LEFT JOIN inspection_conversation_batch icb ON icb.file_url = ibr.recording_url
left join recording_batch_model_call_axb rbmca on icb.id = rbmca.batch_id
left join recording_batch_model_call_axb rbmca on icb.id = rbmca.batch_id
left join inspection_conversation_detail_ext icde on icb.id = icde.batch_id
left join inspection_conversation_detail_ext icde on icb.id = icde.batch_id
left join dj_car_life_service_merchant dclsm on dclsm.merchant_id = rci.merchant_id
left join ( select
left join ( select
dclgoc.customer_phone,upgrade_goods_name,upgrade_goods_alias,dclgso.package_name
dclgoc.customer_phone,upgrade_goods_name,upgrade_goods_alias,dclgso.package_name
from dj_car_life_goods_order dclgo
from dj_car_life_goods_order dclgo
...
@@ -214,7 +215,27 @@ left join ( select
...
@@ -214,7 +215,27 @@ left join ( select
group by dclgoc.customer_phone
group by dclgoc.customer_phone
order by order_time desc) t4 on rci.phone_number =t4.customer_phone
order by order_time desc) t4 on rci.phone_number =t4.customer_phone
where ibr.id in (
where ibr.id in (
38945,38856,38777,38600,38433,38352,38967,38834,38631,38573,38337,37776,38605,38241,38172,38766,38760,38736,35074,34912,33768,35191,35182,35073)
47820,
47689,
45894,
42861,
42579,
41331,
40984,
40593,
40094,
38825,
49019,
48696,
48561,
48539,
48433,
48193,
47914,
47804,
47050,
46938
)
# recording_start_time BETWEEN
%
s and
%
s
# recording_start_time BETWEEN
%
s and
%
s
# and ibr.recording_duration > 60*15 and t3.employee_name in ('黄锦秀','庞丽丽','郑曼如','王希丽','范达华')
# and ibr.recording_duration > 60*15 and t3.employee_name in ('黄锦秀','庞丽丽','郑曼如','王希丽','范达华')
# order by t3.employee_name,ibr.recording_start_time desc
# order by t3.employee_name,ibr.recording_start_time desc
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment