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 de397b0e
authored
Jun 05, 2021
by
黄小葱
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修改 同步车辆绑定设备
1 parent
3df92f79
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
View file @
de397b0
...
@@ -344,11 +344,10 @@ public class VehicleService {
...
@@ -344,11 +344,10 @@ public class VehicleService {
for
(
TrackInfoBo
trackInfo
:
trackInfoList
)
{
for
(
TrackInfoBo
trackInfo
:
trackInfoList
)
{
String
sn
=
trackInfo
.
getSn
();
String
sn
=
trackInfo
.
getSn
();
// 查询设备是否存在
// 查询设备是否存在
if
(
deviceService
.
checkSnExist
(
sn
))
{
if
(!
deviceService
.
checkSnExist
(
sn
))
{
log
.
info
(
"设备已存在,sn:"
+
sn
);
continue
;
}
saveDevice
(
trackInfo
,
createId
);
saveDevice
(
trackInfo
,
createId
);
}
log
.
info
(
"设备已存在,不保存。sn:"
+
sn
);
//检查该设备是否绑定 如果绑定 则解除绑定 重新绑定新车辆
//检查该设备是否绑定 如果绑定 则解除绑定 重新绑定新车辆
if
(
vehicle
!=
null
)
{
if
(
vehicle
!=
null
)
{
checkAndBindNewVehicle
(
sn
,
vehicle
.
getId
(),
createId
);
checkAndBindNewVehicle
(
sn
,
vehicle
.
getId
(),
createId
);
...
...
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