|
|
@@ -38,7 +38,7 @@ class GroupUserOrderLists extends BaseAdminDataLists implements ListsSearchInter
|
|
|
public function setSearch(): array
|
|
|
{
|
|
|
return [
|
|
|
- '=' => ['a.mobile', 'a.sn','a.status','a.pay_status','a.pay_way','a.refund_status','a.group_activity_id','a.user_equity_id','a.group_order_id','c.group_order_status'],
|
|
|
+ '=' => ['a.sn','a.status','a.pay_status','a.pay_way','a.refund_status','a.group_activity_id','a.user_equity_id','a.group_order_id','c.group_order_status','d.mobile'],
|
|
|
];
|
|
|
}
|
|
|
|
|
|
@@ -67,9 +67,10 @@ class GroupUserOrderLists extends BaseAdminDataLists implements ListsSearchInter
|
|
|
$list = GroupUserOrder::alias('a')
|
|
|
->leftJoin('group_activity b', 'b.id = a.group_activity_id')
|
|
|
->leftJoin('group_order c', 'c.id = a.group_order_id')
|
|
|
+ ->leftJoin('user d', 'd.id = a.user_id')
|
|
|
->where($this->searchWhere)
|
|
|
->where($this->queryWhere())
|
|
|
- ->field(['a.*', 'b.title','b.image','c.status as group_order_status'])
|
|
|
+ ->field(['a.*', 'b.title','b.image','c.status as group_order_status','d.mobile'])
|
|
|
->limit($this->limitOffset, $this->limitLength)
|
|
|
->order(['a.id' => 'desc'])
|
|
|
->select()
|
|
|
@@ -89,6 +90,7 @@ class GroupUserOrderLists extends BaseAdminDataLists implements ListsSearchInter
|
|
|
return GroupUserOrder::alias('a')
|
|
|
->leftJoin('group_activity b', 'b.id = a.group_activity_id')
|
|
|
->leftJoin('group_order c', 'c.id = a.group_order_id')
|
|
|
+ ->leftJoin('user d', 'd.id = a.user_id')
|
|
|
->where($this->searchWhere)
|
|
|
->where($this->queryWhere())
|
|
|
->count();
|