增加异常捕获

master
wj 2 years ago
parent fc2ab43807
commit 92a6a6d253

@ -113,8 +113,16 @@ public class SyncHeartTask implements SchedulingConfigurer {
redisUtil.set("SPS_SYNC_DOWNLOAD_DATA", lastTime);
}
if (curTime - lastTime > timeInterval) {
heartService.dlAllOrder();
heartService.dlAllDiProducts();
try {
heartService.dlAllOrder();
} catch (Exception e) {
e.printStackTrace();
}
try {
heartService.dlAllDiProducts();
} catch (Exception e) {
e.printStackTrace();
}
Arrays.stream(BasicExportTypeEnum.values()).forEach(i -> {
heartService.pullData(i);
});

Loading…
Cancel
Save