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 73e6085c
authored
Sep 14, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
暂时删除设备状态筛选条件
1 parent
a81b370a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 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 @
73e6085
...
...
@@ -1097,17 +1097,17 @@ public class VehicleService {
}
}
}
if
(
search
.
getDeviceState
()
!=
null
)
{
vehicleInfoList
.
removeIf
(
vehicleInfoPageDTO
->
{
Integer
deviceState
=
vehicleInfoPageDTO
.
getDeviceState
();
if
(
deviceState
!=
null
)
{
return
search
.
getDeviceState
().
intValue
()
!=
deviceState
.
intValue
();
}
// deviceState 为null 的时候为删掉
return
true
;
});
}
// 暂时删除设备状态的筛选条件
//
if (search.getDeviceState() != null) {
//
vehicleInfoList.removeIf(vehicleInfoPageDTO -> {
//
Integer deviceState = vehicleInfoPageDTO.getDeviceState();
//
if (deviceState != null) {
//
return search.getDeviceState().intValue() != deviceState.intValue();
//
}
//
// deviceState 为null 的时候为删掉
//
return true;
//
});
//
}
return
new
PageInfo
<>(
vehicleInfoList
);
}
...
...
@@ -1234,17 +1234,17 @@ public class VehicleService {
}
}
}
if
(
search
.
getDeviceState
()
!=
null
)
{
vehicleInfoReportExportList
.
removeIf
(
vehicleInfoReportExport
->
{
Integer
deviceState
=
vehicleInfoReportExport
.
getDeviceState
();
if
(
deviceState
!=
null
)
{
return
search
.
getDeviceState
().
intValue
()
!=
deviceState
.
intValue
();
}
// deviceState 为null 的时候为删掉
return
true
;
});
}
// 暂时删除设备状态的筛选条件
//
if (search.getDeviceState() != null) {
//
vehicleInfoReportExportList.removeIf(vehicleInfoReportExport -> {
//
Integer deviceState = vehicleInfoReportExport.getDeviceState();
//
if (deviceState != null) {
//
return search.getDeviceState().intValue() != deviceState.intValue();
//
}
//
// deviceState 为null 的时候为删掉
//
return true;
//
});
//
}
return
vehicleInfoReportExportList
;
}
...
...
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