|
@@ -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();
|
|
|
|