sunhao 5 years ago
parent
commit
b272de7696
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Console/Commands/SendOrder.php

+ 2 - 2
app/Console/Commands/SendOrder.php

@@ -28,7 +28,7 @@ class SendOrder extends Command {
28 28
         $today = date('Y-m-d');
29 29
 	$_start = '2019-09-18';
30 30
         //A仓
31
-        $orders = DB::table('order')->where('delivery_date', '<=', $today)->where('delivery_date', '>=', $_start)->where('warehouse', 1)->where(function($query) use($today){
31
+        $orders = DB::table('order')->where('delivery_date', '<=', $today)->where('createTime', '>=', $_start)->where('warehouse', 1)->where(function($query) use($today){
32 32
             $query->where('logistics_id','=','')->orWhere('logistics_id','is',null);
33 33
         })->lists('id');
34 34
         if(!empty($orders)){
@@ -40,7 +40,7 @@ class SendOrder extends Command {
40 40
 var_dump($res);
41 41
         } 
42 42
         //B仓
43
-	$orders = DB::table('order')->where('delivery_date', '<=', $today)->where('delivery_date', '>=', $_start)->where('warehouse', 2)->where(function($query) use($today){
43
+	$orders = DB::table('order')->where('delivery_date', '<=', $today)->where('createTime', '>=', $_start)->where('warehouse', 2)->where(function($query) use($today){
44 44
             $query->where('logistics_id','=','')->orWhere('logistics_id','is',null);
45 45
         })->lists('id');
46 46
         if(!empty($orders)){