|
|
@@ -42,14 +42,17 @@ public class LingxingTask {
|
|
|
Set<String> appSet =lingXingConfig.getApps().keySet();
|
|
|
if(appSet.size()>0){
|
|
|
|
|
|
- final CountDownLatch countDownLatch = new CountDownLatch(appSet.size());
|
|
|
+ //final CountDownLatch countDownLatch = new CountDownLatch(appSet.size());
|
|
|
try {
|
|
|
appSet.stream().forEach(appId -> {
|
|
|
lingxingService.getSellerOrders(appId);
|
|
|
});
|
|
|
- countDownLatch.await();
|
|
|
- } catch (InterruptedException e) {
|
|
|
+ //countDownLatch.await();
|
|
|
+ }/* catch (InterruptedException e) {
|
|
|
e.printStackTrace();
|
|
|
+ }*/
|
|
|
+ catch (Exception e){
|
|
|
+ System.out.println( e.getMessage());;
|
|
|
}
|
|
|
}
|
|
|
logger.info("同步领星订单-结束:用时"+((System.currentTimeMillis()-date.getTime())/1000));
|