Commit 73e6085c by 杨林龙

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

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