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
7aecc10c
Commit
7aecc10c
authored
Jan 18, 2021
by
pengxiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d42adbb5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
27 deletions
+30
-27
tamp_diagnose_app.py
app/model/tamp_diagnose_app.py
+30
-27
No files found.
app/model/tamp_diagnose_app.py
View file @
7aecc10c
...
...
@@ -147,6 +147,7 @@ class HoldDiagnoseReport(Base, BaseModel):
res
=
tamp_user_session
.
execute
(
sql
)
sql2
=
"select customer_name from tamp_diagnose_app.customer_view where id = '{}'"
.
format
(
self
.
customer_id
)
res2
=
tamp_diagnose_app_session
.
execute
(
sql2
)
if
data
:
if
res
.
fetchone
():
data
[
'author_name'
]
=
res
.
fetchone
()[
0
]
else
:
...
...
@@ -187,6 +188,7 @@ class HoldReport(Base, BaseModel):
res
=
tamp_user_session
.
execute
(
sql
)
sql2
=
"select customer_name from tamp_diagnose_app.customer_view where id = '{}'"
.
format
(
self
.
customer_id
)
res2
=
tamp_diagnose_app_session
.
execute
(
sql2
)
if
data
:
if
res
.
fetchone
():
data
[
'author_name'
]
=
res
.
fetchone
()[
0
]
else
:
...
...
@@ -227,6 +229,7 @@ class PeriodicReport(Base, BaseModel):
res
=
tamp_user_session
.
execute
(
sql
)
sql2
=
"select customer_name from tamp_diagnose_app.customer_view where id = '{}'"
.
format
(
self
.
customer_id
)
res2
=
tamp_diagnose_app_session
.
execute
(
sql2
)
if
data
:
if
res
.
fetchone
():
data
[
'author_name'
]
=
res
.
fetchone
()[
0
]
else
:
...
...
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