Skip to content

Commit

Permalink
🔨 #118 quantidade total
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Sep 27, 2022
1 parent ffe528d commit 6708210
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/CreateApiControllesFiles.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,11 @@ public function addSelectAll()
$this->addLine(ESP.ESP.ESP.'$where = array();');
$this->addLine(ESP.ESP.ESP.'$controller = new \\'.ucfirst( $this->getTableName() ).'();');
$this->addLine(ESP.ESP.ESP.'//$result = $controller->selectAll();');
$this->addLine(ESP.ESP.ESP.'$qtd_total = $controller->selectCount( $where );');
$this->addLine(ESP.ESP.ESP.'$result = $controller->selectAllPagination( $orderBy, $where, $page, $rowsPerPage);');
$this->addLine(ESP.ESP.ESP.'$result = \ArrayHelper::convertArrayFormDin2Pdo($result);');
$this->addLine(ESP.ESP.ESP.'$msg = array( \'qtd\'=> \CountHelper::count($result)');
$this->addLine(ESP.ESP.ESP.'$msg = array( \'qtd_total\'=> $qtd_total');
$this->addLine(ESP.ESP.ESP.ESP.ESP.ESP.', \'qtd_result\'=> \CountHelper::count($result)');
$this->addLine(ESP.ESP.ESP.ESP.ESP.ESP.', \'result\'=>$result');
$this->addLine(ESP.ESP.ESP.');');
$this->addBodyJsonResponse(ESP.ESP.ESP,200);
Expand Down

0 comments on commit 6708210

Please sign in to comment.