海康卡主修改
This commit is contained in:
parent
4da1379f67
commit
01012b1898
@ -521,8 +521,7 @@ public class AsyncHikvision {
|
||||
}
|
||||
}
|
||||
for (Future future : futures) {
|
||||
while (!future.isDone()) {
|
||||
}
|
||||
future.get();
|
||||
}
|
||||
}
|
||||
Map<String, UfaceDev> devSnMap = allDevList.stream().collect(Collectors.toMap(UfaceDev::getDevSn, Function.identity()));
|
||||
@ -545,8 +544,7 @@ public class AsyncHikvision {
|
||||
futures.add(future);
|
||||
}
|
||||
for (Future future : futures) {
|
||||
while (!future.isDone()) {
|
||||
}
|
||||
future.get();
|
||||
}
|
||||
}
|
||||
//下发完成
|
||||
|
||||
@ -84,6 +84,7 @@ import java.math.BigDecimal;
|
||||
import java.nio.charset.Charset;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
import java.util.stream.Collectors;
|
||||
@ -2252,9 +2253,14 @@ public class WorkerInfoServiceImpl extends ServiceImpl<WorkerInfoMapper, WorkerI
|
||||
Future future = workerInfoService.editWorkerInfoAsync(workerInfo);
|
||||
futures.add(future);
|
||||
}
|
||||
for (Future future : futures) {
|
||||
while (!future.isDone()) {
|
||||
try {
|
||||
for (Future future : futures) {
|
||||
future.get();
|
||||
}
|
||||
} catch (InterruptedException e) {
|
||||
throw new RuntimeException(e);
|
||||
} catch (ExecutionException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
//通知
|
||||
if (SecurityUtils.getUser() != null && SecurityUtils.getUser().getUserId() != null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user