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
b8f6cda5
Commit
b8f6cda5
authored
Oct 09, 2023
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改光伏告警接口
parent
2bc59b4c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+2
-2
EquipAlarmEventServiceImpl.java
...le/jxiop/biz/service/impl/EquipAlarmEventServiceImpl.java
+12
-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/MonitorFanIdxController.java
View file @
b8f6cda5
...
...
@@ -855,8 +855,8 @@ public class MonitorFanIdxController extends BaseController {
public
ResponseModel
<
ResultsData
>
getEventByEquipIndex
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"stationId"
)
String
stationId
,
@RequestParam
(
value
=
"equipIndex"
)
String
equipIndex
,
@RequestParam
(
value
=
"frontModule"
)
String
frontModule
)
{
@RequestParam
(
value
=
"equipIndex"
,
required
=
false
)
String
equipIndex
,
@RequestParam
(
value
=
"frontModule"
,
required
=
false
)
String
frontModule
)
{
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationId
);
String
gatewayId
=
stationBasic
.
getFanGatewayId
();
ResultsData
resultsData
=
equipAlarmEventService
.
getEventByEquipIndex
(
gatewayId
,
current
,
size
,
equipIndex
,
frontModule
);
...
...
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 @
b8f6cda5
...
...
@@ -2,6 +2,8 @@ package com.yeejoin.amos.boot.module.jxiop.biz.service.impl;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.StationBasic
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.StationBasicMapper
;
import
com.yeejoin.amos.boot.module.jxiop.biz.dto.ColModel
;
...
...
@@ -29,12 +31,20 @@ public class EquipAlarmEventServiceImpl extends BaseService<EquipAlarmEventDto,
public
ResultsData
getEventByEquipIndex
(
String
gatewayId
,
int
current
,
int
size
,
String
equipIndex
,
String
frontModule
)
{
List
<
EquipAlarmEvent
>
equipAlarmEvents
=
new
ArrayList
<>();
LambdaQueryWrapper
<
EquipAlarmEvent
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
if
(
equipIndex
!=
null
)
{
queryWrapper
.
eq
(
EquipAlarmEvent:
:
getEquipIndex
,
equipIndex
);
}
queryWrapper
.
eq
(
EquipAlarmEvent:
:
getGatewayId
,
gatewayId
);
if
(
frontModule
!=
null
)
{
queryWrapper
.
eq
(
EquipAlarmEvent:
:
getFrontModule
,
frontModule
);
}
queryWrapper
.
orderByDesc
(
EquipAlarmEvent:
:
getCreatedTime
);
equipAlarmEvents
=
equipAlarmEventMapper
.
selectList
(
queryWrapper
);
IPage
<
EquipAlarmEvent
>
p
=
new
Page
<>(
current
,
size
);
IPage
<
EquipAlarmEvent
>
page
=
equipAlarmEventMapper
.
selectPage
(
p
,
queryWrapper
);
// equipAlarmEvents = equipAlarmEventMapper.selectList(queryWrapper);
equipAlarmEvents
=
page
.
getRecords
();
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
colModelStationName
=
new
ColModel
(
"alarmDesc"
,
"alarmDesc"
,
"事件描述"
,
"事件描述"
,
"dataGrid"
,
"alarmDesc"
);
...
...
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