yumeng vor 1 Jahr
Ursprung
Commit
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
     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<>();
         if (!Check.isNull(orderCreateTimeStart)) {
             params.put("orderCreateTimeStart", orderCreateTimeStart);
@@ -113,7 +114,6 @@ public class KuaishouSupplyChainServiceImpl extends ServiceImpl<KuaishouSupplyCh
             supplyChains.add(supplyChain);
         }
         supplyChainMapper.replace(supplyChains);
-        Thread.sleep(5000L);
         if (list.size() >= 5000) {
             getOrderList(cookie, offset + 5000, orderCreateTimeStart, orderCreateTimeEnd, itemMap);
         }