dbms_init...1
This commit is contained in:
parent
c8f48e6443
commit
2fc9f7e240
@ -658,8 +658,8 @@ abstract class CommonController extends BaseController
|
||||
{
|
||||
//조건절 처리
|
||||
$this->setConditionForList();
|
||||
//TotalCount
|
||||
$this->total_count = intval($this->getService()->getModel()->selectCount('*', 'cnt')->get()->getRow()->cnt);
|
||||
//TotalCount (SoftDelete적용이 되려면 countAllResults를 사용해야함)
|
||||
$this->total_count = $this->getService()->getModel()->selectCount('*', 'cnt')->countAllResults();
|
||||
//Pagination 처리
|
||||
$this->pagination = $this->getPaginationForList();
|
||||
//줄수 처리용
|
||||
@ -684,9 +684,6 @@ abstract class CommonController extends BaseController
|
||||
// 현재 URL을 스택에 저장
|
||||
helper(['form']);
|
||||
$this->entities = $this->index_process();
|
||||
if (env('app.debug.index')) {
|
||||
echo $this->getService()->getModel()->getLastQuery() . "<BR>";
|
||||
}
|
||||
return $this->getResultSuccess();
|
||||
} catch (\Exception $e) {
|
||||
return $e->getMessage();
|
||||
|
||||
@ -87,6 +87,9 @@ abstract class CommonService
|
||||
foreach ($this->findAllDatas($columns) as $entity) {
|
||||
$entities[$entity->getPK()] = $entity;
|
||||
}
|
||||
if (env('app.debug.index')) {
|
||||
echo $this->getModel()->getLastQuery() . "<BR>";
|
||||
}
|
||||
return $entities;
|
||||
} //
|
||||
//기본 기능부분
|
||||
|
||||
Loading…
Reference in New Issue
Block a user