Commit 75784834 authored by wanghao's avatar wanghao

1 基础信息维护-用户管理-燃气用户 大屏展示数据结构 接口联调- 燃气类型封装

parent 7361f3f7
......@@ -273,9 +273,11 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
// 先过滤掉 没有经纬度的
List<TDetectorUserVillageSafetyDeviceInfoVo> collect5 = value1.stream().filter(item -> item.getUserLatitude() != null && item.getUserLongitude() != null).collect(Collectors.toList());
// 再过滤掉没有 天然气类型的
List<TDetectorUserVillageSafetyDeviceInfoVo> collect6 = collect5.stream().filter(item -> item.getGasType() != null).collect(Collectors.toList());
// 过滤掉 没有装置的
List<TDetectorUserVillageSafetyDeviceInfoVo> collect2 = collect5.stream().filter(item -> item.getGasUserSafetyDeviceId() == null).collect(Collectors.toList());
List<TDetectorUserVillageSafetyDeviceInfoVo> collect2 = collect6.stream().filter(item -> item.getGasUserSafetyDeviceId() == null).collect(Collectors.toList());
// 没有装置的 直接 封装用户数据
if (collect2.size() > 0) {
......@@ -300,7 +302,7 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
}
// 过滤掉 有装置的
List<TDetectorUserVillageSafetyDeviceInfoVo> collect3 = collect5.stream().filter(item -> item.getGasUserSafetyDeviceId() != null).collect(Collectors.toList());
List<TDetectorUserVillageSafetyDeviceInfoVo> collect3 = collect6.stream().filter(item -> item.getGasUserSafetyDeviceId() != null).collect(Collectors.toList());
if (collect3.size() > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment