USERPROFILE smc_emp_code added
This commit is contained in:
parent
c5cac2811e
commit
0447e35446
@ -100,7 +100,7 @@ class SMC_Credit_PD_Model extends SPARQ_Model {
|
||||
{
|
||||
|
||||
|
||||
$fields = array('RCM_STATE_MAPPING.fk_user_id as userid','USERPROFILE.first_name','USERPROFILE.last_name','USERPROFILEROLES.user_role');
|
||||
$fields = array('RCM_STATE_MAPPING.fk_user_id as userid','USERPROFILE.first_name','USERPROFILE.last_name','USERPROFILEROLES.user_role','USERPROFILE.smc_emp_code');
|
||||
$table = RCM_STATE_MAPPING.' as RCM_STATE_MAPPING';
|
||||
$where_condition_array = array('RCM_STATE_MAPPING.isactive '=>1,'RCM_STATE_MAPPING.fk_state_id' => $state);
|
||||
$joins = array(
|
||||
@ -126,7 +126,7 @@ class SMC_Credit_PD_Model extends SPARQ_Model {
|
||||
|
||||
$temp2 = array(); // to filter RCM user's state id we using Temp2 array.
|
||||
foreach($RCMUsersStateId as $stid){array_push($temp2,$stid['fk_state_id']);}
|
||||
$this->db->select('USERPROFILE.userid,USERPROFILE.first_name,USERPROFILE.last_name,USERPROFILEROLES.user_role');
|
||||
$this->db->select('USERPROFILE.userid,USERPROFILE.first_name,USERPROFILE.last_name,USERPROFILEROLES.user_role,USERPROFILE.smc_emp_code');
|
||||
$this->db->from(USERPROFILE.' as USERPROFILE');
|
||||
$this->db->join(USERPROFILEROLES.' as USERPROFILEROLES',"USERPROFILE.userid = USERPROFILEROLES.fk_userid and USERPROFILEROLES.user_role = $role and USERPROFILEROLES.isactive = 1",'INNER');
|
||||
$this->db->where_in('USERPROFILE.fk_state',$temp2);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user