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
97650ad9
Commit
97650ad9
authored
Oct 09, 2023
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改泰和告警
parent
b8f6cda5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+10
-2
EquipAlarmEventServiceImpl.java
...le/jxiop/biz/service/impl/EquipAlarmEventServiceImpl.java
+11
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitorFanIdxController.java
View file @
97650ad9
...
@@ -56,7 +56,8 @@ public class MonitorFanIdxController extends BaseController {
...
@@ -56,7 +56,8 @@ public class MonitorFanIdxController extends BaseController {
@Autowired
@Autowired
EquipAlarmEventServiceImpl
equipAlarmEventService
;
EquipAlarmEventServiceImpl
equipAlarmEventService
;
@Autowired
EquipAlarmEventServiceImpl
equipAlarmEventServiceImpl
;
@Autowired
@Autowired
CommonServiceImpl
commonServiceImpl
;
CommonServiceImpl
commonServiceImpl
;
@Autowired
@Autowired
...
@@ -522,7 +523,14 @@ public class MonitorFanIdxController extends BaseController {
...
@@ -522,7 +523,14 @@ public class MonitorFanIdxController extends BaseController {
}
else
if
(
type
.
equals
(
"1"
))
{
}
else
if
(
type
.
equals
(
"1"
))
{
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationId
);
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationId
);
String
fanGatewayId
=
stationBasic
.
getFanGatewayId
();
String
fanGatewayId
=
stationBasic
.
getFanGatewayId
();
resultsData
=
monitorFanIndicatorImpl
.
getNationWideInfo
(
current
,
size
,
fanGatewayId
,
null
);
if
(
"FDZ"
.
equals
(
stationBasic
.
getStationType
()))
{
resultsData
=
monitorFanIndicatorImpl
.
getNationWideInfo
(
current
,
size
,
fanGatewayId
,
null
);
}
else
{
resultsData
=
equipAlarmEventServiceImpl
.
getEventByEquipIndex
(
fanGatewayId
,
current
,
size
,
null
,
null
);
}
}
}
return
ResponseHelper
.
buildResponse
(
resultsData
);
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/EquipAlarmEventServiceImpl.java
View file @
97650ad9
...
@@ -45,11 +45,21 @@ public class EquipAlarmEventServiceImpl extends BaseService<EquipAlarmEventDto,
...
@@ -45,11 +45,21 @@ public class EquipAlarmEventServiceImpl extends BaseService<EquipAlarmEventDto,
IPage
<
EquipAlarmEvent
>
page
=
equipAlarmEventMapper
.
selectPage
(
p
,
queryWrapper
);
IPage
<
EquipAlarmEvent
>
page
=
equipAlarmEventMapper
.
selectPage
(
p
,
queryWrapper
);
// equipAlarmEvents = equipAlarmEventMapper.selectList(queryWrapper);
// equipAlarmEvents = equipAlarmEventMapper.selectList(queryWrapper);
equipAlarmEvents
=
page
.
getRecords
();
equipAlarmEvents
=
page
.
getRecords
();
equipAlarmEvents
.
forEach
(
i
->{
if
(
"true"
.
equals
(
i
))
{
i
.
setValue
(
"合"
);
}
else
{
i
.
setValue
(
"分"
);
}
});
DataGridMock
DataGridMock
=
new
DataGridMock
(
current
,
equipAlarmEvents
.
size
(),
false
,
current
,
equipAlarmEvents
.
subList
((
current
-
1
)
*
size
,
current
*
size
));
DataGridMock
DataGridMock
=
new
DataGridMock
(
current
,
equipAlarmEvents
.
size
(),
false
,
current
,
equipAlarmEvents
.
subList
((
current
-
1
)
*
size
,
current
*
size
));
ColModel
colModelEventMovement
=
new
ColModel
(
"equipName"
,
"equipName"
,
"设备名"
,
"设备名"
,
"dataGrid"
,
"equipName"
);
ColModel
colModelEventMovement
=
new
ColModel
(
"equipName"
,
"equipName"
,
"设备名"
,
"设备名"
,
"dataGrid"
,
"equipName"
);
ColModel
colModelStationName
=
new
ColModel
(
"alarmDesc"
,
"alarmDesc"
,
"事件描述"
,
"事件描述"
,
"dataGrid"
,
"alarmDesc"
);
ColModel
colModelStationName
=
new
ColModel
(
"alarmDesc"
,
"alarmDesc"
,
"事件描述"
,
"事件描述"
,
"dataGrid"
,
"alarmDesc"
);
ColModel
colModelEventDesc
=
new
ColModel
(
"createdTime"
,
"createdTime"
,
"告警时间"
,
"告警时间"
,
"dataGrid"
,
"createdTime"
);
ColModel
colModelEventDesc
=
new
ColModel
(
"createdTime"
,
"createdTime"
,
"告警时间"
,
"告警时间"
,
"dataGrid"
,
"createdTime"
);
List
<
ColModel
>
listColModel
=
Arrays
.
asList
(
colModelEventMovement
,
colModelStationName
,
colModelEventDesc
);
ColModel
colModelValueDesc
=
new
ColModel
(
"value"
,
"value"
,
"动作"
,
"动作"
,
"dataGrid"
,
"value"
);
List
<
ColModel
>
listColModel
=
Arrays
.
asList
(
colModelEventMovement
,
colModelStationName
,
colModelEventDesc
,
colModelValueDesc
);
ResultsData
resultsData
=
new
ResultsData
(
DataGridMock
,
listColModel
);
ResultsData
resultsData
=
new
ResultsData
(
DataGridMock
,
listColModel
);
return
resultsData
;
return
resultsData
;
}
}
...
...
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