Browse Source

会员分析

gorden 4 months ago
parent
commit
1717ac70aa
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/admin/controller/statistics/MemberController.php

+ 3 - 2
app/admin/controller/statistics/MemberController.php

@@ -35,7 +35,7 @@ class MemberController
                     FROM app_member
                     WHERE member_mobile != '0000'
                     GROUP BY month
-                    ORDER BY month DESC 
+                    ORDER BY month ASC 
                 ) t1
                 JOIN (
                     SELECT DATE_FORMAT(FROM_UNIXTIME(member_addtimes), '%Y/%m') AS month,
@@ -43,10 +43,11 @@ class MemberController
                     FROM app_member
                     WHERE member_mobile != '0000'
                     GROUP BY month
-                    ORDER BY month DESC 
+                    ORDER BY month ASC 
                 ) t2 ON t1.month >= t2.month
                 GROUP BY t1.month;
         ");
+        dump($newAddition);
         $newAdditionData = [];
         foreach ($newAddition as $item) {
             $newAdditionData['category'][] = $item->month;