修复错误

This commit is contained in:
mkm 2023-11-09 11:28:09 +08:00
parent f01ef2d039
commit 685f914077

View File

@ -69,7 +69,6 @@ class StoreOrderBehalf extends BaseController
{
[$page, $limit] = $this->getPage();
$status = $this->request->param('status','all');
$uid = $this->request->userInfo()['uid'];
$mer_id = Db::name('store_service')->where('uid', $uid)->where('is_del', 0)->value('mer_id');
if ($mer_id) {
@ -81,6 +80,11 @@ class StoreOrderBehalf extends BaseController
$column = Db::name('store_order_behalf')->where('mer_id', $mer_id)->where($where)->page($page)->limit($limit)->column('order_id');
if ($column) {
$where['order_id'] = $column;
if($status==0){
$where[]=['status','=',2];
}elseif($status==1){
$where[]=['status','=',3];
}
return app('json')->success($this->repository->getList($where, 1, 100));
}
}