diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/census/service/impl/TargetServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/census/service/impl/TargetServiceImpl.java index f6ec91c..0a785f3 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/census/service/impl/TargetServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/census/service/impl/TargetServiceImpl.java @@ -405,7 +405,7 @@ public class TargetServiceImpl implements TargetService { CountDownLatch countDownLatch = new CountDownLatch(areas.size()); List completes = new ArrayList<>(); exe.execute(()-> { - if(StringUtil.isEmpty(areaName)){ + if(!StringUtil.isEmpty(areaName)){ for (Dept dept: areas.stream().filter(area->area.getDeptName().equals(areaName)).collect(Collectors.toList())) { // 双票 DoublePassRateVO doublePass = ticketInfoAllClient.getDoublePassRate(Collections.singletonList(dept.getId()), firstDateTime, LocalDateTime.now()); @@ -441,8 +441,8 @@ public class TargetServiceImpl implements TargetService { } completes.add(completeTicketVo); } - countDownLatch.countDown(); } + countDownLatch.countDown(); }); // 等待所有线程执行完成 try {