|
|
|
|
@ -150,10 +150,9 @@ class StatisticsController extends CommonController
|
|
|
|
|
public function syncOrderItems(Request $request)
|
|
|
|
|
{
|
|
|
|
|
//采用指定时间段订单号
|
|
|
|
|
$orders = ["20201102000008", "20201201000006", "20201105000008"];
|
|
|
|
|
$order_ids = Orders::where("serial",">","20210601000000")->pluck("id")->toArray();
|
|
|
|
|
dd($order_ids);
|
|
|
|
|
$model = OrderItems::whereIn("order_id", $order_ids);
|
|
|
|
|
$orders = Orders::where("serial",">","20210601000000")->select("serial","id","created_at")->get();
|
|
|
|
|
dd($orders);
|
|
|
|
|
$model = OrderItems::whereIn("order_id",$orders->pluck("id")->toArray());
|
|
|
|
|
//采用指定订单号结束
|
|
|
|
|
|
|
|
|
|
if ($request->last_id) {
|
|
|
|
|
|