Java 异步调用方法
AtomicReference<Boolean> isSyncSuccess = new AtomicReference<>(false);
CompletableFuture<Void> future = CompletableFuture.runAsync(() ->
{
isSyncSuccess.set(syncErpClothBarCodeInfoService.sync(clothBarCodeInfo_DB.getPlanID()));
});
AtomicReference<Boolean> isSyncSuccess = new AtomicReference<>(false);
CompletableFuture<Void> future = CompletableFuture.runAsync(() ->
{
isSyncSuccess.set(syncErpClothBarCodeInfoService.sync(clothBarCodeInfo_DB.getPlanID()));
});