WELLNESS issue : GWM
This commit is contained in:
parent
565fa516cf
commit
c471131171
@ -3061,12 +3061,23 @@ class EmployeeRestController extends AdminController
|
|||||||
->where('client_branch_id', $this->request->getGet('client_branch_id'))
|
->where('client_branch_id', $this->request->getGet('client_branch_id'))
|
||||||
->where('is_active', 1)->findAll();
|
->where('is_active', 1)->findAll();
|
||||||
|
|
||||||
$employeeSelfData = $this->employeeModel->where('emp_code', $this->request->getGet('emp_code'))
|
// get self data corporate email ore mobile no should not be null
|
||||||
->where('client_id', $this->request->getGet('client_id'))
|
$employeeSelfData = $this->employeeModel
|
||||||
->where('client_branch_id', $this->request->getGet('client_branch_id'))
|
->where('emp_code', $this->request->getGet('emp_code'))
|
||||||
->where('family_floater_key', 'self')->where('is_active', 1)
|
->where('client_id', $this->request->getGet('client_id'))
|
||||||
->orderBy('id', 'DESC')
|
->where('client_branch_id', $this->request->getGet('client_branch_id'))
|
||||||
->get()->getRow();
|
->where('family_floater_key', 'self')
|
||||||
|
->where('is_active', 1)
|
||||||
|
->groupStart()
|
||||||
|
->where('email_corporate IS NOT NULL', null, false)
|
||||||
|
->orWhere('mobile IS NOT NULL', null, false)
|
||||||
|
->groupEnd()
|
||||||
|
->orderBy('id', 'DESC')
|
||||||
|
->get()
|
||||||
|
->getRow();
|
||||||
|
|
||||||
|
// dd(db_connect()->getLastQuery()->getQuery());
|
||||||
|
// dd($employeeSelfData->id); //employee id
|
||||||
|
|
||||||
$employeeName = $employeeSelfData->name ?? "";
|
$employeeName = $employeeSelfData->name ?? "";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user