调整订单监控查询

This commit is contained in:
luofei 2023-07-14 15:04:35 +08:00
parent a04dafd7ae
commit 4c55b68f7e
2 changed files with 3 additions and 3 deletions

View File

@ -2573,9 +2573,9 @@ class StoreOrderRepository extends BaseRepository
* @throws DbException
* @throws ModelNotFoundException
*/
public function purchaseOrder($uid, $keyword, $page, $limit)
public function purchaseOrder($where, $keyword, $page, $limit)
{
$orders = StoreOrder::where('uid', $uid)
$orders = StoreOrder::where($where)
->where('activity_type', 98)
->whereIn('status', [StoreOrder::STATUS_WAIT_COMMENT, StoreOrder::STATUS_FINISH])
->where('is_del', 0)

View File

@ -388,7 +388,7 @@ class StoreOrder extends BaseController
{
[$page, $limit] = $this->getPage();
$keyword = $this->request->param('keyword');
$list = $orderRepository->purchaseOrder($this->request->uid(), $keyword, $page, $limit);
$list = $orderRepository->purchaseOrder(['supplier_mer_id' => $merId], $keyword, $page, $limit);
return app('json')->success($list);
}