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 9f05048a
authored
Sep 23, 2021
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
车辆监控
1 parent
c529522f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
src/main/java/cn/com/glsx/admin/modules/service/VehicleMonitorSevice.java
src/main/java/cn/com/glsx/admin/modules/service/VehicleMonitorSevice.java
View file @
9f05048
...
@@ -65,7 +65,7 @@ public class VehicleMonitorSevice {
...
@@ -65,7 +65,7 @@ public class VehicleMonitorSevice {
if
(
CollectionUtils
.
isEmpty
(
modelList
))
{
if
(
CollectionUtils
.
isEmpty
(
modelList
))
{
return
Lists
.
newArrayList
();
return
Lists
.
newArrayList
();
}
}
if
(
search
.
getReturnTrees
())
{
Map
<
Long
,
List
<
OrgVehicleModel
>>
modeMap
=
modelList
.
stream
().
collect
(
Collectors
.
groupingBy
(
OrgVehicleModel:
:
getCreatorId
));
Map
<
Long
,
List
<
OrgVehicleModel
>>
modeMap
=
modelList
.
stream
().
collect
(
Collectors
.
groupingBy
(
OrgVehicleModel:
:
getCreatorId
));
search
.
setUserIds
(
modeMap
.
keySet
());
search
.
setUserIds
(
modeMap
.
keySet
());
...
@@ -73,6 +73,12 @@ public class VehicleMonitorSevice {
...
@@ -73,6 +73,12 @@ public class VehicleMonitorSevice {
//获取组织树
//获取组织树
orgTreeModelList
=
organizationApiService
.
orgTree
(
search
);
orgTreeModelList
=
organizationApiService
.
orgTree
(
search
);
//如果根据车辆用户反查不到对应组织用户,返回空数据
if
(
CollectionUtils
.
isEmpty
(
orgTreeModelList
))
{
return
orgTreeModelList
;
}
if
(
search
.
getReturnTrees
())
{
//遍历组织树,把业务数据挂载上去
//遍历组织树,把业务数据挂载上去
mountVehicle2Tree
(
orgTreeModelList
,
modeMap
);
mountVehicle2Tree
(
orgTreeModelList
,
modeMap
);
}
else
{
}
else
{
...
...
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