DESKTOP-9JTA2JJ\HP 5 years ago
parent
commit
0fddde02dd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      api/application/controllers/Home.php

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

@@ -705,7 +705,7 @@ class Home extends Base_Controller {
         $where = array();
         $proId = intval($this->input->post('proId',true));
 
-        if (!empty($proId)) $where['G2.id'] = $proId;
+        if (!empty($proId)) $where['G2.pid'] = $proId;
         if ($role != SYSTEM_ADMIN) $where['P.company'] = $company;
         $join = array();
 
@@ -722,7 +722,7 @@ class Home extends Base_Controller {
         $where = array();
         $cityId = intval($this->input->post('cityId',true));
 
-        if (!empty($cityId)) $where['G1.id'] = $cityId;
+        if (!empty($cityId)) $where['G1.pid'] = $cityId;
         if ($role != SYSTEM_ADMIN) $where['P.company'] = $company;
         $join = array();