|
@@ -1201,9 +1201,11 @@ class FinanceRepository extends BaseRepository
|
|
1201
|
return $item;
|
1201
|
return $item;
|
|
1202
|
});
|
1202
|
});
|
|
1203
|
$data['count'] = $query->count();
|
1203
|
$data['count'] = $query->count();
|
|
|
|
1204
|
+ $query1 = $this->date_where($query1, $where['date'], 'ub.create_time');
|
|
1204
|
$statistics = $query1->field('sum(ub.number) money,ub.commission_type')->group('ub.commission_type')->select()->toArray();
|
1205
|
$statistics = $query1->field('sum(ub.number) money,ub.commission_type')->group('ub.commission_type')->select()->toArray();
|
|
1205
|
$statistics = array_column($statistics, 'money', 'commission_type');
|
1206
|
$statistics = array_column($statistics, 'money', 'commission_type');
|
|
1206
|
|
1207
|
|
|
|
|
1208
|
+ $query3 = $this->date_where($query3, $where['date'], 'ub.create_time');
|
|
1207
|
$statistics_tow = $query3->field('sum(ub.number) money,ub.status')->group('ub.status')->select()->toArray();
|
1209
|
$statistics_tow = $query3->field('sum(ub.number) money,ub.status')->group('ub.status')->select()->toArray();
|
|
1208
|
$statistics_tow = array_column($statistics_tow, 'money', 'status');
|
1210
|
$statistics_tow = array_column($statistics_tow, 'money', 'status');
|
|
1209
|
|
1211
|
|