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 b87fdd23
authored
Dec 30, 2024
by
‘chizw’
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]数据脚本
1 parent
b139c748
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
kafka_service/test01.py
mysql_service/funasr_db.py
kafka_service/test01.py
View file @
b87fdd2
...
@@ -156,7 +156,7 @@ def select_extract_data():
...
@@ -156,7 +156,7 @@ def select_extract_data():
speed
=
'极慢'
speed
=
'极慢'
item
[
"speed"
]
=
speed
item
[
"speed"
]
=
speed
item
.
pop
(
"detail_json"
)
item
.
pop
(
"detail_json"
)
item
.
pop
(
"recording_duration"
)
#
item.pop("recording_duration")
time
.
sleep
(
3
)
time
.
sleep
(
3
)
for
row
in
data
:
for
row
in
data
:
print
(
f
"{row.get('id')}
\t
{row.get('employee_name')}
\t
{row.get('car_model')}
\t
"
print
(
f
"{row.get('id')}
\t
{row.get('employee_name')}
\t
{row.get('car_model')}
\t
"
...
@@ -175,3 +175,5 @@ def select_extract_data():
...
@@ -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_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_172119302897717211886442290.mp3", "李钰达")
# run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_17205900068901720588971648.mp3", "张东华")
# run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_17205900068901720588971648.mp3", "张东华")
select_extract_data
()
\ No newline at end of file
\ No newline at end of file
mysql_service/funasr_db.py
View file @
b87fdd2
...
@@ -189,7 +189,7 @@ def update_tingwu_ask_res_asr_text(task_id: str, asr_text: str):
...
@@ -189,7 +189,7 @@ 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,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,
...
@@ -212,6 +212,9 @@ left join ( select
...
@@ -212,6 +212,9 @@ left join ( select
and dclgo.status in (4, 6) and upgrade_flag = 'Y'
and dclgo.status in (4, 6) and upgrade_flag = 'Y'
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 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'
))
return
pool
.
select_all
(
sql
,
(
'2024-12-16'
,
'2024-12-23'
))
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