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
3ed27d47
Commit
3ed27d47
authored
Jan 18, 2021
by
pengxiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
制作报告修复
parent
7aecc10c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
report_service.py
app/service/report_service.py
+2
-1
No files found.
app/service/report_service.py
View file @
3ed27d47
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
# @Software : PyCharm
# @Software : PyCharm
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
import
datetime
import
datetime
import
json
import
os
import
os
import
uuid
import
uuid
...
@@ -165,7 +166,7 @@ def make_report(args):
...
@@ -165,7 +166,7 @@ def make_report(args):
customer_id
=
args
.
get
(
'customer_id'
)
customer_id
=
args
.
get
(
'customer_id'
)
type
=
args
.
get
(
'type'
)
type
=
args
.
get
(
'type'
)
name
=
args
.
get
(
'name'
)
name
=
args
.
get
(
'name'
)
report_data
=
args
.
get
(
'report_data'
)
report_data
=
json
.
loads
(
args
.
get
(
'report_data'
)
)
pdf_name
=
str
(
uuid
.
uuid4
())
+
'.pdf'
pdf_name
=
str
(
uuid
.
uuid4
())
+
'.pdf'
args
[
'update_time'
]
=
datetime
.
datetime
.
now
()
args
[
'update_time'
]
=
datetime
.
datetime
.
now
()
args
[
'update_status'
]
=
1
args
[
'update_status'
]
=
1
...
...
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