소스 검색

fleat:update table

igb 4 주 전
부모
커밋
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);