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
f262d5ea
Commit
f262d5ea
authored
Jan 19, 2021
by
pengxiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报告列表3
parent
8da45e8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
report_service.py
app/service/report_service.py
+6
-6
No files found.
app/service/report_service.py
View file @
f262d5ea
...
@@ -35,23 +35,23 @@ def get_report_list(args):
...
@@ -35,23 +35,23 @@ def get_report_list(args):
HoldReport
.
ifa_id
==
ifa_id
,
HoldReport
.
ifa_id
==
ifa_id
,
HoldReport
.
update_time
>=
start_time
,
HoldReport
.
update_time
>=
start_time
,
HoldReport
.
update_time
<=
end_time
HoldReport
.
update_time
<=
end_time
))
))
.
all
()
hold_diagnose_report
=
tamp_diagnose_session
.
query
(
HoldDiagnoseReport
)
.
filter
(
and_
(
hold_diagnose_report
=
tamp_diagnose_session
.
query
(
HoldDiagnoseReport
)
.
filter
(
and_
(
HoldDiagnoseReport
.
ifa_id
==
ifa_id
,
HoldDiagnoseReport
.
ifa_id
==
ifa_id
,
HoldDiagnoseReport
.
update_time
>=
start_time
,
HoldDiagnoseReport
.
update_time
>=
start_time
,
HoldDiagnoseReport
.
update_time
<=
end_time
HoldDiagnoseReport
.
update_time
<=
end_time
))
))
.
all
()
periodic_report
=
tamp_diagnose_session
.
query
(
PeriodicReport
)
.
filter
(
and_
(
periodic_report
=
tamp_diagnose_session
.
query
(
PeriodicReport
)
.
filter
(
and_
(
PeriodicReport
.
ifa_id
==
ifa_id
,
PeriodicReport
.
ifa_id
==
ifa_id
,
PeriodicReport
.
update_time
>=
start_time
,
PeriodicReport
.
update_time
>=
start_time
,
PeriodicReport
.
update_time
<=
end_time
PeriodicReport
.
update_time
<=
end_time
))
))
.
all
()
if
type
==
0
:
if
type
==
0
:
if
hold_report
.
all
()
:
if
hold_report
:
res
.
extend
(
hold_report
)
res
.
extend
(
hold_report
)
if
hold_diagnose_report
.
all
()
:
if
hold_diagnose_report
:
res
.
append
(
hold_diagnose_report
)
res
.
append
(
hold_diagnose_report
)
if
periodic_report
.
all
()
:
if
periodic_report
:
res
.
append
(
periodic_report
)
res
.
append
(
periodic_report
)
# res = hold_report.union_all(hold_diagnose_report).union_all(periodic_report)
# res = hold_report.union_all(hold_diagnose_report).union_all(periodic_report)
elif
type
==
1
:
elif
type
==
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