Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dfbfaaba
authored
Jun 13, 2024
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【ID1016897】 bug修复
1 parent
3406c727
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
src/main/java/cn/com/glsx/admin/modules/service/RiskAssessmentService.java
src/main/java/cn/com/glsx/admin/modules/service/RiskAssessmentService.java
View file @
dfbfaab
...
@@ -559,7 +559,6 @@ public class RiskAssessmentService {
...
@@ -559,7 +559,6 @@ public class RiskAssessmentService {
});
});
// 查询防拆警情:断电、光感、翻转
// 查询防拆警情:断电、光感、翻转
// TODO 接口测试,生效中的警情,只有开始时间没有结束时间
log
.
info
(
"查询防拆警情 请求参数:{}"
,
JSONUtil
.
toJsonStr
(
snList
));
log
.
info
(
"查询防拆警情 请求参数:{}"
,
JSONUtil
.
toJsonStr
(
snList
));
List
<
CommonAlarmDto
>
tearDownAlarmList
=
remoteAlarmService
.
selectLatestAlarmOfEachType
(
snList
);
List
<
CommonAlarmDto
>
tearDownAlarmList
=
remoteAlarmService
.
selectLatestAlarmOfEachType
(
snList
);
log
.
info
(
"查询防拆警情 请求结果:{}"
,
JSONUtil
.
toJsonStr
(
tearDownAlarmList
));
log
.
info
(
"查询防拆警情 请求结果:{}"
,
JSONUtil
.
toJsonStr
(
tearDownAlarmList
));
...
@@ -687,6 +686,11 @@ public class RiskAssessmentService {
...
@@ -687,6 +686,11 @@ public class RiskAssessmentService {
private
void
getOffLinePoint
(
List
<
String
>
snList
,
List
<
AlarmTimeLinePointVo
>
alarmInfoList
,
Map
<
String
,
String
>
snDeviceNameMap
)
{
private
void
getOffLinePoint
(
List
<
String
>
snList
,
List
<
AlarmTimeLinePointVo
>
alarmInfoList
,
Map
<
String
,
String
>
snDeviceNameMap
)
{
List
<
DeviceLocation
>
deviceLocationList
=
deviceLocationMapper
.
findLocationListBySnList
(
snList
);
List
<
DeviceLocation
>
deviceLocationList
=
deviceLocationMapper
.
findLocationListBySnList
(
snList
);
if
(
CollectionUtils
.
isEmpty
(
deviceLocationList
))
{
if
(
CollectionUtils
.
isEmpty
(
deviceLocationList
))
{
AlarmTimeLinePointVo
pointVo
=
new
AlarmTimeLinePointVo
();
pointVo
.
setAlarmLevel
(
3
);
pointVo
.
setAlarmType
(
"离线报警"
);
pointVo
.
setDevice
(
snDeviceNameMap
.
get
(
snList
.
get
(
0
)));
alarmInfoList
.
add
(
pointVo
);
return
;
return
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment