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 c3288c03
authored
Sep 13, 2023
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.23.0 新增设备优化设备校验逻辑
1 parent
dc3e446e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 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 @
c3288c0
...
@@ -1434,7 +1434,7 @@ public class VehicleService extends AbstractCommonService {
...
@@ -1434,7 +1434,7 @@ public class VehicleService extends AbstractCommonService {
return
;
return
;
}
}
List
<
String
>
modifySnList
=
new
ArrayList
<>();
//
List<String> modifySnList = new ArrayList<>();
List
<
SimpleDeviceItem
>
devices
=
Lists
.
newArrayList
();
List
<
SimpleDeviceItem
>
devices
=
Lists
.
newArrayList
();
vehicleInfoVo
.
getDeviceInfoDtos
().
forEach
(
device
->
{
vehicleInfoVo
.
getDeviceInfoDtos
().
forEach
(
device
->
{
// 只有工单正常激活的才校验设备组合类型
// 只有工单正常激活的才校验设备组合类型
...
@@ -1443,16 +1443,14 @@ public class VehicleService extends AbstractCommonService {
...
@@ -1443,16 +1443,14 @@ public class VehicleService extends AbstractCommonService {
item
.
setSn
(
device
.
getSn
());
item
.
setSn
(
device
.
getSn
());
item
.
setModel
(
device
.
getDeviceClassifyName
());
item
.
setModel
(
device
.
getDeviceClassifyName
());
devices
.
add
(
item
);
devices
.
add
(
item
);
}
else
{
modifySnList
.
add
(
device
.
getSn
());
}
}
});
});
// 补充逻辑,如果是修改设备号则不进行设备验证
// 补充逻辑,如果是修改设备号则不进行设备验证
这一步逻辑可以不用
if
(!
CollectionUtil
.
isEmpty
(
modifySnList
))
{
//
if (!CollectionUtil.isEmpty(modifySnList)) {
log
.
info
(
"update vehicle device snList is:"
+
JSON
.
toJSONString
(
modifySnList
));
//
log.info("update vehicle device snList is:" + JSON.toJSONString(modifySnList));
return
;
//
return;
}
//
}
DevicesComposeVerifyBO
verifyBO
=
new
DevicesComposeVerifyBO
();
DevicesComposeVerifyBO
verifyBO
=
new
DevicesComposeVerifyBO
();
verifyBO
.
setWorkOrderId
(
vehicle
.
getWorkOrderId
());
verifyBO
.
setWorkOrderId
(
vehicle
.
getWorkOrderId
());
...
...
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