yumeng 1 年之前
父节点
当前提交
c18f74b945

+ 1 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouSupplyChainServiceImpl.java

@@ -40,6 +40,7 @@ public class KuaishouSupplyChainServiceImpl extends ServiceImpl<KuaishouSupplyCh
 
 
     @Override
     @Override
     public void getOrderList(String cookie, Integer offset, Long orderCreateTimeStart, Long orderCreateTimeEnd, Map<Long, Long> itemMap) throws Exception {
     public void getOrderList(String cookie, Integer offset, Long orderCreateTimeStart, Long orderCreateTimeEnd, Map<Long, Long> itemMap) throws Exception {
+        Thread.sleep(5000L);
         Map<String, Object> params = new HashMap<>();
         Map<String, Object> params = new HashMap<>();
         if (!Check.isNull(orderCreateTimeStart)) {
         if (!Check.isNull(orderCreateTimeStart)) {
             params.put("orderCreateTimeStart", orderCreateTimeStart);
             params.put("orderCreateTimeStart", orderCreateTimeStart);
@@ -113,7 +114,6 @@ public class KuaishouSupplyChainServiceImpl extends ServiceImpl<KuaishouSupplyCh
             supplyChains.add(supplyChain);
             supplyChains.add(supplyChain);
         }
         }
         supplyChainMapper.replace(supplyChains);
         supplyChainMapper.replace(supplyChains);
-        Thread.sleep(5000L);
         if (list.size() >= 5000) {
         if (list.size() >= 5000) {
             getOrderList(cookie, offset + 5000, orderCreateTimeStart, orderCreateTimeEnd, itemMap);
             getOrderList(cookie, offset + 5000, orderCreateTimeStart, orderCreateTimeEnd, itemMap);
         }
         }