|
...
|
...
|
@@ -65,6 +65,7 @@ class MonthProjectCount extends Command |
|
|
|
$data = [];
|
|
|
|
$list = DB::connection('custom_mysql')->table('gl_customer_visit')
|
|
|
|
->select(DB::raw('DATE_FORMAT(updated_date, "%Y-%m") as month'))
|
|
|
|
->orderBy('month', 'asc')
|
|
|
|
->groupBy('month')->get()->toArray();
|
|
|
|
foreach ($list as $v){
|
|
|
|
$data[] = (array)$v;
|
...
|
...
|
|