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
e2e75015
Commit
e2e75015
authored
Jan 18, 2021
by
pengxiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oss路径替换为本地路径
parent
5bcbf4c8
Hide 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 @
e2e75015
...
@@ -14,7 +14,7 @@ import uuid
...
@@ -14,7 +14,7 @@ import uuid
from
sqlalchemy
import
and_
from
sqlalchemy
import
and_
# from sqlalchemy import union_all
# from sqlalchemy import union_all
from
app.api.engine
import
TAMP_SQL
,
tamp_diagnose_app_engine
from
app.api.engine
import
TAMP_SQL
,
tamp_diagnose_app_engine
,
template_folder
,
temp_img_save_folder
from
app.model.tamp_diagnose_app
import
HoldReport
,
HoldDiagnoseReport
,
PeriodicReport
from
app.model.tamp_diagnose_app
import
HoldReport
,
HoldDiagnoseReport
,
PeriodicReport
from
app.utils.jinjia2html_v2
import
DataIntegrate
from
app.utils.jinjia2html_v2
import
DataIntegrate
...
@@ -186,7 +186,7 @@ def edit_report(args):
...
@@ -186,7 +186,7 @@ def edit_report(args):
})
})
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
))
dt
.
render_data
(
data
=
json
.
loads
(
report_data
.
replace
(
template_folder
,
temp_img_save_folder
)
))
except
:
except
:
pass
pass
with
TAMP_SQL
(
tamp_diagnose_app_engine
)
as
tamp_diagnose_app
:
with
TAMP_SQL
(
tamp_diagnose_app_engine
)
as
tamp_diagnose_app
:
...
@@ -225,7 +225,7 @@ def make_report(args):
...
@@ -225,7 +225,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
=
json
.
loads
(
args
.
get
(
'report_data'
))
report_data
=
json
.
loads
(
args
.
get
(
'report_data'
)
.
replace
(
template_folder
,
temp_img_save_folder
)
)
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