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
fc2bacc6
Commit
fc2bacc6
authored
Feb 18, 2021
by
wang zhengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据库数据字符化
parent
4f657920
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
report_service.py
app/service/report_service.py
+3
-3
No files found.
app/service/report_service.py
View file @
fc2bacc6
...
@@ -157,8 +157,8 @@ def edit_report(args):
...
@@ -157,8 +157,8 @@ def edit_report(args):
id
=
args
.
get
(
'id'
)
id
=
args
.
get
(
'id'
)
type
=
args
.
get
(
'type'
)
type
=
args
.
get
(
'type'
)
ifa_id
=
args
.
get
(
'ifa_id'
)
ifa_id
=
args
.
get
(
'ifa_id'
)
#
report_data = args.get('report_data')
report_data
=
args
.
get
(
'report_data'
)
report_data
=
json
.
loads
(
args
.
get
(
'report_data'
))
report_data
_json
=
json
.
loads
(
args
.
get
(
'report_data'
))
pdf_name
=
str
(
uuid
.
uuid4
())
+
'.pdf'
pdf_name
=
str
(
uuid
.
uuid4
())
+
'.pdf'
res
=
[]
res
=
[]
with
TAMP_SQL
(
tamp_diagnose_app_engine
)
as
tamp_diagnose_app
:
with
TAMP_SQL
(
tamp_diagnose_app_engine
)
as
tamp_diagnose_app
:
...
@@ -189,7 +189,7 @@ def edit_report(args):
...
@@ -189,7 +189,7 @@ def edit_report(args):
'update_time'
:
datetime
.
datetime
.
now
()
'update_time'
:
datetime
.
datetime
.
now
()
})
})
save_pdf
.
delay
(
id
,
ifa_id
,
res
[
0
]
.
customer_id
,
pdf_name
,
type
,
report_data
)
save_pdf
.
delay
(
id
,
ifa_id
,
res
[
0
]
.
customer_id
,
pdf_name
,
type
,
report_data
_json
)
# try:
# try:
# dt = DataIntegrate(ifa_id=ifa_id, customer_id=res[0].customer_id, pdf_name=pdf_name, type=type)
# dt = DataIntegrate(ifa_id=ifa_id, customer_id=res[0].customer_id, pdf_name=pdf_name, type=type)
# dt.render_data(data=json.loads(report_data.replace(template_folder, temp_img_save_folder)))
# dt.render_data(data=json.loads(report_data.replace(template_folder, temp_img_save_folder)))
...
...
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