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 98d65ea6
authored
Mar 19, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
大数据研判查询添加风险等级和报警次数
1 parent
c9701327
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
src/main/java/cn/com/glsx/admin/modules/service/JudgmentService.java
src/main/java/cn/com/glsx/admin/modules/service/JudgmentService.java
View file @
98d65ea
...
...
@@ -58,14 +58,14 @@ public class JudgmentService extends AbstractCommonService {
return
new
PageInfo
<>();
}
Map
<
String
,
JudgmentExport
>
judgmentExportMap
=
judgmentList
.
stream
().
filter
(
judExport
->
StringUtils
.
isNotBlank
(
judExport
.
getSn
())).
collect
(
Collectors
.
toMap
(
JudgmentExport:
:
getSn
,
Function
.
identity
(),
(
v1
,
v2
)->
v1
));
Map
<
String
,
JudgmentExport
>
judgmentExportMap
=
judgmentList
.
stream
().
filter
(
judExport
->
StringUtils
.
isNotBlank
(
judExport
.
getSn
())).
collect
(
Collectors
.
toMap
(
JudgmentExport:
:
getSn
,
Function
.
identity
(),
(
v1
,
v2
)
->
v1
));
List
<
JudgmentExport
>
judgmentExportList
=
Lists
.
newArrayList
();
stuJudgeAlarmList
.
forEach
(
stuJudgeAlarm
->
{
if
(
StringUtils
.
isBlank
(
stuJudgeAlarm
.
getSn
()))
{
return
;
}
JudgmentExport
judgmentExportTemp
=
judgmentExportMap
.
get
(
stuJudgeAlarm
.
getSn
());
if
(
judgmentExportTemp
!=
null
)
{
if
(
judgmentExportTemp
!=
null
)
{
JudgmentExport
judgmentExport
=
new
JudgmentExport
();
BeanUtils
.
copyProperties
(
judgmentExportTemp
,
judgmentExport
);
judgmentExport
.
setSourceStr
(
TypeConverseEunm
.
SourceEnum
.
getStrBySourceType
(
judgmentExport
.
getSource
()));
...
...
@@ -80,6 +80,8 @@ public class JudgmentService extends AbstractCommonService {
judgmentExport
.
setAlarmLng
(
stuJudgeAlarm
.
getAlarmLng
());
judgmentExport
.
setAlarmLat
(
stuJudgeAlarm
.
getAlarmLat
());
judgmentExport
.
setAlarmAddress
(
stuJudgeAlarm
.
getAlarmAddress
());
judgmentExport
.
setAlarmCount
(
stuJudgeAlarm
.
getAlarmCount
());
judgmentExport
.
setAlarmLevel
(
stuJudgeAlarm
.
getAlarmLevel
());
judgmentExportList
.
add
(
judgmentExport
);
}
});
...
...
@@ -101,7 +103,7 @@ public class JudgmentService extends AbstractCommonService {
return
null
;
}
Map
<
String
,
JudgmentExport
>
judgmentExportMap
=
judgmentList
.
stream
().
filter
(
judgement
->
StringUtils
.
isNotBlank
(
judgement
.
getSn
())).
collect
(
Collectors
.
toMap
(
JudgmentExport:
:
getSn
,
Function
.
identity
(),
(
v1
,
v2
)->
v1
));
Map
<
String
,
JudgmentExport
>
judgmentExportMap
=
judgmentList
.
stream
().
filter
(
judgement
->
StringUtils
.
isNotBlank
(
judgement
.
getSn
())).
collect
(
Collectors
.
toMap
(
JudgmentExport:
:
getSn
,
Function
.
identity
(),
(
v1
,
v2
)
->
v1
));
List
<
JudgmentExport
>
judgmentExportList
=
Lists
.
newArrayList
();
stuJudgeAlarmDtoList
.
forEach
(
stuJudgeAlarm
->
{
if
(
StringUtils
.
isBlank
(
stuJudgeAlarm
.
getSn
()))
{
...
...
@@ -109,7 +111,7 @@ public class JudgmentService extends AbstractCommonService {
}
JudgmentExport
judgmentExportTemp
=
judgmentExportMap
.
get
(
stuJudgeAlarm
.
getSn
());
if
(
judgmentExportTemp
!=
null
)
{
if
(
judgmentExportTemp
!=
null
)
{
JudgmentExport
judgmentExport
=
new
JudgmentExport
();
BeanUtils
.
copyProperties
(
judgmentExportTemp
,
judgmentExport
);
judgmentExport
.
setSourceStr
(
TypeConverseEunm
.
SourceEnum
.
getStrBySourceType
(
judgmentExport
.
getSource
()));
...
...
@@ -121,6 +123,11 @@ public class JudgmentService extends AbstractCommonService {
judgmentExport
.
setAlarmAddress
(
stuJudgeAlarm
.
getAlarmAddress
());
judgmentExport
.
setAlarmBeginTime
(
stuJudgeAlarm
.
getAlarmBeginTime
());
judgmentExport
.
setAlarmEndTime
(
stuJudgeAlarm
.
getAlarmEndTime
());
judgmentExport
.
setAlarmLng
(
stuJudgeAlarm
.
getAlarmLng
());
judgmentExport
.
setAlarmLat
(
stuJudgeAlarm
.
getAlarmLat
());
judgmentExport
.
setAlarmAddress
(
stuJudgeAlarm
.
getAlarmAddress
());
judgmentExport
.
setAlarmCount
(
stuJudgeAlarm
.
getAlarmCount
());
judgmentExport
.
setAlarmLevel
(
stuJudgeAlarm
.
getAlarmLevel
());
judgmentExportList
.
add
(
judgmentExport
);
}
});
...
...
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