修复错误
This commit is contained in:
parent
f01ef2d039
commit
685f914077
@ -69,7 +69,6 @@ class StoreOrderBehalf extends BaseController
|
|||||||
{
|
{
|
||||||
[$page, $limit] = $this->getPage();
|
[$page, $limit] = $this->getPage();
|
||||||
$status = $this->request->param('status','all');
|
$status = $this->request->param('status','all');
|
||||||
|
|
||||||
$uid = $this->request->userInfo()['uid'];
|
$uid = $this->request->userInfo()['uid'];
|
||||||
$mer_id = Db::name('store_service')->where('uid', $uid)->where('is_del', 0)->value('mer_id');
|
$mer_id = Db::name('store_service')->where('uid', $uid)->where('is_del', 0)->value('mer_id');
|
||||||
if ($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');
|
$column = Db::name('store_order_behalf')->where('mer_id', $mer_id)->where($where)->page($page)->limit($limit)->column('order_id');
|
||||||
if ($column) {
|
if ($column) {
|
||||||
$where['order_id'] = $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));
|
return app('json')->success($this->repository->getList($where, 1, 100));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user