FIX_OTP_UPDATE_API : RV
This commit is contained in:
parent
a6884e85cd
commit
0eaabe28cf
@ -213,19 +213,19 @@ class RestAuthenticationController extends AdminController
|
|||||||
$client_id = $this->request->getJSON()->client_id ?? null;
|
$client_id = $this->request->getJSON()->client_id ?? null;
|
||||||
$employee_id = $this->request->getJSON()->employee_id ?? null;
|
$employee_id = $this->request->getJSON()->employee_id ?? null;
|
||||||
|
|
||||||
// $builder = $this->employeeModel
|
|
||||||
// ->where('email_corporate', $email)
|
|
||||||
// ->where('relationship', 'Self')
|
|
||||||
// ->where('is_active', 1);
|
|
||||||
|
|
||||||
$builder = $this->employeeModel
|
$builder = $this->employeeModel
|
||||||
->join('employee_polices EP', 'EP.employee_id = employees.id', 'inner')
|
->where('email_corporate', $email)
|
||||||
->where('employees.email_corporate', $email)
|
->where('relationship', 'Self')
|
||||||
->where('employees.relationship', 'Self')
|
->where('is_active', 1);
|
||||||
->where('employees.is_active', 1)
|
|
||||||
->whereIn('employees.emp_status', ['active', 'expired'])
|
// $builder = $this->employeeModel
|
||||||
->where('EP.is_active', 1)
|
// ->join('employee_polices EP', 'EP.employee_id = employees.id', 'inner')
|
||||||
->whereIn('EP.status', ['active', 'expired']);
|
// ->where('employees.email_corporate', $email)
|
||||||
|
// ->where('employees.relationship', 'Self')
|
||||||
|
// ->where('employees.is_active', 1)
|
||||||
|
// ->whereIn('employees.emp_status', ['active', 'expired'])
|
||||||
|
// ->where('EP.is_active', 1)
|
||||||
|
// ->whereIn('EP.status', ['active', 'expired']);
|
||||||
|
|
||||||
|
|
||||||
if (!empty($client_id)) {
|
if (!empty($client_id)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user