Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
5bb11ac7
Commit
5bb11ac7
authored
Oct 17, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加箱变开关指标
parent
f4661b31
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletion
+35
-1
DeviceController.java
...os/boot/module/jxiop/biz/controller/DeviceController.java
+13
-1
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+22
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/DeviceController.java
View file @
5bb11ac7
...
...
@@ -25,6 +25,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
/**
* @description:
...
...
@@ -64,7 +65,18 @@ public class DeviceController extends BaseController {
return
ResponseHelper
.
buildResponse
(
resultsData
);
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"箱变开关数据"
)
@GetMapping
(
"/xbdata"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
xbdata
(
@RequestParam
(
value
=
"frontModule"
)
String
frontModule
,
@RequestParam
(
value
=
"stationBasicId"
)
String
stationBasicId
,
@RequestParam
(
value
=
"equipmentNumber"
,
required
=
false
)
String
equipmentNumber
)
{
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationBasicId
);
String
fanGatewayId
=
stationBasic
.
getFanGatewayId
();
Map
<
String
,
Object
>
resultsData
=
monitorFanIndicatorImpl
.
getxbdata
(
frontModule
,
fanGatewayId
,
equipmentNumber
);
return
ResponseHelper
.
buildResponse
(
resultsData
);
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
View file @
5bb11ac7
...
...
@@ -2141,6 +2141,28 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
}
public
Map
<
String
,
Object
>
getxbdata
(
String
frontModule
,
String
fanGatewayId
,
String
equipmentNumber
)
{
Map
<
String
,
List
<
String
>>
queryCodntion
=
new
HashMap
<>();
queryCodntion
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
fanGatewayId
));
queryCodntion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"高压开关合闸"
,
"QF1低压断路器合闸"
,
"QF2低压断路器合闸"
));
queryCodntion
.
put
(
CommonConstans
.
QueryStringEquipmentNumber
,
Arrays
.
asList
(
equipmentNumber
));
List
<
ESEquipments
>
alldata
=
commonServiceImpl
.
getListDataByCondtionsAndLike
(
queryCodntion
,
null
,
ESEquipments
.
class
,
null
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
for
(
ESEquipments
alldatum
:
alldata
)
{
if
(
"高压开关合闸"
.
equals
(
alldatum
.
getEquipmentIndexName
())){
map
.
put
(
"gy"
,
"true"
.
equals
(
alldatum
.
getValue
())?
true
:
false
);
}
else
if
(
"QF1低压断路器合闸"
.
equals
(
alldatum
.
getEquipmentIndexName
())){
map
.
put
(
"1_dy"
,
"true"
.
equals
(
alldatum
.
getValue
())?
true
:
false
);
}
else
if
(
"QF2低压断路器合闸"
.
equals
(
alldatum
.
getEquipmentIndexName
())){
map
.
put
(
"2_dy"
,
"true"
.
equals
(
alldatum
.
getValue
())?
true
:
false
);
}
}
return
map
;
}
public
ResultsData
getDeaviAtionRate
(
String
gatewayId
,
String
zz
,
String
nbq
,
String
hlx
)
{
ArrayList
<
Map
<
String
,
Object
>>
resultList
=
new
ArrayList
<>();
...
...
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