处理代发订单的错误
This commit is contained in:
parent
d17cd4353b
commit
15d886e0d4
@ -2420,6 +2420,9 @@ class StoreOrderRepository extends BaseRepository
|
|||||||
public function childrenList($id, $merId)
|
public function childrenList($id, $merId)
|
||||||
{
|
{
|
||||||
$data = $this->dao->get($id);
|
$data = $this->dao->get($id);
|
||||||
|
if (empty($data)) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
$query = $this->dao->getSearch([])->with(['orderProduct'])->where('order_id', '<>', $id);
|
$query = $this->dao->getSearch([])->with(['orderProduct'])->where('order_id', '<>', $id);
|
||||||
if ($merId) $query->where('mer_id', $merId);
|
if ($merId) $query->where('mer_id', $merId);
|
||||||
if ($data['main_id']) {
|
if ($data['main_id']) {
|
||||||
|
@ -478,7 +478,6 @@ class Order extends BaseController
|
|||||||
|
|
||||||
public function childrenList($id)
|
public function childrenList($id)
|
||||||
{
|
{
|
||||||
return app('json')->success([]);
|
|
||||||
$data = $this->repository->childrenList($id, $this->request->merId());
|
$data = $this->repository->childrenList($id, $this->request->merId());
|
||||||
return app('json')->success($data);
|
return app('json')->success($data);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user