Просмотр исходного кода

Merge branch 'zzd' of ssh://was.baoshi56.com:10022/var/git/bswas

LD 5 лет назад
Родитель
Сommit
ee7f796457
1 измененных файлов с 2 добавлено и 4 удалено
  1. 2 4
      app/Console/Commands/SyncBatchTask.php

+ 2 - 4
app/Console/Commands/SyncBatchTask.php

@@ -107,10 +107,7 @@ sql
         if (count($update)>1){
             $bool = app(BatchUpdateService::class)->batchUpdate("batches",$update);
             if ($bool)LogService::log(__METHOD__,"SUCCESS-同步更新波次成功",json_encode($update));
-            else{
-                LogService::log(__METHOD__,"ERROR-同步更新波次失败",json_encode($update));
-                return;
-            }
+            else LogService::log(__METHOD__,"ERROR-同步更新波次失败",json_encode($update));
         }
 
         //不存在则录入
@@ -163,6 +160,7 @@ sql;
             $seqnos[$detail->orderno] = $detail->seqno;
         }
         $orders = Order::query()->select("id","code")->whereIn("code",$orderCodes)->get();
+        if (count($orderCodes) != count($orders))LogService::log(__METHOD__,"波次同步-本地订单缺失",json_encode($orderCodes)." | ".count($orderCodes)." | ".count($orders));
         if (count($orderCodes) != count($orders)){
             $orderIds = [];
             $orderMap = [];