CHANGE_ in agree api : GWM

This commit is contained in:
Gowtham M 2024-12-18 14:16:31 +05:30
parent 9bf8e818dc
commit f64db94a4c

View File

@ -2028,7 +2028,7 @@ class EmployeeRestController extends AdminController
$empPolicyData = $this->employeePolicyModel->where('client_policy_id', $value )
->where('is_active', 1 )
->whereIn($employeeIds)
->whereIn('employee_id',$employeeIds)
->findAll();
if(count($empPolicyData))
{
@ -2046,7 +2046,7 @@ class EmployeeRestController extends AdminController
->update();
//update Employee table
$this->employeeModel->where('emp_code', $emp_code)
->where('id', $empIdsFromPolicyData)
->whereIn('id', $empIdsFromPolicyData)
->where('client_id', $client_id)
->where('is_active', 1)
->groupStart()