Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tour_business
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏强
tour_business
Commits
1dea866a
Commit
1dea866a
authored
Apr 22, 2021
by
Aeolus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
716dd8d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
Controller/ReportController.py
+12
-0
No files found.
Controller/ReportController.py
View file @
1dea866a
...
...
@@ -134,6 +134,18 @@ def user_income_chart():
return
jsonify
(
BASE_RESPONSE
(
data
=
data
)
.
to_dict
())
@route_report.route
(
'/income_chart_szl'
,
methods
=
[
'GET'
,
'POST'
])
def
user_income_chart_szl
():
json_data
=
request
.
get_json
()
spot_id
=
json_data
[
'spot_id'
]
if
'spot_id'
in
json_data
else
0
start_time
=
datetime
.
datetime
.
now
()
.
replace
(
year
=
datetime
.
datetime
.
now
()
.
year
-
2
)
.
strftime
(
'
%
Y
%
m'
)
end_time
=
datetime
.
datetime
.
now
()
.
strftime
(
'
%
Y
%
m'
)
data
=
ReportService
.
get_spot_month_income
(
spot_id
,
start_time
,
end_time
)
return
jsonify
(
BASE_RESPONSE
(
data
=
data
)
.
to_dict
())
@route_report.route
(
'/over_record'
,
methods
=
[
'GET'
,
'POST'
])
def
rent_over_record
():
json_data
=
request
.
get_json
()
...
...
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