Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
F
fund_report
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭熊
fund_report
Commits
7421fe4b
Commit
7421fe4b
authored
Feb 04, 2021
by
李宗熹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对账单修复controller
parent
2058a29d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
186 additions
and
122 deletions
+186
-122
statement.py
app/controller/statement.py
+4
-4
statement_service.py
app/service/statement_service.py
+182
-118
No files found.
app/controller/statement.py
View file @
7421fe4b
...
...
@@ -28,15 +28,15 @@ class StatementController(Resource):
"""."""
self
.
parser
=
reqparse
.
RequestParser
()
#
@login_require
@
login_require
def
get
(
self
):
""""""
self
.
parser
.
add_argument
(
'user_id'
,
type
=
str
,
required
=
True
,
help
=
'用户id不能为空'
)
#
self.parser.add_argument('user_id', type=str, required=True, help='用户id不能为空')
self
.
parser
.
add_argument
(
'statement_time'
,
required
=
False
,
help
=
'对账单时间戳'
)
args
=
self
.
parser
.
parse_args
()
print
(
args
.
get
(
'statement_time'
))
user_id
=
args
.
get
(
'user_id'
)
#
user_id = g.ifa_id
#
user_id = args.get('user_id')
user_id
=
g
.
ifa_id
print
(
user_id
)
if
args
.
get
(
'statement_time'
)
!=
''
:
year
=
datetime
.
fromtimestamp
(
int
(
args
.
get
(
'statement_time'
))
/
1000
)
.
year
...
...
app/service/statement_service.py
View file @
7421fe4b
This diff is collapsed.
Click to expand it.
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