yumeng 1 年間 前
コミット
93c5216b01

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

@@ -115,7 +115,12 @@ public class KuaishouSupplyChainServiceImpl extends ServiceImpl<KuaishouSupplyCh
             supplyChain.setItemCommissionRate(itemMap.get(item.getLong("itemId")));
             supplyChains.add(supplyChain);
         }
-        supplyChainMapper.replace(supplyChains);
+        try {
+            supplyChainMapper.replace(supplyChains);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+
         if (list.size() >= 200) {
             getOrderList(cookie, offset + 200, orderCreateTimeStart, orderCreateTimeEnd, itemMap);
         }
@@ -130,7 +135,7 @@ public class KuaishouSupplyChainServiceImpl extends ServiceImpl<KuaishouSupplyCh
     @Override
     public void getSettlementData(String cookie, Integer offset, Long orderCreateTimeStart, Long orderCreateTimeEnd) throws Exception {
 
-       String getUrl = "https://cps.kwaixiaodian.com/distribute/pc/investment/bill/list";
+        String getUrl = "https://cps.kwaixiaodian.com/distribute/pc/investment/bill/list";
         Map<String, Object> params = new HashMap<>();
         if (!Check.isNull(orderCreateTimeStart)) {
             params.put("settlementTimeStart", orderCreateTimeStart);