dbms_primeidc_init...1

This commit is contained in:
최준흠 2025-04-10 11:13:54 +09:00
parent 43aac88734
commit 30cc37fcdc
2 changed files with 8 additions and 6 deletions

View File

@ -51,6 +51,8 @@ class PaymentController extends ClientController
//mode 당일,1일전,2일전,3일전,custom
$today = date("Y-m-d");;
$mode = $params['mode'] ?? $this->getRequest()->get('mode') ?? 'all';
$curPage = intval($params['curPage'] ?? $this->getRequest()->get('mode') ?? 1);
$perPage = intval($params['perPage'] ?? $this->getRequest()->get('mode') ?? VIEW_LIST_PERPAGE);
switch ($mode) {
case 'today':
$this->getServiceService()->getModel()->where("service_payment_date = CURDATE()");
@ -85,15 +87,15 @@ class PaymentController extends ClientController
$this->getServiceService()->getModel()->whereNotIn("{$addDbTable}.client_code", $exclude_clients);
$this->getServiceService()->getModel()->whereNotIn("{$addDbTable}.addDB_accountStatus", ["complete"]);
$this->getServiceService()->getModel()->orderBy("service_payment_date", "DESC");
$this->mode = $mode;
$this->getServiceService()->getModel()->limit($perPage);
$this->getServiceService()->getModel()->offset(($curPage - 1) * $perPage);
//Query문 Rest여부 -> 같은조건에 Count 받고, 결과값을 받고 싶을때는 continue()
$this->getServiceService()->getModel()->setContinue(true);
$this->total = $this->getServiceService()->getCount();
$this->entities = $this->getServiceService()->getEntities();
$this->page = $parmas['curPage'] ?? 1;
$this->perPage = $parmas['perPage'] ?? VIEW_LIST_PERPAGE;
$this->pagination = new Pagination($this->total, (int)$this->page, (int)$this->perPage);
$this->curPage = $curPage;
$this->perPage = $perPage;
$this->pagination = new Pagination($this->total, (int)$curPage, (int)$this->perPage);
return $this->render(path: __FUNCTION__);
}
} //Class

View File

@ -45,4 +45,4 @@
<?php } ?>
</tbody>
</table>
<div align='center'><?= $this->pagination->render(DBMS_SITE_URL . "/IdcDepositNonPaymentListMK.dep", ['mode' => "{$this->mode}", 'ea' => "{$this->total}"]) ?></div>
<div align='center'><?= $this->pagination->render(DBMS_SITE_URL . "/IdcDepositNonPaymentListMK.dep", ['mode' => $this->mode, 'curPage' => $this->curPage, 'perPage' => $this->perPage]) ?></div>