派单
This commit is contained in:
parent
5b9c70ab43
commit
3b22cbe600
|
|
@ -345,7 +345,7 @@ class Worker extends Backend
|
||||||
}
|
}
|
||||||
if ($item_id) {
|
if ($item_id) {
|
||||||
$ids = $this->getParentIdsFromArray($item_id,$this->items);
|
$ids = $this->getParentIdsFromArray($item_id,$this->items);
|
||||||
|
$ids [] = $item_id;
|
||||||
$worker_ids = WorkerItem::whereIn('item_id',$ids)->column('worker_id');
|
$worker_ids = WorkerItem::whereIn('item_id',$ids)->column('worker_id');
|
||||||
$build->whereIn('id',$worker_ids);
|
$build->whereIn('id',$worker_ids);
|
||||||
}
|
}
|
||||||
|
|
@ -400,7 +400,7 @@ ORDER BY distance;",[$order->lng,$order->lat]);
|
||||||
|
|
||||||
|
|
||||||
$ids = $this->getParentIdsFromArray($order->item_id,$this->items);
|
$ids = $this->getParentIdsFromArray($order->item_id,$this->items);
|
||||||
|
$ids [] = $order->item_id;
|
||||||
$worker_items_ids = (new WorkerItem())
|
$worker_items_ids = (new WorkerItem())
|
||||||
->whereIn('item_id', $ids)
|
->whereIn('item_id', $ids)
|
||||||
->whereIn('worker_id', $worker_ids)
|
->whereIn('worker_id', $worker_ids)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user