新增收银台查询的类型
This commit is contained in:
parent
17a6b57673
commit
5b01a6ab49
@ -46,13 +46,13 @@ class StoreOrderLists extends BaseAdminDataLists implements ListsSearchInterface
|
|||||||
*/
|
*/
|
||||||
public function lists(): array
|
public function lists(): array
|
||||||
{
|
{
|
||||||
$store_id = $this->adminInfo['store_id'];
|
$store_id = $this->adminInfo['store_id']??5;
|
||||||
$this->searchWhere[] = ['store_id' ,'=',$store_id];
|
$this->searchWhere[] = ['store_id' ,'=',$store_id];
|
||||||
$is_sashier=$this->request->get('is_sashier');
|
$is_sashier=$this->request->get('is_sashier');
|
||||||
if($is_sashier==1){//收银台订单
|
if($is_sashier==1){//收银台订单
|
||||||
$this->searchWhere[] = ['pay_type','in',[17,9,13]];
|
$this->searchWhere[] = ['pay_type','in',[17,9,13,18]];
|
||||||
}elseif($is_sashier==2){//小程序订单
|
}elseif($is_sashier==2){//小程序订单
|
||||||
$this->searchWhere[] = ['pay_type','in',[7,3]];
|
$this->searchWhere[] = ['pay_type','in',[7,3,18]];
|
||||||
}
|
}
|
||||||
return StoreOrder::where($this->searchWhere)
|
return StoreOrder::where($this->searchWhere)
|
||||||
->field(['id', 'order_id', 'pay_price', 'pay_time', 'pay_type', 'status','paid'])
|
->field(['id', 'order_id', 'pay_price', 'pay_time', 'pay_type', 'status','paid'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user