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 505ffb5c
authored
Sep 13, 2021
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
车辆监控
1 parent
296375cf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
src/main/java/cn/com/glsx/admin/modules/model/OrgVehicleModel.java
src/main/java/cn/com/glsx/admin/modules/service/VehicleMonitorSevice.java
src/main/resources/mapper/VehicleMapper.xml
src/main/java/cn/com/glsx/admin/modules/model/OrgVehicleModel.java
View file @
505ffb5
...
...
@@ -11,5 +11,6 @@ public class OrgVehicleModel {
private
String
ownerName
;
private
String
sns
;
private
Long
creatorId
;
private
Integer
source
;
}
src/main/java/cn/com/glsx/admin/modules/service/VehicleMonitorSevice.java
View file @
505ffb5
...
...
@@ -189,10 +189,10 @@ public class VehicleMonitorSevice {
ovt
.
setLabel
(
model
.
getSns
());
ovt
.
setParentId
(
model
.
getCreatorId
());
ovt
.
setVid
(
model
.
getVid
());
ovt
.
setLabel1
(
model
.
getOwnerName
()
);
ovt
.
setLabel1
(
StringUtils
.
isNotEmpty
(
model
.
getOwnerName
())
?
model
.
getOwnerName
()
:
"--"
);
ovt
.
setLabel2
(
model
.
getVin
());
ovt
.
setSource
(
model
.
get
Id
()
%
2
==
0
?
"有线"
:
"无线"
);
ovt
.
setOnline
(
model
.
getId
()
%
3
==
0
);
ovt
.
setSource
(
model
.
get
Source
()
==
null
?
"未知"
:
(
model
.
getSource
()
==
1
?
"有线"
:
"无线"
)
);
//
ovt.setOnline(model.getId() % 3 == 0);
vehicleList
.
add
(
ovt
);
});
return
vehicleList
;
...
...
src/main/resources/mapper/VehicleMapper.xml
View file @
505ffb5
...
...
@@ -250,9 +250,11 @@
tv.vin,
tv.owner_name ownerName,
tvd.sn sns,
tv.created_by creatorId
tv.created_by creatorId,
td.source
from t_vehicle tv
left join t_vehicle_device tvd on tv.id = tvd.vehicle_id
left join t_device td on td.sn = tvd.sn
where tv.del_flag = 0
and tvd.bind_status = 1
and tv.created_by is not null
...
...
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