fix end poinst

This commit is contained in:
CHIEFSOFT\ameye
2024-09-14 11:29:19 -04:00
parent 3fc9c5bfaf
commit 8ecbdb04e0
3 changed files with 87 additions and 2 deletions
+18
View File
@@ -309,6 +309,24 @@ public function signatoryUpdate():ResponseInterface{
return $this->respond($data, 200);
}
public function getCustomer($uid){
$query = $this->db->query("SELECT * FROM customers WHERE uid::text ='".$uid."'");
$rowC = $query->getResult('array');
$mySqA ="SELECT uid AS applications_uid, loan_amount, added, payment_month FROM applications WHERE customer_uid::text ='".$uid."'";
$query = $this->db->query($mySqA);
$rowA = $query->getResult('array');
$data = [
'call_return' => '100',
'customer' => $rowC,
'applications' => $rowA
];
return $this->respond($data, 200);
}
public function listCustomers():ResponseInterface{
$query = $this->db->query("select * from customers order by id desc");