Commit 73e6085c by 杨林龙

暂时删除设备状态筛选条件

1 parent a81b370a
...@@ -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;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!