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
95ca2f1d
Commit
95ca2f1d
authored
Aug 22, 2022
by
lcn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试一下
parent
d9234456
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
electric.py
unify_api/modules/electric/components/electric.py
+1
-1
electric.py
unify_api/modules/electric/views/electric.py
+5
-1
No files found.
unify_api/modules/electric/components/electric.py
View file @
95ca2f1d
...
...
@@ -268,7 +268,7 @@ class ElecIndex(Model):
@
dataclass
class
ElecIndexResponse
(
Model
):
"""指标统计-常规参数+电能质量
test
"""
"""指标统计-常规参数+电能质量"""
ctnum
:
int
=
Opt
(
Int
(
'二表法 | 三表法'
)
.
eg
(
3
))
common_indexes
:
list
=
Opt
(
List
(
'常规参数统计列表'
)
.
items
(
ElecIndex
))
elec_qual_indexes
:
list
=
Opt
(
List
(
'电能质量统计列表'
)
.
items
(
ElecIndex
))
...
...
unify_api/modules/electric/views/electric.py
View file @
95ca2f1d
...
...
@@ -475,7 +475,11 @@ async def post_elec_index(req, body: PageRequest) -> ElecIndexResponse:
log
.
error
(
"param error, ranges is NULL"
)
raise
ParamException
(
message
=
"param error, ranges is NULL"
)
# return await elec_index_service(cid, point_id, date_start, date_end)
return
await
elec_index_service_new15
(
cid
,
point_id
,
date_start
,
date_end
)
return
ElecIndexResponse
(
ctnum
=
3
,
common_indexes
=
[],
elec_qual_indexes
=
[]
)
# return await elec_index_service_new15(cid, point_id, date_start, date_end)
@
summary
(
"电能质量-历史曲线"
)
...
...
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