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
b1d650e4
Commit
b1d650e4
authored
Apr 19, 2023
by
xianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化账户列表
parent
aaebbc46
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
guild.py
app/api/statement/guild.py
+4
-7
views.py
app/api/statement/views.py
+2
-2
No files found.
app/api/statement/guild.py
View file @
b1d650e4
...
...
@@ -136,13 +136,10 @@ def paymentset_guild_data(page, size, start_time, end_time):
return
list
,
total
def
outon_account_data
(
db
:
Session
,
dbname
,
params
):
querydata
,
count
=
QueryAllData
(
db
,
dbname
,
params
,
None
)
.
query_data
()
data
=
[
QueryAllData
.
serialization
(
item
,
remove
=
{
'operator'
,
'create_time'
,
'beneficiary'
,
'description'
,
'create_time'
,
'config_key'
,
'income'
,
'output'
,
'operator_id'
})
for
item
in
querydata
]
return
data
,
count
def
outon_account_data
():
account_sql
=
f
"select id,name,description as remark,unique_tag,uuid from fi_account"
account
=
LinkMysql
(
env
.
DB_3YV2
)
.
query_mysql
(
account_sql
)
return
account
,
len
(
account
)
def
account_thead_task
(
data
):
...
...
app/api/statement/views.py
View file @
b1d650e4
...
...
@@ -97,9 +97,9 @@ def guild_payment_list(data: PaymentAdd, db: Session = Depends(get_db),token=Dep
@
router
.
get
(
"/onaccount"
)
def
outon_account
(
db
:
Session
=
Depends
(
get_db
),
token
=
Depends
(
login_required
)):
def
outon_account
(
token
=
Depends
(
login_required
)):
"""转出和转入账户人员列表"""
account_list
,
total
=
outon_account_data
(
db
,
Account
,
{}
)
account_list
,
total
=
outon_account_data
()
return
HttpResultResponse
(
total
=
total
,
data
=
account_list
)
...
...
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