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
db9598e3
Commit
db9598e3
authored
Jul 06, 2023
by
xianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户充值报表增加字段
parent
3efe724e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
crud.py
app/api/statement/crud.py
+3
-0
No files found.
app/api/statement/crud.py
View file @
db9598e3
...
@@ -124,6 +124,7 @@ class RechargeStatement(object):
...
@@ -124,6 +124,7 @@ class RechargeStatement(object):
if
not
self
.
order_id
:
if
not
self
.
order_id
:
for
ni
in
query_data
:
for
ni
in
query_data
:
ni
[
'nick_name'
]
=
nick_dict
[
ni
[
'uuid'
]]
ni
[
'nick_name'
]
=
nick_dict
[
ni
[
'uuid'
]]
ni
[
'income_money'
]
=
ni
[
'amount'
]
ni
[
'status'
]
=
1
ni
[
'status'
]
=
1
return
query_data
return
query_data
if
len
(
self
.
order_id
)
==
1
:
if
len
(
self
.
order_id
)
==
1
:
...
@@ -144,6 +145,7 @@ class RechargeStatement(object):
...
@@ -144,6 +145,7 @@ class RechargeStatement(object):
o_id
=
'1'
o_id
=
'1'
for
y
in
order_data
:
for
y
in
order_data
:
if
o_id
==
str
(
y
[
'id'
]):
if
o_id
==
str
(
y
[
'id'
]):
x
[
'income_money'
]
=
x
[
'amount'
]
x
[
'user_id'
]
=
y
[
'userid'
]
x
[
'user_id'
]
=
y
[
'userid'
]
x
[
'nick_name'
]
=
y
[
'nick_name'
]
x
[
'nick_name'
]
=
y
[
'nick_name'
]
x
[
'amount'
]
=
y
[
'money'
]
x
[
'amount'
]
=
y
[
'money'
]
...
@@ -151,6 +153,7 @@ class RechargeStatement(object):
...
@@ -151,6 +153,7 @@ class RechargeStatement(object):
x
[
'paychannel'
]
=
pay_dict
.
get
(
y
[
'paychannel'
],
y
[
'paychannel'
])
x
[
'paychannel'
]
=
pay_dict
.
get
(
y
[
'paychannel'
],
y
[
'paychannel'
])
x
[
'sid'
]
=
y
[
'sid'
]
x
[
'sid'
]
=
y
[
'sid'
]
else
:
else
:
x
[
'income_money'
]
=
x
[
'amount'
]
x
[
'nick_name'
]
=
nick_dict
[
x
[
'uuid'
]]
x
[
'nick_name'
]
=
nick_dict
[
x
[
'uuid'
]]
x
[
'status'
]
=
1
x
[
'status'
]
=
1
Logger
()
.
logger
.
info
(
f
"拼接的数据:{query_data[0]}"
)
Logger
()
.
logger
.
info
(
f
"拼接的数据:{query_data[0]}"
)
...
...
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