|
|
|
@ -16,6 +16,7 @@ class InvoiceFinalReport extends Base |
|
|
|
|
|
|
|
$param = $this->request->get(); |
|
|
|
$limit = $this->request->get('size', config('apiadmin.ADMIN_LIST_DEFAULT')); |
|
|
|
$start = $this->request->get('page', 1); |
|
|
|
$where = [['status', '=', 3]]; |
|
|
|
|
|
|
|
if (isset($param['expire_time']) && !empty($param['expire_time'])) { |
|
|
|
@ -27,7 +28,7 @@ class InvoiceFinalReport extends Base |
|
|
|
->field('expire_time, sum(amount) as amount_sum') |
|
|
|
->order('expire_time asc') |
|
|
|
->group('expire_time') |
|
|
|
->page($limit) |
|
|
|
->page($start, $limit) |
|
|
|
->select() |
|
|
|
->toArray(); |
|
|
|
$select = Db::table('invoice_issuance')->where('status', 3)->field('count(expire_time)')->group('expire_time')->select(); |
|
|
|
|