Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
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
王浩
zh-baseversion-project
Commits
75784834
Commit
75784834
authored
Sep 09, 2024
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 基础信息维护-用户管理-燃气用户 大屏展示数据结构 接口联调- 燃气类型封装
parent
7361f3f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
TDetectorUserServiceImpl.java
.../zehong/system/service/impl/TDetectorUserServiceImpl.java
+4
-2
No files found.
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TDetectorUserServiceImpl.java
View file @
75784834
...
@@ -273,9 +273,11 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
...
@@ -273,9 +273,11 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
// 先过滤掉 没有经纬度的
// 先过滤掉 没有经纬度的
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>
collect5
=
value1
.
stream
().
filter
(
item
->
item
.
getUserLatitude
()
!=
null
&&
item
.
getUserLongitude
()
!=
null
).
collect
(
Collectors
.
toList
());
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>
collect5
=
value1
.
stream
().
filter
(
item
->
item
.
getUserLatitude
()
!=
null
&&
item
.
getUserLongitude
()
!=
null
).
collect
(
Collectors
.
toList
());
// 再过滤掉没有 天然气类型的
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>
collect6
=
collect5
.
stream
().
filter
(
item
->
item
.
getGasType
()
!=
null
).
collect
(
Collectors
.
toList
());
// 过滤掉 没有装置的
// 过滤掉 没有装置的
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>
collect2
=
collect
5
.
stream
().
filter
(
item
->
item
.
getGasUserSafetyDeviceId
()
==
null
).
collect
(
Collectors
.
toList
());
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>
collect2
=
collect
6
.
stream
().
filter
(
item
->
item
.
getGasUserSafetyDeviceId
()
==
null
).
collect
(
Collectors
.
toList
());
// 没有装置的 直接 封装用户数据
// 没有装置的 直接 封装用户数据
if
(
collect2
.
size
()
>
0
)
{
if
(
collect2
.
size
()
>
0
)
{
...
@@ -300,7 +302,7 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
...
@@ -300,7 +302,7 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
}
}
// 过滤掉 有装置的
// 过滤掉 有装置的
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>
collect3
=
collect
5
.
stream
().
filter
(
item
->
item
.
getGasUserSafetyDeviceId
()
!=
null
).
collect
(
Collectors
.
toList
());
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>
collect3
=
collect
6
.
stream
().
filter
(
item
->
item
.
getGasUserSafetyDeviceId
()
!=
null
).
collect
(
Collectors
.
toList
());
if
(
collect3
.
size
()
>
0
)
{
if
(
collect3
.
size
()
>
0
)
{
...
...
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