正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -65,6 +65,7 @@ class MonthProjectCount extends Command | @@ -65,6 +65,7 @@ class MonthProjectCount extends Command | ||
| 65 | $data = []; | 65 | $data = []; |
| 66 | $list = DB::connection('custom_mysql')->table('gl_customer_visit') | 66 | $list = DB::connection('custom_mysql')->table('gl_customer_visit') |
| 67 | ->select(DB::raw('DATE_FORMAT(updated_date, "%Y-%m") as month')) | 67 | ->select(DB::raw('DATE_FORMAT(updated_date, "%Y-%m") as month')) |
| 68 | + ->orderBy('month', 'asc') | ||
| 68 | ->groupBy('month')->get()->toArray(); | 69 | ->groupBy('month')->get()->toArray(); |
| 69 | foreach ($list as $v){ | 70 | foreach ($list as $v){ |
| 70 | $data[] = (array)$v; | 71 | $data[] = (array)$v; |
-
请 注册 或 登录 后发表评论