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 c5e358bd
authored
Sep 13, 2023
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.23.0 优化新增设备校验逻辑
1 parent
a35c1014
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 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 @
c5e358b
...
@@ -1434,11 +1434,10 @@ public class VehicleService extends AbstractCommonService {
...
@@ -1434,11 +1434,10 @@ public class VehicleService extends AbstractCommonService {
return
;
return
;
}
}
// List<String> modifySnList = new ArrayList<>();
List
<
SimpleDeviceItem
>
devices
=
Lists
.
newArrayList
();
List
<
SimpleDeviceItem
>
devices
=
Lists
.
newArrayList
();
vehicleInfoVo
.
getDeviceInfoDtos
().
forEach
(
device
->
{
vehicleInfoVo
.
getDeviceInfoDtos
().
forEach
(
device
->
{
// 只有工单正常激活的才校验设备组合类型
// 只有工单正常激活的才校验设备组合类型
if
(
ActiveFlagEnum
.
WORKORDER_ACTIVE
.
getCode
().
equals
(
device
.
getActiveFlag
())
||
device
.
getActiveFlag
()
==
null
)
{
if
(
ActiveFlagEnum
.
WORKORDER_ACTIVE
.
getCode
().
equals
(
device
.
getActiveFlag
())
||
device
.
getActiveFlag
()
==
null
)
{
SimpleDeviceItem
item
=
new
SimpleDeviceItem
();
SimpleDeviceItem
item
=
new
SimpleDeviceItem
();
item
.
setSn
(
device
.
getSn
());
item
.
setSn
(
device
.
getSn
());
item
.
setModel
(
device
.
getDeviceClassifyName
());
item
.
setModel
(
device
.
getDeviceClassifyName
());
...
@@ -1446,11 +1445,10 @@ public class VehicleService extends AbstractCommonService {
...
@@ -1446,11 +1445,10 @@ public class VehicleService extends AbstractCommonService {
}
}
});
});
// 补充逻辑,如果是修改设备号则不进行设备验证 这一步逻辑可以不用
if
(
CollectionUtil
.
isEmpty
(
devices
))
{
// if (!CollectionUtil.isEmpty(modifySnList)) {
log
.
info
(
"devices is null"
);
// 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