GWM : enquert api changes
This commit is contained in:
parent
32cfc8b3b6
commit
e95e503716
@ -68,7 +68,11 @@ class EnquiryController extends ResourceController
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Get enquiry details
|
//Get enquiry details
|
||||||
$enquiry = $this->enquiryModel->where('id', $enquiry_id)->where('is_active', 1)->first();
|
$enquiry = $this->enquiryModel->select('partner_enquiry.*, I.name as insurer_name ')
|
||||||
|
->join('insurers I', 'I.id = partner_enquiry.insurer_id', 'left')
|
||||||
|
->where('id', $enquiry_id)
|
||||||
|
->where('is_active', 1)
|
||||||
|
->first();
|
||||||
|
|
||||||
if (!$enquiry) {
|
if (!$enquiry) {
|
||||||
return $this->respond(['status' => 'failed','code' => 404,'data' => 'Enquiry not found'], 200);
|
return $this->respond(['status' => 'failed','code' => 404,'data' => 'Enquiry not found'], 200);
|
||||||
|
|||||||
@ -113,7 +113,7 @@ class MasterController extends ResourceController
|
|||||||
|
|
||||||
public function getStaffMaster()
|
public function getStaffMaster()
|
||||||
{
|
{
|
||||||
$data = $this->StaffModel->select('id,name')->where('is_active',1)->where('riole_id',2)->findAll();
|
$data = $this->StaffModel->select('id,name')->where('is_active',1)->where('role_id',2)->findAll();
|
||||||
|
|
||||||
if (!$data) {
|
if (!$data) {
|
||||||
return $this->failNotFound('No data found');
|
return $this->failNotFound('No data found');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user