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