igb 4 недель назад
Родитель
Сommit
b6a7d28479
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      dashboard.php
  2. 1 1
      system/dashboard.php

+ 1 - 1
dashboard.php

@@ -105,7 +105,7 @@ checkLogin("信息管理");
         $data_arr1 = [];
         $text_arr1 = [];
         $result = mysqli_query($conn, "SELECT businessType, COUNT(DISTINCT cs_code) as cc FROM customer 
-                                     LEFT JOIN clienttype ON customer.cs_type=clienttypeid 
+                                     LEFT JOIN clienttype ON customer.cs_type=clienttype.id 
                                      GROUP BY businessType");
         while($row = mysqli_fetch_assoc($result)) {
             $data_arr1[] = number_format($row['cc']/$tn, 4);

+ 1 - 1
system/dashboard.php

@@ -94,7 +94,7 @@ checkLogin("信息管理");
         $data_arr1 = [];
         $text_arr1 = [];
         $result = mysqli_query($conn, "SELECT businessType, COUNT(DISTINCT cs_code) as cc FROM customer 
-                                     LEFT JOIN clienttype ON customer.cs_type=clienttypeid 
+                                     LEFT JOIN clienttype ON customer.cs_type=clienttype.id 
                                      GROUP BY businessType");
         while($row = mysqli_fetch_assoc($result)) {
             $data_arr1[] = number_format($row['cc']/$tn, 4);