List<ResExportStoreOrderVO> omsExportOrderList = null;
try {
omsExportOrderList = orderQueryPool.submit(() -> {
List<ResExportStoreOrderVO> list = new ArrayList<>();
if (CollectionUtil.isNotEmpty(omsOrderIds)) {
list = transferSampleList(omsOrderIds);
}
return list;
}).get();
} catch (InterruptedException e) {
} catch (ExecutionException e) {
} catch (Exception e) {
log.error("异常", e);
} finally {
latch.countDown();
}
这段代码开起来好别扭,求帮忙优化一下