Explorar el Código

FIX 设备流水 点位反显

tanbin hace 1 año
padre
commit
f473092841

+ 1 - 1
device-api-service/src/main/java/com/xy/service/DeviceInfoServiceImpl.java

@@ -439,7 +439,7 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
         List<DeviceDataDto.DeviceFlowCountVO> records = dataPage.getRecords();
         if (CollUtil.isNotEmpty(records)) {
 
-            List<Long> placeIds = records.stream().filter(s -> s.getPlaceId() == null).map(DeviceDataDto.DeviceFlowCountVO::getPlaceId).distinct().collect(Collectors.toList());
+            List<Long> placeIds = records.stream().filter(s -> s.getPlaceId() != null).map(DeviceDataDto.DeviceFlowCountVO::getPlaceId).distinct().collect(Collectors.toList());
 
             List<MercPlaceDto.Vo> merPlaceList = R.feignCheckData(mercPlaceService.list(new MercPlaceDto.ListDto().setIds(placeIds)));
             if (Emptys.check(merPlaceList)) {