Commit 847f09ca by 杨林龙

增加设备批量同步

1 parent 5bfb4c80
......@@ -142,8 +142,9 @@ public class VehicleInfoImportListener extends AnalysisEventListener<VehicleInfo
List<String> remoteSnList = importSnList.stream().filter(sn -> !allSnList.contains(sn)).collect(Collectors.toList());
// 从老E盾库同步设备
List<DeviceDTO> deviceDTOList = remoteFeignDeviceService.getOrStoreDeviceBySns(remoteSnList);
log.info("remoteSnList:" + JSONUtil.toJsonStr(remoteSnList) + ";成功同步数据的条数:" + deviceDTOList.size());
log.info("remoteSnList:" + JSONUtil.toJsonStr(remoteSnList));
if (CollectionUtils.isNotEmpty(deviceDTOList)) {
log.info("成功同步数据的条数:" + deviceDTOList.size());
List<String> remoteExistSnList = deviceDTOList.stream().map(DeviceDTO::getSn).collect(Collectors.toList());
allSnList.addAll(remoteExistSnList);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!