tamilmaran : ps

This commit is contained in:
sanjeev 2021-12-10 20:18:24 +05:30
parent baf49c22c0
commit 63807e595e

View File

@ -2299,7 +2299,7 @@ class PD_Model extends SPARQ_Model {
//Get SMC CityWise Agency
function getCityWiseSMCAgency($city){
$this->db->select('AGENCYLIST.agency_id as entity_id, AGENCYLIST.agency_name as full_name as name,AGENCYLIST.agency_name as full_name, AGENCYLIST.agency_abbr as short_name,AGENCYLIST.fk_city_id,AGENCYLIST.mail_id');
$this->db->select('AGENCYLIST.agency_id as entity_id, AGENCYLIST.agency_name as name,AGENCYLIST.agency_name as full_name, AGENCYLIST.agency_abbr as short_name,AGENCYLIST.fk_city_id,AGENCYLIST.mail_id');
$this->db->from(AGENCYLIST.' as AGENCYLIST');
$this->db->where('AGENCYLIST.isactive',1);
if($city!=""){
@ -2324,7 +2324,7 @@ class PD_Model extends SPARQ_Model {
$this->db->where_in('USERPROFILEROLES.user_role',$role);
// if(!empty($entity)){ $this->db->where('USERPROFILE.fk_entity_id',$entity); }
$result = $this->db->get()->result_array();
print_r($this->db->last_query());die();
// print_r($this->db->last_query());die();
return $result;
}