employers

This commit is contained in:
CHIEFSOFT\ameye
2024-06-10 09:22:44 -04:00
parent 798a29b75b
commit 7367fad857
2 changed files with 13 additions and 0 deletions
+10
View File
@@ -184,4 +184,14 @@ $loc = 100;
return $this->respond($result_data, 200);
}
public function listUsers(){
$query = $this->db->query("SELECT e.name AS employer_name, es.* FROM employers_signatory es LEFT JOIN employers e ON e.id = es.employer_id");
$row = $query->getResult('array');
$data = [
'call_return' => '100',
'records' => $row
];
return $this->respond($data, 200);
}
}