瀏覽代碼

no message

wzh 5 年之前
父節點
當前提交
1e6d3367f3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/application/controllers/Home.php

+ 1 - 1
api/application/controllers/Home.php

@@ -369,7 +369,7 @@ class Home extends Base_Controller {
         $where1 = $where;
         $where1[] = 'L.netstatus = 1 AND L.lighteness > 0';
         $where1 = 'where '.implode(' AND ', $where1);
-        if ($type == 7) {
+        if ($type == 5) {
             $query = 'select t1.total,t1.id from (select count(*) as total,'.$fields.' from lampinfo AS L left join project AS P on P.id = L.projectid left join global_location G on P.cityid = G.id '.$where1.' '.$group.') as t1 order by total DESC limit 10';
         }else{
             $query = 'select t1.total,C.id from (select count(*) as total,'.$fields.' from lampinfo AS L left join project AS P on P.id = L.projectid left join global_location G on P.cityid = G.id '.$where1.' '.$group.') as t1 left join company as C on t1.company = C.id order by total DESC limit 10';