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()));
});