Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
financial-system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xianyang
financial-system
Commits
cae9c32b
Commit
cae9c32b
authored
Mar 30, 2023
by
xianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化异常数据修复列表
parent
964d6021
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
guild.py
app/api/statement/guild.py
+1
-13
No files found.
app/api/statement/guild.py
View file @
cae9c32b
...
@@ -379,21 +379,9 @@ def create_fix_table(db: Session, param, h_list):
...
@@ -379,21 +379,9 @@ def create_fix_table(db: Session, param, h_list):
def
recovery_thead_task
(
data
):
def
recovery_thead_task
(
data
):
account_sql
=
f
"select name from fi_account where uuid='{data['uuid']}'"
account_sql
=
f
"select name from fi_account where uuid='{data['uuid']}'"
user_sql
=
f
"select nick_name from v2_user where uuid='{data['uuid']}'"
acc_data
=
LinkMysql
(
env
.
DB_3YV2
)
.
query_mysql
(
account_sql
)
guild_sql
=
f
"select guild_name from guild where uuid='{data['uuid']}'"
with
ThreadPoolExecutor
(
max_workers
=
2
)
as
pool
:
future1
=
pool
.
submit
(
LinkMysql
(
env
.
DB_3YV2
)
.
query_mysql
,
account_sql
)
future2
=
pool
.
submit
(
LinkMysql
(
env
.
DB_3YV2
)
.
query_mysql
,
user_sql
)
future3
=
pool
.
submit
(
LinkMysql
(
env
.
DB_3YV2
)
.
query_mysql
,
guild_sql
)
acc_data
=
future1
.
result
()
user_data
=
future2
.
result
()
guild_data
=
future3
.
result
()
if
acc_data
:
if
acc_data
:
data
[
'name'
]
=
acc_data
[
0
][
'name'
]
data
[
'name'
]
=
acc_data
[
0
][
'name'
]
elif
user_data
:
data
[
'name'
]
=
user_data
[
0
][
'nick_name'
]
elif
guild_data
:
data
[
'name'
]
=
guild_data
[
0
][
'guild_name'
]
else
:
else
:
data
[
'name'
]
=
data
[
'uuid'
]
data
[
'name'
]
=
data
[
'uuid'
]
data
[
'out_money'
]
=
float
(
data
[
'out_money'
])
data
[
'out_money'
]
=
float
(
data
[
'out_money'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment