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
3698d1e8
Commit
3698d1e8
authored
Sep 01, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
c90f673f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+20
-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/MonitorFanIdxController.java
View file @
3698d1e8
...
...
@@ -17,6 +17,7 @@ import com.yeejoin.amos.boot.module.jxiop.biz.constants.CommonConstans;
import
com.yeejoin.amos.boot.module.jxiop.biz.dto.DeaviationRateDto
;
import
com.yeejoin.amos.boot.module.jxiop.biz.dto.ResultsData
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.CommonServiceImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.EquipAlarmEventServiceImpl
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.MonitorFanIndicatorImpl
;
import
com.yeejoin.amos.component.influxdb.InfluxdbUtil
;
import
io.swagger.annotations.Api
;
...
...
@@ -48,6 +49,9 @@ public class MonitorFanIdxController extends BaseController {
@Autowired
MonitorFanIndicatorImpl
monitorFanIndicator
;
@Autowired
EquipAlarmEventServiceImpl
equipAlarmEventService
;
@Autowired
StationBasicMapper
stationBasicMapper
;
...
...
@@ -792,8 +796,10 @@ public class MonitorFanIdxController extends BaseController {
for
(
StationBasic
stationBasic
:
stationBasics
)
{
String
gatewayId
=
stationBasic
.
getFanGatewayId
();
String
werks
=
stationBasic
.
getStationNumber
();
if
(!
stationBasic
.
getStationType
()
.
equals
(
"FDZ"
)){
monitorFanIndicator
.
getListByNbq
(
gatewayId
,
werks
,
stationBasic
.
getSequenceNbr
().
toString
());
}
}
return
CommonResponseUtil
.
success
();
...
...
@@ -864,4 +870,18 @@ public class MonitorFanIdxController extends BaseController {
return
CommonResponseUtil
.
success
();
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"实时告警"
)
@GetMapping
(
"/getEventByEquipIndex"
)
public
ResponseModel
<
ResultsData
>
getEventByEquipIndex
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"stationId"
)
String
stationId
,
@RequestParam
(
value
=
"equipIndex"
)
String
equipIndex
)
{
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationId
);
String
gatewayId
=
stationBasic
.
getFanGatewayId
();
ResultsData
resultsData
=
equipAlarmEventService
.
getEventByEquipIndex
(
gatewayId
,
current
,
size
,
equipIndex
);
return
ResponseHelper
.
buildResponse
(
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