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
64511855
Commit
64511855
authored
Mar 31, 2023
by
xianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化查询
parent
6d220f00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
guild.py
app/api/statement/guild.py
+5
-2
No files found.
app/api/statement/guild.py
View file @
64511855
...
...
@@ -218,9 +218,12 @@ def query_uuid_or_user_number(param):
future2
=
pool
.
submit
(
LinkMysql
(
env
.
DB_3YV2
)
.
query_mysql
,
guild_sql
)
user
=
future1
.
result
()
guild
=
future2
.
result
()
if
not
user
:
if
user
:
return
{
"nick_name"
:
"(公会)"
+
guild
[
0
][
'guild_name'
],
"uuid"
:
guild
[
0
][
'uuid'
],
"is_guild"
:
1
,
"id"
:
guild
[
0
][
'id'
]}
return
{
"nick_name"
:
user
[
0
][
'nick_name'
],
"uuid"
:
user
[
0
][
'uuid'
],
"is_guild"
:
0
,
"id"
:
user
[
0
][
'user_id'
]}
elif
guild
:
return
{
"nick_name"
:
user
[
0
][
'nick_name'
],
"uuid"
:
user
[
0
][
'uuid'
],
"is_guild"
:
0
,
"id"
:
user
[
0
][
'user_id'
]}
else
:
return
{}
if
param
.
user_number
:
account_sql
=
f
"select id,name,uuid,unique_tag from fi_account where uuid='{param.uuid}' limit 0,1"
account
=
LinkMysql
(
env
.
DB_3YV2
)
.
query_mysql
(
account_sql
)
...
...
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