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
83026b57
Commit
83026b57
authored
Oct 17, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
6836d2ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
DeviceController.java
...os/boot/module/jxiop/biz/controller/DeviceController.java
+4
-3
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+7
-2
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 @
83026b57
...
...
@@ -68,13 +68,14 @@ public class DeviceController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"箱变开关数据"
)
@GetMapping
(
"/xbdata"
)
public
ResponseModel
<
Map
<
String
,
Object
>
>
xbdata
(
public
ResponseModel
<
Page
<
Map
<
String
,
Object
>>
>
xbdata
(
@RequestParam
(
value
=
"frontModule"
)
String
frontModule
,
@RequestParam
(
value
=
"stationBasicId"
)
String
stationBasicId
,
@RequestParam
(
value
=
"equipmentNumber"
,
required
=
false
)
String
equipmentNumber
)
{
@RequestParam
(
value
=
"equipmentNumber"
,
required
=
false
)
String
equipmentNumber
,
long
current
,
long
size
)
{
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationBasicId
);
String
fanGatewayId
=
stationBasic
.
getFanGatewayId
();
Map
<
String
,
Object
>
resultsData
=
monitorFanIndicatorImpl
.
getxbdata
(
frontModule
,
fanGatewayId
,
equipmentNumber
);
Page
<
Map
<
String
,
Object
>>
resultsData
=
monitorFanIndicatorImpl
.
getxbdata
(
frontModule
,
fanGatewayId
,
equipmentNumber
,
current
,
size
);
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 @
83026b57
...
...
@@ -2141,7 +2141,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
}
public
Map
<
String
,
Object
>
getxbdata
(
String
frontModule
,
String
fanGatewayId
,
String
equipmentNumber
)
{
public
Page
<
Map
<
String
,
Object
>>
getxbdata
(
String
frontModule
,
String
fanGatewayId
,
String
equipmentNumber
,
long
current
,
long
size
)
{
Map
<
String
,
List
<
String
>>
queryCodntion
=
new
HashMap
<>();
queryCodntion
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
fanGatewayId
));
queryCodntion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"高压开关合闸"
,
"QF1低压断路器合闸"
,
"QF2低压断路器合闸"
));
...
...
@@ -2157,7 +2157,12 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
map
.
put
(
"2_dy"
,
"true"
.
equals
(
alldatum
.
getValue
())?
true
:
false
);
}
}
return
map
;
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>(
current
,
size
);
List
<
Map
<
String
,
Object
>>
collect
=
new
ArrayList
();
collect
.
add
(
map
);
page
.
setTotal
(
1
);
page
.
setRecords
(
collect
);
return
page
;
}
...
...
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