CHANGE_ in getEmployeeProfile API : GWM
This commit is contained in:
parent
5aed4a586f
commit
dc8e9d1e74
@ -69,9 +69,11 @@ class EmployeeRestController extends AdminController
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$emp_code = $this->request->getGet('emp_code');
|
$emp_code = $this->request->getGet('emp_code');
|
||||||
|
$client_id = $this->request->getGet('client_id');
|
||||||
if ($emp_code) {
|
if ($emp_code) {
|
||||||
$relationship = 'self';
|
$relationship = 'self';
|
||||||
$employee = $this->employeeModel->where('emp_code', $emp_code)
|
$employee = $this->employeeModel->where('emp_code', $emp_code)
|
||||||
|
->where('client_id', $client_id)
|
||||||
->where('is_active', 1 )
|
->where('is_active', 1 )
|
||||||
->where('relationship', $relationship)
|
->where('relationship', $relationship)
|
||||||
->first();
|
->first();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user