sunhao 5 years ago
parent
commit
0f1f7e9f71
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Console/Commands/SyncOrderToMj.php

+ 1 - 1
app/Console/Commands/SyncOrderToMj.php

@@ -42,7 +42,7 @@ class SyncOrderToMj extends Command {
42 42
 
43 43
         foreach($result as $id){
44 44
             #再次判断订单是否可同步
45
-            $thisOrder = Order::where('delivery_date', $today_date)->where('id', $id)->where('warehouse', 3)->where('is_del', 0)->whereIn('status', 2)->whereNull('orderCode')->first();
45
+            $thisOrder = Order::select('id')->where('delivery_date', $today_date)->where('id', $id)->where('warehouse', 3)->where('is_del', 0)->whereIn('status', 2)->whereNull('orderCode')->first();
46 46
             if(empty($thisOrder)){
47 47
                 continue;
48 48
             }