Kaynağa Gözat

结算单修改

yumeng 1 yıl önce
ebeveyn
işleme
4c175c05eb

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

@@ -40,7 +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);
+        Thread.sleep(1000L);
         Map<String, Object> params = new HashMap<>();
         if (!Check.isNull(orderCreateTimeStart)) {
             params.put("orderCreateTimeStart", orderCreateTimeStart);
@@ -49,7 +49,7 @@ public class KuaishouSupplyChainServiceImpl extends ServiceImpl<KuaishouSupplyCh
             params.put("orderCreateTimeEnd", orderCreateTimeEnd);
         }
         params.put("fundType", 1);
-        params.put("limit", 5000);
+        params.put("limit", 200);
         params.put("offset", offset);
 
         Map<String, String> headers = new HashMap<>();
@@ -114,8 +114,8 @@ public class KuaishouSupplyChainServiceImpl extends ServiceImpl<KuaishouSupplyCh
             supplyChains.add(supplyChain);
         }
         supplyChainMapper.replace(supplyChains);
-        if (list.size() >= 5000) {
-            getOrderList(cookie, offset + 5000, orderCreateTimeStart, orderCreateTimeEnd, itemMap);
+        if (list.size() >= 200) {
+            getOrderList(cookie, offset + 200, orderCreateTimeStart, orderCreateTimeEnd, itemMap);
         }
 
     }