FIX_FHPL_KEY_MISSMATCH_ISSUE_AND_SHOW_THE ERROR_MSG

This commit is contained in:
VENKATESHWARAN 2026-05-02 09:18:56 +05:30
parent 3853bc0b27
commit 6d4e8ff72a
4 changed files with 35 additions and 3 deletions

View File

@ -418,6 +418,14 @@ class FhplApiController extends BaseController
if (empty($batchFiles)) {
log_message('error', 'FHPL - TPA ID Pull FAILED | batchFiles is empty for this tpa id pull request');
$file_model = new BatchFileModel();
$bfData = [
'error_data' => json_encode(['error_data' => 'No trace found for TPA member download (export).']),
'status' => 'failed-7',
];
$file_model->where('id', $requestData['file_id'])->set($bfData)->update();
if($function_calling_type == "job"){
return ['status' => false, 'message' => 'batchFiles not found'];
}else{
@ -543,7 +551,7 @@ class FhplApiController extends BaseController
$sql = "UPDATE employee_polices SET tpa_id = ? WHERE id = ?";
$this->db->query($sql, [$m['TPA_TPADETAIL_ID'], $policy['emp_policy_id']]);
$this->db->query($sql, [$m['TPA_TPADetailID'], $policy['emp_policy_id']]);
// for e-card send
if(strtolower(trim($policy['relationship'])) == 'self'){
@ -552,7 +560,7 @@ class FhplApiController extends BaseController
if ($this->db->affectedRows() > 0) {
$updated++;
log_message('error', "FHPL - TPA ID Pull Updated tpa_id={$m['TPA_TPADETAIL_ID']} for emp_policy_id={$policy['emp_policy_id']} policy={$policyNo}");
log_message('error', "FHPL - TPA ID Pull Updated tpa_id={$m['TPA_TPADetailID']} for emp_policy_id={$policy['emp_policy_id']} policy={$policyNo}");
} else {
log_message('error', "FHPL - TPA ID Pull No update (already set or not matched) for emp_policy_id={$policy['emp_policy_id']} policy={$policyNo}");
}

View File

@ -490,6 +490,14 @@ class HealthIndiaApiController extends BaseController
if (empty($batchFiles)) {
log_message('error', 'HEALTH_INDIA - TPA ID Pull FAILED | batchFiles is empty for this tpa id pull request');
$file_model = new BatchFileModel();
$bfData = [
'error_data' => json_encode(['error_data' => 'No trace found for TPA member download (export).']),
'status' => 'failed-7',
];
$file_model->where('id', $requestData['file_id'])->set($bfData)->update();
if ($function_calling_type == "job") {
return ['status' => false, 'message' => 'batchFiles not found'];
} else {

View File

@ -828,6 +828,14 @@ class VidalApiController extends BaseController
if (empty($batchFiles)) {
log_message('error', 'VIDAL - TPA ID Pull FAILED | batchFiles is empty for this tpa id pull request');
$file_model = new BatchFileModel();
$bfData = [
'error_data' => json_encode(['error_data' => 'No trace found for TPA member download (export).']),
'status' => 'failed-7',
];
$file_model->where('id', $requestData['file_id'])->set($bfData)->update();
if($function_calling_type == "job"){
return ['status' => false, 'message' => 'batchFiles not found'];
}else{
@ -1109,6 +1117,14 @@ class VidalApiController extends BaseController
if (empty($batchFiles)) {
log_message('error', 'VIDAL V2 - TPA ID Pull FAILED | batchFiles is empty for this tpa id pull request');
$file_model = new BatchFileModel();
$bfData = [
'error_data' => json_encode(['error_data' => 'No trace found for TPA member download (export).']),
'status' => 'failed-7',
];
$file_model->where('id', $requestData['file_id'])->set($bfData)->update();
if ($function_calling_type === 'job') {
return ['status' => false, 'message' => 'batchFiles not found'];
}

View File

@ -373,7 +373,7 @@ for ($i = 0; $i < $batch_col_count; $i++) {
<?php } else if ($file['status'] == 'failed-7') { ?>
failed <a class="fe-alert-circle" style="color: #000;" data-toggle="tooltip"
data-placement="top" title="<?= $file['error_data'] ?>"></a>
data-placement="top" title="<?= $file['error_data'] ?? 'Unknown error. Contact system administrator.' ?>"></a>
<?php } else if ($file['status'] == 'failed-8') { ?>