Dashboard Alert Details : ps
This commit is contained in:
parent
eff36cb2fe
commit
72a67b88f6
@ -159,5 +159,6 @@ $route['savePDFormDetails'] = 'PD_Controller/savePDFormDetails';
|
||||
$route['getDashBoardMaster'] = 'Dash_Board_Controller/getDashBoardDetailsOfPDTypeAndPDStatusWithDayWeekMonth';
|
||||
$route['getDashBoardLenderCity'] = 'Dash_Board_Controller/getDashBoardDetailsOfLenderAndCitywise';
|
||||
$route['getDashBoardDetailsOfCity'] = 'Dash_Board_Controller/getDashBoardDetailsOfCitywise';
|
||||
$route['getDashBoardAlertDetails'] = 'Dash_Board_Controller/getDashBoardDetailsOfAlert';
|
||||
|
||||
|
||||
|
||||
@ -50,5 +50,15 @@ class Dash_Board_Controller extends REST_Controller {
|
||||
$data['records'] = $res;
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
public function getDashBoardDetailsOfAlert_get(){
|
||||
|
||||
$res = $this->Dash_Board_Model->getDashBoardDetailsOfAlert();
|
||||
|
||||
$data['dataStatus'] = true;
|
||||
$data['status'] = REST_Controller::HTTP_OK;
|
||||
$data['records'] = $res;
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -72,6 +72,25 @@ class Dash_Board_Model extends SPARQ_Model {
|
||||
$result_data['current_month'] = $this->db->query($sql_query_current_month)->result_array();
|
||||
return $result_data;
|
||||
}
|
||||
|
||||
public function getDashBoardDetailsOfAlert(){
|
||||
|
||||
$this->db->select('PDTRIGGER.lender_applicant_id,
|
||||
PDTRIGGER.pd_status,
|
||||
PDTRIGGER.fk_lender_id,
|
||||
PDTRIGGER.pd_id,
|
||||
ENTITY.full_name as entity_name,
|
||||
COAPPLICANTSDETAILS.applicant_name as applicant_name');
|
||||
$this->db->from('t_pd_triggered PDTRIGGER');
|
||||
$this->db->join('m_entity ENTITY', 'PDTRIGGER.fk_lender_id = ENTITY.entity_id','left');
|
||||
$this->db->join('t_pd_co_applicants_details COAPPLICANTSDETAILS', 'PDTRIGGER.pd_id = COAPPLICANTSDETAILS.fk_pd_id and COAPPLICANTSDETAILS.applicant_type = 1','left');
|
||||
$this->db->where('PDTRIGGER.pd_status = "TRIGGERED"');
|
||||
$this->db->or_where('PDTRIGGER.pd_status = "ALLOCATED"');
|
||||
|
||||
$query = $this->db->get();
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user