|
...
|
...
|
@@ -98,7 +98,7 @@ class MonthCount extends Command |
|
|
|
*/
|
|
|
|
public function count($project_id,$url){
|
|
|
|
$list = DB::connection('custom_mysql')->table('gl_customer_visit')
|
|
|
|
->select(DB::raw('DATE_FORMAT(updated_date, "%Y-%m") as month'))
|
|
|
|
->select(DB::raw("DATE_FORMAT(updated_date, '%Y-%m') as month"))
|
|
|
|
->groupBy('month')->get()->toArray();
|
|
|
|
foreach ($list as $k=>$v){
|
|
|
|
$v = (array)$v;
|
...
|
...
|
|