|
|
@@ -242,7 +242,7 @@ class SaleCommissionLists extends BaseAdminDataLists implements ListsSearchInter
|
|
|
$groupOrderIds = GroupOrder::whereIn('property_head_id',$propertyHeadIds)->column('id')??[];
|
|
|
//->whereB('pay_time',1)->
|
|
|
$paid_amounts = GroupUserOrder::alias("a")->whereIn('a.group_order_id',$groupOrderIds)
|
|
|
- ->join('group_service_work as b','a.id = b.group_user_order_id AND b.service_status = 3')
|
|
|
+ ->join('group_service_work b','a.id = b.group_user_order_id AND b.service_status = 3')
|
|
|
->where('a.status',1)
|
|
|
->whereBetween('a.pay_time',[$whereTime[0],$whereTime[1]])
|
|
|
->sum('a.paid_amount');
|