Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
U
unify_api2
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chaonan
unify_api2
Commits
046d846c
Commit
046d846c
authored
Apr 13, 2023
by
wang.wenrong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wwr' into 'develop'
扬尘返回空处理 See merge request
!18
parents
d3aa5fa5
28403dc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
count_info.py
unify_api/modules/home_page/views/count_info.py
+3
-3
tsp.py
unify_api/modules/tsp_water/views/tsp.py
+10
-10
No files found.
unify_api/modules/home_page/views/count_info.py
View file @
046d846c
...
@@ -210,14 +210,14 @@ async def post_info_yang_chen(req, body: CountInfoReq) -> IycResp:
...
@@ -210,14 +210,14 @@ async def post_info_yang_chen(req, body: CountInfoReq) -> IycResp:
# 1. 获取cid
# 1. 获取cid
cid
=
body
.
cid
cid
=
body
.
cid
# return await info_yang_chen_service(cid)
# return await info_yang_chen_service(cid)
return
IycResp
()
# 扬尘
不维护,返回空
return
IycResp
()
# 扬尘
接口,返回空数据
@
summary
(
"工厂版首页地图信息-扬尘"
)
@
summary
(
"工厂版首页地图信息-扬尘"
)
async
def
post_info_yang_chen_map
(
req
,
body
:
CountInfoReq
)
->
IycmResp
:
async
def
post_info_yang_chen_map
(
req
,
body
:
CountInfoReq
)
->
IycmResp
:
# 1. 获取cid
# 1. 获取cid
cid
=
body
.
cid
cid
=
body
.
cid
return
await
info_yang_chen_map_service
(
cid
)
#
return await info_yang_chen_map_service(cid)
#
return IycmResp()
return
IycmResp
()
@
summary
(
"获取首页用电经济指数"
)
@
summary
(
"获取首页用电经济指数"
)
async
def
post_electric_economic_index_new
(
request
,
async
def
post_electric_economic_index_new
(
request
,
...
...
unify_api/modules/tsp_water/views/tsp.py
View file @
046d846c
...
@@ -20,8 +20,8 @@ async def post_tsp_history(req, body: ThReq) -> ThResp:
...
@@ -20,8 +20,8 @@ async def post_tsp_history(req, body: ThReq) -> ThResp:
tsp_id
=
body
.
tsp_id
tsp_id
=
body
.
tsp_id
start
=
body
.
start
start
=
body
.
start
end
=
body
.
end
end
=
body
.
end
return
await
tsp_history_service
(
tsp_id
,
start
,
end
)
#
return await tsp_history_service(tsp_id, start, end)
return
ThResp
()
@
summary
(
"TSP信息-指标统计"
)
@
summary
(
"TSP信息-指标统计"
)
async
def
post_tsp_index_statistics
(
req
,
body
:
TisReq
)
->
TisResp
:
async
def
post_tsp_index_statistics
(
req
,
body
:
TisReq
)
->
TisResp
:
...
@@ -29,8 +29,8 @@ async def post_tsp_index_statistics(req, body: TisReq) -> TisResp:
...
@@ -29,8 +29,8 @@ async def post_tsp_index_statistics(req, body: TisReq) -> TisResp:
start
=
body
.
start
start
=
body
.
start
end
=
body
.
end
end
=
body
.
end
# return await tsp_index_statistics_service(tsp_id, start, end)
# return await tsp_index_statistics_service(tsp_id, start, end)
return
await
tsp_index_statistics_service_new15
(
tsp_id
,
start
,
end
)
#
return await tsp_index_statistics_service_new15(tsp_id, start, end)
return
TisResp
()
@
summary
(
"当日环境"
)
@
summary
(
"当日环境"
)
async
def
post_day_env
(
req
,
body
:
DeReq
)
->
DeResp
:
async
def
post_day_env
(
req
,
body
:
DeReq
)
->
DeResp
:
...
@@ -44,24 +44,24 @@ async def post_stat_analysis(req, body: ThReq) -> SaResp:
...
@@ -44,24 +44,24 @@ async def post_stat_analysis(req, body: ThReq) -> SaResp:
tsp_id
=
body
.
tsp_id
tsp_id
=
body
.
tsp_id
start
=
body
.
start
start
=
body
.
start
end
=
body
.
end
end
=
body
.
end
return
await
stat_analysis_service
(
cid
,
tsp_id
,
start
,
end
)
#
return await stat_analysis_service(cid, tsp_id, start, end)
return
SaResp
()
@
summary
(
"TSP信息-预测偏差"
)
@
summary
(
"TSP信息-预测偏差"
)
async
def
post_tsp_predict_deviation
(
req
,
body
:
TisReq
)
->
TpdResp
:
async
def
post_tsp_predict_deviation
(
req
,
body
:
TisReq
)
->
TpdResp
:
tsp_id
=
body
.
tsp_id
tsp_id
=
body
.
tsp_id
start
=
body
.
start
start
=
body
.
start
end
=
body
.
end
end
=
body
.
end
return
await
tsp_predict_deviation_service
(
tsp_id
,
start
,
end
)
#
return await tsp_predict_deviation_service(tsp_id, start, end)
return
TpdResp
()
@
summary
(
"TSP信息-对比偏差"
)
@
summary
(
"TSP信息-对比偏差"
)
async
def
post_tsp_contrast_deviation
(
req
,
body
:
TisReq
)
->
TcdResp
:
async
def
post_tsp_contrast_deviation
(
req
,
body
:
TisReq
)
->
TcdResp
:
tsp_id
=
body
.
tsp_id
tsp_id
=
body
.
tsp_id
start
=
body
.
start
start
=
body
.
start
end
=
body
.
end
end
=
body
.
end
return
await
tsp_contrast_deviation_service
(
tsp_id
,
start
,
end
)
#
return await tsp_contrast_deviation_service(tsp_id, start, end)
return
TcdResp
()
@
summary
(
"统计分析-扬尘-描述"
)
@
summary
(
"统计分析-扬尘-描述"
)
async
def
post_analysis_describe
(
req
,
body
:
AdReq
)
->
AdResp
:
async
def
post_analysis_describe
(
req
,
body
:
AdReq
)
->
AdResp
:
...
...
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