CHANGE_ in getEmployeeProfile API : GWM

This commit is contained in:
bitbucket 2024-04-27 14:40:32 +05:30
parent 5aed4a586f
commit dc8e9d1e74

View File

@ -69,9 +69,11 @@ class EmployeeRestController extends AdminController
{
try {
$emp_code = $this->request->getGet('emp_code');
$client_id = $this->request->getGet('client_id');
if ($emp_code) {
$relationship = 'self';
$employee = $this->employeeModel->where('emp_code', $emp_code)
->where('client_id', $client_id)
->where('is_active', 1 )
->where('relationship', $relationship)
->first();