diff --git a/app/Controllers/CommonController.php b/app/Controllers/CommonController.php
index 6c594f9..4539ff0 100644
--- a/app/Controllers/CommonController.php
+++ b/app/Controllers/CommonController.php
@@ -684,6 +684,9 @@ abstract class CommonController extends BaseController
// 현재 URL을 스택에 저장
helper(['form']);
$this->entities = $this->index_process();
+ if (env('app.debug.index')) {
+ echo $this->getService()->getModel()->getLastQuery() . "
";
+ }
return $this->getResultSuccess();
} catch (\Exception $e) {
return $e->getMessage();
diff --git a/app/Services/CommonService.php b/app/Services/CommonService.php
index 56b72c0..29d0716 100644
--- a/app/Services/CommonService.php
+++ b/app/Services/CommonService.php
@@ -87,9 +87,6 @@ abstract class CommonService
foreach ($this->findAllDatas($columns) as $entity) {
$entities[$entity->getPK()] = $entity;
}
- if (env('app.debug.index')) {
- echo $this->getModel()->getLastQuery() . "
";
- }
return $entities;
} //
//기본 기능부분