FIX_ECARD_CLIENTID_ADDED_IN_MODEL
This commit is contained in:
parent
1ba4618a09
commit
1b3a7c85c0
@ -814,7 +814,7 @@ class EmployeePolicyModel extends Model
|
|||||||
->get()->getResultArray();
|
->get()->getResultArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getECardDataUsingMd5($client_policy_id, $emp_code){
|
public function getECardDataUsingMd5($client_policy_id, $emp_code,$client_id){
|
||||||
|
|
||||||
$result = $this->db->table('employees e')
|
$result = $this->db->table('employees e')
|
||||||
->select('e.id,
|
->select('e.id,
|
||||||
@ -829,7 +829,7 @@ class EmployeePolicyModel extends Model
|
|||||||
e.doj,
|
e.doj,
|
||||||
e.band,
|
e.band,
|
||||||
TIMESTAMPDIFF(YEAR, e.dob, CURDATE()) AS emp_age,
|
TIMESTAMPDIFF(YEAR, e.dob, CURDATE()) AS emp_age,
|
||||||
(SELECT name FROM employees WHERE relationship = "Self" and emp_code = ' . $this->db->escape($emp_code) . ') AS self,
|
(SELECT name FROM employees WHERE relationship = "Self" and emp_code = ' . $this->db->escape($emp_code) . ' and client_id = '.$client_id.') AS self,
|
||||||
|
|
||||||
|
|
||||||
ep.tpa_id,
|
ep.tpa_id,
|
||||||
@ -881,7 +881,7 @@ class EmployeePolicyModel extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function getECardSingleData($rand_string, $emp_code){
|
public function getECardSingleData($rand_string, $emp_code,$client_id){
|
||||||
|
|
||||||
$result = $this->db->table('employees e')
|
$result = $this->db->table('employees e')
|
||||||
->select('e.id,
|
->select('e.id,
|
||||||
@ -896,7 +896,7 @@ class EmployeePolicyModel extends Model
|
|||||||
e.doj,
|
e.doj,
|
||||||
e.band,
|
e.band,
|
||||||
TIMESTAMPDIFF(YEAR, e.dob, CURDATE()) AS emp_age,
|
TIMESTAMPDIFF(YEAR, e.dob, CURDATE()) AS emp_age,
|
||||||
(SELECT name FROM employees WHERE relationship = "Self" and emp_code = ' . $this->db->escape($emp_code) . ') AS self,
|
(SELECT name FROM employees WHERE relationship = "Self" and emp_code = ' . $this->db->escape($emp_code) . ' and client_id = '.$client_id.') AS self,
|
||||||
|
|
||||||
|
|
||||||
ep.tpa_id,
|
ep.tpa_id,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user