|
@@ -88,10 +88,13 @@ public class TaobaoTask {
|
|
|
startTime = DateTimeUtil.format(DateTimeUtil.addHour(-15), "yyyy-MM-dd HH:mm:ss");
|
|
|
RedisUtils.put("TAOBAO_SYNC_TIME", startTime);
|
|
|
}
|
|
|
+ // 结束时间
|
|
|
+ String endTime = RedisUtils.get("TAOBAO_SYNC_END_TIME");
|
|
|
+ if (startTime == null) {
|
|
|
+ endTime = DateTimeUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss");
|
|
|
+ }
|
|
|
// 批次号
|
|
|
String batchIdST = generateKeyUtil.getSalesBatchIdST();
|
|
|
- // 结束时间
|
|
|
- String endTime = DateTimeUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss");
|
|
|
// 循环抓取
|
|
|
boolean hasNext = true;
|
|
|
long pageNo = 1;
|