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
80130880
Commit
80130880
authored
Jan 22, 2021
by
pengxiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
customer_name
parent
aca7b67a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
tamp_diagnose_app.py
app/model/tamp_diagnose_app.py
+8
-2
No files found.
app/model/tamp_diagnose_app.py
View file @
80130880
...
...
@@ -231,6 +231,12 @@ class ReportView(Base, BaseModel):
file
=
pdf_folder
+
self
.
file
data
=
{
c
:
int
(
getattr
(
self
,
c
)
.
timestamp
())
if
isinstance
(
getattr
(
self
,
c
),
datetime
.
datetime
)
else
getattr
(
self
,
c
)
for
c
in
allow_field
}
data
[
'file'
]
=
file
if
not
self
.
customer_name
:
with
TAMP_SQL
(
tamp_diagnose_app_engine
)
as
tamp_diagnose_app
:
tamp_diagnose_session
=
tamp_diagnose_app
.
session
res
=
tamp_diagnose_session
.
query
(
CustomerView
.
customer_name
)
.
filter
(
CustomerView
.
id
==
self
.
customer_id
)
if
res
.
all
():
data
[
'customer_name'
]
=
res
[
0
]
.
customer_name
return
data
...
...
@@ -373,7 +379,7 @@ class UserHoldFundFromApp(Base, BaseModel):
class
IfaCustomerView
(
Base
,
BaseModel
):
__tablename__
=
'ifa_customer_view'
id
=
Column
(
String
(
64
))
id
=
Column
(
String
(
64
)
,
primary_key
=
True
)
customer_id
=
Column
(
String
(
64
))
ifa_id
=
Column
(
String
(
64
))
fund_count
=
Column
(
INTEGER
(
11
))
...
...
@@ -385,7 +391,7 @@ class IfaCustomerView(Base, BaseModel):
class
CustomerView
(
Base
,
BaseModel
):
__tablename__
=
'customer_view'
id
=
Column
(
String
(
64
))
id
=
Column
(
String
(
64
)
,
primary_key
=
True
)
customer_name
=
Column
(
String
(
128
))
delete_tag
=
Column
(
INTEGER
(
11
))
valueSex
=
Column
(
INTEGER
(
11
))
...
...
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