fix end poinst
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user