|
|
@@ -20,6 +20,8 @@ use App\Jobs\StoreCreateInstantBill;
|
|
|
use App\Jobs\WeightUpdateInstantBill;
|
|
|
use App\MaterialBox;
|
|
|
use App\MaterialBoxModel;
|
|
|
+use App\OracleDOCASNHeader;
|
|
|
+use App\OracleDOCOrderHeader;
|
|
|
use App\Order;
|
|
|
use App\OrderPackage;
|
|
|
use App\Owner;
|
|
|
@@ -347,4 +349,22 @@ sql;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ public function testDocOrder()
|
|
|
+ {
|
|
|
+ $now=Carbon::now()->toDateTimeString();
|
|
|
+ $before=Carbon::now()->subMinutes(30)->toDateTimeString();
|
|
|
+// dd($now,$before);
|
|
|
+ $orders=OracleDOCOrderHeader::query()
|
|
|
+ ->whereIn('sostatus',['40','50','60','61'])
|
|
|
+// ->where('edittime','>=',$before)
|
|
|
+// ->where('edittime','<=',$now)
|
|
|
+ ->whereNotNull('soreference5')
|
|
|
+ ->where('manualflag','N')
|
|
|
+ ->whereIn('customerid',['BAOSHI']) //指定货主
|
|
|
+ ->where('releasestatus','!=','H')
|
|
|
+ ->get();
|
|
|
+// ->update(['manualflag'=>'N','edittime'=>$now]);
|
|
|
+ dd($orders);
|
|
|
+ }
|
|
|
}
|