Commit 755a1f60502cd7d7b37ac427e5e02552fff3d90e

Authored by 张志伟
1 parent a7d67547

feature(*): 修复bug

- 修复bug
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/pub/PubFollowBizService.java
... ... @@ -170,7 +170,8 @@ public class PubFollowBizService {
170 170 return new ArrayList<>();
171 171 }
172 172 List<PubPoolSimpleVO> simpleList = list.stream()
173   - .map(PubPoolSimpleVO::with).collect(Collectors.toList());
  173 + .map(PubPoolSimpleVO::with)
  174 + .collect(Collectors.toList());
174 175 CompletableFuture<Void>[] futureArr = simpleList.stream()
175 176 .map(pool -> CompletableFuture.runAsync(() -> {
176 177 Customer customer = customerService.queryByFrameNo(pool.getVin(), pool.getGroupId());
... ... @@ -185,7 +186,7 @@ public class PubFollowBizService {
185 186 })).<CompletableFuture<Void>>toArray(CompletableFuture[]::new);
186 187  
187 188 try {
188   - CompletableFuture.allOf(futureArr);
  189 + CompletableFuture.allOf(futureArr).get();
189 190 } catch (Exception e) {
190 191 log.error("数据查询失败", e);
191 192 }
... ...