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
Show 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 {
...
@@ -1097,17 +1097,17 @@ public class VehicleService {
}
}
}
}
}
}
// 暂时删除设备状态的筛选条件
if
(
search
.
getDeviceState
()
!=
null
)
{
//
if (search.getDeviceState() != null) {
vehicleInfoList
.
removeIf
(
vehicleInfoPageDTO
->
{
//
vehicleInfoList.removeIf(vehicleInfoPageDTO -> {
Integer
deviceState
=
vehicleInfoPageDTO
.
getDeviceState
();
//
Integer deviceState = vehicleInfoPageDTO.getDeviceState();
if
(
deviceState
!=
null
)
{
//
if (deviceState != null) {
return
search
.
getDeviceState
().
intValue
()
!=
deviceState
.
intValue
();
//
return search.getDeviceState().intValue() != deviceState.intValue();
}
//
}
// deviceState 为null 的时候为删掉
//
// deviceState 为null 的时候为删掉
return
true
;
//
return true;
});
//
});
}
//
}
return
new
PageInfo
<>(
vehicleInfoList
);
return
new
PageInfo
<>(
vehicleInfoList
);
}
}
...
@@ -1234,17 +1234,17 @@ public class VehicleService {
...
@@ -1234,17 +1234,17 @@ public class VehicleService {
}
}
}
}
}
}
// 暂时删除设备状态的筛选条件
if
(
search
.
getDeviceState
()
!=
null
)
{
//
if (search.getDeviceState() != null) {
vehicleInfoReportExportList
.
removeIf
(
vehicleInfoReportExport
->
{
//
vehicleInfoReportExportList.removeIf(vehicleInfoReportExport -> {
Integer
deviceState
=
vehicleInfoReportExport
.
getDeviceState
();
//
Integer deviceState = vehicleInfoReportExport.getDeviceState();
if
(
deviceState
!=
null
)
{
//
if (deviceState != null) {
return
search
.
getDeviceState
().
intValue
()
!=
deviceState
.
intValue
();
//
return search.getDeviceState().intValue() != deviceState.intValue();
}
//
}
// deviceState 为null 的时候为删掉
//
// deviceState 为null 的时候为删掉
return
true
;
//
return true;
});
//
});
}
//
}
return
vehicleInfoReportExportList
;
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