컨트롤러수정

This commit is contained in:
yangsh
2025-12-23 17:42:15 +09:00
parent 20f8163a0e
commit f4af2a19dc
23 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
<?php
namespace App\Controllers\home;
use App\Controllers\BaseController;
use App\Models\Home\HomeModel;
class Home extends BaseController
{
private $homeModel;
private $sdate = '';
private $edate = '';
public function __construct()
{
$this->sdate = date('Y-m-d', strtotime('-1 month'));
$this->edate = date('Y-m-d');
$this->homeModel = new HomeModel();
}
public function index()
{
}
public function dashboard(): string
{
$notice = $this->homeModel->getNoticeList();
$statistics = $this->homeModel->getHomeStatistics($this->sdate, $this->edate);
return view('pages/home/dashboard', [
'menus' => $this->data,
'notice' => $notice,
'statistics' => $statistics,
]);
}
// 실적조회
public function viewStatData()
{
$params = [
's_date' => $this->request->getGet('s_date'),
'usr_sq' => session('usr_sq'),
];
$data = $this->homeModel->viewStatData($params);
return $this->response->setJSON($data);
}
// 팩스건수 조회
public function getHomeFaxCount()
{
$data = $this->homeModel->getHomeFaxCount();
return $this->response->setJSON($data);
}
}