正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -98,7 +98,7 @@ class MonthCount extends Command | @@ -98,7 +98,7 @@ class MonthCount extends Command | ||
| 98 | */ | 98 | */ |
| 99 | public function count($project_id,$url){ | 99 | public function count($project_id,$url){ |
| 100 | $list = DB::connection('custom_mysql')->table('gl_customer_visit') | 100 | $list = DB::connection('custom_mysql')->table('gl_customer_visit') |
| 101 | - ->select(DB::raw('DATE_FORMAT(updated_date, "%Y-%m") as month')) | 101 | + ->select(DB::raw("DATE_FORMAT(updated_date, '%Y-%m') as month")) |
| 102 | ->groupBy('month')->get()->toArray(); | 102 | ->groupBy('month')->get()->toArray(); |
| 103 | foreach ($list as $k=>$v){ | 103 | foreach ($list as $k=>$v){ |
| 104 | $v = (array)$v; | 104 | $v = (array)$v; |
-
请 注册 或 登录 后发表评论