物流订单商品名称
This commit is contained in:
parent
9aba394a36
commit
96d20241b7
@ -314,10 +314,11 @@ class Logistics extends BaseController
|
|||||||
$query->whereBetween('ps_time', [$startTime, $endTime]);
|
$query->whereBetween('ps_time', [$startTime, $endTime]);
|
||||||
})->count();
|
})->count();
|
||||||
}
|
}
|
||||||
|
$list = $list->toArray();
|
||||||
foreach ($list as &$item) {
|
foreach ($list as &$item) {
|
||||||
$item['product_name'] = StoreOrderProduct::alias('o')->join('store_product p', 'o.product_id=p.product_id')->where('o.order_id', $item['order_id'])->value('p.store_name');
|
$item['product_name'] = StoreOrderProduct::alias('o')->join('store_product p', 'o.product_id=p.product_id')->where('o.order_id', $item['order_id'])->value('p.store_name');
|
||||||
}
|
}
|
||||||
unset($item);
|
|
||||||
return app('json')->success(compact('count', 'list'));
|
return app('json')->success(compact('count', 'list'));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user