FIX_ENDLESS_RETAUL_DATA
This commit is contained in:
parent
7169a7210f
commit
cb465dd178
@ -2840,20 +2840,8 @@ class EmployeeRestController extends AdminController
|
|||||||
];
|
];
|
||||||
|
|
||||||
$emp_reatail_policy_data = $this->getEmpRetailPolicy($retailUserData);
|
$emp_reatail_policy_data = $this->getEmpRetailPolicy($retailUserData);
|
||||||
|
|
||||||
$query = $this->clientModel
|
|
||||||
->where('is_active', 1)
|
|
||||||
->where('client_type', 2);
|
|
||||||
|
|
||||||
if (!empty($receviedPayload['mobile_no'])) {
|
|
||||||
$query->where('phone', $receviedPayload['mobile_no']);
|
|
||||||
} else {
|
|
||||||
$query->where('email', $receviedPayload['email_id'] ?? null);
|
|
||||||
}
|
|
||||||
|
|
||||||
$retailClientData = $query->first();
|
|
||||||
$wellness_data = ['status' => 'failed','message' => 'Coming soon........!'];
|
$wellness_data = ['status' => 'failed','message' => 'Coming soon........!'];
|
||||||
return $this->respond(['status' => 'success', 'code' => 200, 'data' => [], 'emp_name' => $retailClientData['client_name'] ?? "", 'pre_policy_count' => 0, 'retail_policy_data' => $emp_reatail_policy_data, 'wellness_data' => $wellness_data], 200);
|
return $this->respond(['status' => 'success', 'code' => 200, 'data' => [], 'emp_name' => $emp_reatail_policy_data[0]['insurerd_name'] ?? "", 'pre_policy_count' => 0, 'retail_policy_data' => $emp_reatail_policy_data, 'wellness_data' => $wellness_data], 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3540,6 +3528,9 @@ class EmployeeRestController extends AdminController
|
|||||||
$this->myLogger->logme('error', 'API claim initiate Recevied Params :' . json_encode($received_data ?? []));
|
$this->myLogger->logme('error', 'API claim initiate Recevied Params :' . json_encode($received_data ?? []));
|
||||||
$get_file_data = $this->request->getFiles('claim_docs');
|
$get_file_data = $this->request->getFiles('claim_docs');
|
||||||
$get_docs_name = $this->request->getPost('claim_doc_names') ?? [];
|
$get_docs_name = $this->request->getPost('claim_doc_names') ?? [];
|
||||||
|
$policy_type_id = $this->request->getPost('policy_type_id') ?? null;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (is_string($get_docs_name)) {
|
if (is_string($get_docs_name)) {
|
||||||
$decoded = json_decode($get_docs_name, true);
|
$decoded = json_decode($get_docs_name, true);
|
||||||
@ -4719,6 +4710,7 @@ class EmployeeRestController extends AdminController
|
|||||||
clients.client_name as insurerd_name,
|
clients.client_name as insurerd_name,
|
||||||
clients.email as insurerd_mail,
|
clients.email as insurerd_mail,
|
||||||
clients.phone as insurerd_mobile,
|
clients.phone as insurerd_mobile,
|
||||||
|
policy_transaction.id as policy_transaction_id,
|
||||||
policy_transaction.insurer_id,
|
policy_transaction.insurer_id,
|
||||||
policy_transaction.policy_type_id,
|
policy_transaction.policy_type_id,
|
||||||
policy_transaction.policy_no,
|
policy_transaction.policy_no,
|
||||||
@ -4740,6 +4732,7 @@ class EmployeeRestController extends AdminController
|
|||||||
->where('policy_transaction.action_type', "inception")
|
->where('policy_transaction.action_type', "inception")
|
||||||
->where('clients.is_active', 1)
|
->where('clients.is_active', 1)
|
||||||
->where('clients.client_type', 2)
|
->where('clients.client_type', 2)
|
||||||
|
->where('clients.phone IS NOT NULL')
|
||||||
->where('clients.phone', $mobile_number)
|
->where('clients.phone', $mobile_number)
|
||||||
->findAll();
|
->findAll();
|
||||||
}else {
|
}else {
|
||||||
@ -4749,6 +4742,7 @@ class EmployeeRestController extends AdminController
|
|||||||
clients.client_name as insurerd_name,
|
clients.client_name as insurerd_name,
|
||||||
clients.email as insurerd_mail,
|
clients.email as insurerd_mail,
|
||||||
clients.phone as insurerd_mobile,
|
clients.phone as insurerd_mobile,
|
||||||
|
policy_transaction.id as policy_transaction_id,
|
||||||
policy_transaction.insurer_id,
|
policy_transaction.insurer_id,
|
||||||
policy_transaction.policy_type_id,
|
policy_transaction.policy_type_id,
|
||||||
policy_transaction.policy_no,
|
policy_transaction.policy_no,
|
||||||
@ -4770,6 +4764,7 @@ class EmployeeRestController extends AdminController
|
|||||||
->where('policy_transaction.action_type', "inception")
|
->where('policy_transaction.action_type', "inception")
|
||||||
->where('clients.is_active', 1)
|
->where('clients.is_active', 1)
|
||||||
->where('clients.client_type', 2)
|
->where('clients.client_type', 2)
|
||||||
|
->where('clients.email IS NOT NULL')
|
||||||
->where('clients.email', $email_id)
|
->where('clients.email', $email_id)
|
||||||
->findAll();
|
->findAll();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user