CHANGE_BATCH_FILE_LIST_QUERY_CHANGES : RV
This commit is contained in:
parent
684d756fbc
commit
ecec25490b
@ -335,20 +335,46 @@ class EmployeeController extends AdminController
|
|||||||
->find();
|
->find();
|
||||||
// dd($data['fileList']);
|
// dd($data['fileList']);
|
||||||
|
|
||||||
$data['batch_list'] = $this->batchFileModel->select(
|
$data['batch_list'] = $this->batchFileModel->select("
|
||||||
'batch_files.*,
|
|
||||||
|
batch_files.id,
|
||||||
|
batch_files.client_id,
|
||||||
|
batch_files.client_policy_id,
|
||||||
|
batch_files.batch_code,
|
||||||
|
batch_files.file_name,
|
||||||
|
batch_files.insurer_or_tpa,
|
||||||
|
batch_files.event_type,
|
||||||
|
batch_files.actions,
|
||||||
|
batch_files.count,
|
||||||
|
batch_files.created_by,
|
||||||
|
batch_files.created_at,
|
||||||
|
batch_files.updated_by,
|
||||||
|
batch_files.updated_at,
|
||||||
|
batch_files.is_active,
|
||||||
|
batch_files.amount,
|
||||||
|
batch_files.status,
|
||||||
|
batch_files.client_branch_id,
|
||||||
|
|
||||||
|
CASE
|
||||||
|
WHEN batch_files.status = 'partially success' THEN
|
||||||
|
batch_files.error_data
|
||||||
|
ELSE
|
||||||
|
error_data = null
|
||||||
|
END AS error_data,
|
||||||
|
|
||||||
clients.short_name as client_short_name,
|
clients.short_name as client_short_name,
|
||||||
client_branch.branch_name,
|
client_branch.branch_name,
|
||||||
client_policy.policy_no,
|
client_policy.policy_no,
|
||||||
policy_type.policy_type
|
policy_type.policy_type
|
||||||
')
|
|
||||||
->join('client_policy', 'client_policy.id = batch_files.client_policy_id')
|
")
|
||||||
->join('client_branch', 'client_branch.id = batch_files.client_branch_id')
|
->join('client_policy', 'client_policy.id = batch_files.client_policy_id')
|
||||||
->join('policy_type', 'policy_type.id = client_policy.policy_type_id')
|
->join('client_branch', 'client_branch.id = batch_files.client_branch_id')
|
||||||
->join('clients', 'clients.id = client_policy.client_id')
|
->join('policy_type', 'policy_type.id = client_policy.policy_type_id')
|
||||||
->orderBy('batch_files.id', 'desc')
|
->join('clients', 'clients.id = client_policy.client_id')
|
||||||
->limit(100)
|
->orderBy('batch_files.id', 'desc')
|
||||||
->find();
|
->limit(100)
|
||||||
|
->find();
|
||||||
|
|
||||||
|
|
||||||
// dd($data['fileList']);die();
|
// dd($data['fileList']);die();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user