mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
1、webcad拆单导入优化;2、配件、板材导入计数器超时优化;
This commit is contained in:
+2
-1
@@ -38,6 +38,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.stream.Collectors;
|
||||
@@ -301,7 +302,7 @@ public class PartsServiceImpl implements PartsService {
|
||||
|
||||
try {
|
||||
// 等待所有任务查询完成
|
||||
latch.await();
|
||||
latch.await(10, TimeUnit.SECONDS);
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
throw new ServiceException(PARTS_IMPORT_INTERRUPT_ERROR);
|
||||
|
||||
+2
-1
@@ -33,6 +33,7 @@ import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.stream.Collectors;
|
||||
@@ -244,7 +245,7 @@ public class PlateManageServiceImpl implements PlateManageService {
|
||||
|
||||
try {
|
||||
// 等待所有任务查询完成
|
||||
latch.await();
|
||||
latch.await(10, TimeUnit.SECONDS);
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
throw new ServiceException(PLATE_IMPORT_INTERRUPT_ERROR);
|
||||
|
||||
Reference in New Issue
Block a user