FIX_WELLNESS_ONBOARD_GET_NOT_ONBOARDED_COUNT_QUERY_ISSUE

This commit is contained in:
velz 2026-01-02 17:56:13 +05:30
parent 3c5aef6563
commit 332c412d0f

View File

@ -3323,15 +3323,18 @@ class EmployeeController extends AdminController
->where('employee_polices.wellness_onboard', '0')
->where('emp.emp_status', 'active')
->where('emp.is_active', 1)
->where('cp.wellness_plan_id is not null',null,false)
->where('cp.wellness_plan_id !=',"")
->where('cp.wellness_plan_id !=',0)
->where('cp.wellness_vendor_id is null')
->where('cp.wellness_vendor_id !=',0)
->where('cp.wellness_vendor_id !=',"")
// ->where('cp.policy_status',1)
// ->where('cp.is_active',1)
->groupStart()
->where('cp.wellness_plan_id IS NOT NULL', null, false)
->orWhere('cp.wellness_plan_id !=', '')
->orWhere('cp.wellness_plan_id !=', 0)
->groupEnd()
->groupStart()
->where('cp.wellness_vendor_id IS NULL', null, false)
->orWhere('cp.wellness_vendor_id =', '')
->orWhere('cp.wellness_vendor_id =', 0)
->groupEnd()
->where('cp.policy_status',1)
->where('cp.is_active',1)
->findAll();
// echo count($data);die();
// if(is_array($data) && count($data))