This commit is contained in:
chenbo 2024-02-29 17:00:52 +08:00
parent c8249989dc
commit 3e3d91ef9f

View File

@ -69,7 +69,12 @@ class CostConsultationReportController extends BaseAdminController
}
});
$count = $query->count();
$lists = $query->page($page_no, $page_size)->select();
$lists = $query->page($page_no, $page_size)->select()->each(function($item){
$item['date'] = date('Y-m-d', $item['date']);
$item['starting'] = date('Y-m-d', $item['starting']);
$item['endtime'] = date('Y-m-d', $item['endtime']);
return $item;
});
return $this->success('成功', compact('count', 'lists', 'page_no', 'page_size'));
}