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 296375cf
authored
Sep 13, 2021
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug处理
1 parent
1097aaac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 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 @
296375c
...
@@ -19,7 +19,6 @@ import org.springframework.beans.BeanUtils;
...
@@ -19,7 +19,6 @@ import org.springframework.beans.BeanUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.StopWatch
;
import
org.springframework.util.StopWatch
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -181,6 +180,9 @@ public class VehicleMonitorSevice {
...
@@ -181,6 +180,9 @@ public class VehicleMonitorSevice {
*/
*/
private
List
<
OrgVehicleTree
>
convert2ovt
(
List
<
OrgVehicleModel
>
modelList
)
{
private
List
<
OrgVehicleTree
>
convert2ovt
(
List
<
OrgVehicleModel
>
modelList
)
{
List
<
OrgVehicleTree
>
vehicleList
=
Lists
.
newArrayList
();
List
<
OrgVehicleTree
>
vehicleList
=
Lists
.
newArrayList
();
if
(
CollectionUtils
.
isEmpty
(
modelList
))
{
return
vehicleList
;
}
modelList
.
forEach
(
model
->
{
modelList
.
forEach
(
model
->
{
OrgVehicleTree
ovt
=
new
OrgVehicleTree
();
OrgVehicleTree
ovt
=
new
OrgVehicleTree
();
ovt
.
setId
(
"d"
+
model
.
getId
());
//加个前缀是为了保证前端树形控件id的唯一性(组织o,用户u,车辆v,设备d)
ovt
.
setId
(
"d"
+
model
.
getId
());
//加个前缀是为了保证前端树形控件id的唯一性(组织o,用户u,车辆v,设备d)
...
...
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