三轮车最新订单和最近10笔订单
This commit is contained in:
parent
3a485e846d
commit
642aa37fbc
@ -205,9 +205,13 @@ class Logistics extends BaseController
|
||||
public function logisticsMapCount()
|
||||
{
|
||||
$courierId = $this->request->param('courier_id');
|
||||
$latestOrder = [];
|
||||
$latestTenOrder = [];
|
||||
// 最近一次取货地址 最新一笔的配送中订单的取货地址
|
||||
$latestLogistics = Db::connect('logistics')->name('logistics')->where(['status'=>1, 'courier_id' => $courierId])->order('id', 'desc')->find();
|
||||
|
||||
if (empty($latestLogistics)) {
|
||||
return app('json')->success(compact('latestOrder', 'latestTenOrder'));
|
||||
}
|
||||
$latestOrderInfo = Db::name('store_order')->where(['order_id'=>$latestLogistics['order_id']])->find();
|
||||
|
||||
$merchant = Db::name('merchant')->where(['mer_id'=>$latestOrderInfo['mer_id']])->find();
|
||||
|
Loading…
x
Reference in New Issue
Block a user