GWM : enquert api changes

This commit is contained in:
Gowtham M 2025-09-26 11:11:32 +05:30
parent 32cfc8b3b6
commit e95e503716
2 changed files with 6 additions and 2 deletions

View File

@ -68,7 +68,11 @@ class EnquiryController extends ResourceController
}
//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) {
return $this->respond(['status' => 'failed','code' => 404,'data' => 'Enquiry not found'], 200);

View File

@ -113,7 +113,7 @@ class MasterController extends ResourceController
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) {
return $this->failNotFound('No data found');