상세추가
Some checks failed
Close Pull Request / main (pull_request_target) Has been cancelled

This commit is contained in:
yangsh
2026-01-15 16:39:23 +09:00
parent 28b458450c
commit ed39194225
5 changed files with 1631 additions and 1 deletions

View File

@@ -135,4 +135,42 @@ class Receipt extends BaseController
$e->getPrevious()->getTraceAsString();
}
}
// 상세화면
public function detail($id)
{
$id = (int) $id;
if ($id <= 0) {
throw \CodeIgniter\Exceptions\PageNotFoundException::forPageNotFound();
}
$codes = $this->codeModel->getCodeLists(['TRADE_TYPE', 'RECEIPT_STATUS2', 'RECEIPT_STATUS3', 'SMS_MSG_TYPE']); // 코드조회
$bonbu = $this->model->getBonbuList();
$team = $this->model->getTeamList();
$data = $this->model->getDetail($id);
$history = $this->model->getHistory($id);
$aptGround = $this->model->getAptGround($data['rcpt_dong']);
// 시간대별통계
$tmCount = $this->model->getUsrRsrvDateTmCount($id);
$this->data['codes'] = $codes;
$this->data['bonbu'] = $bonbu;
$this->data['team'] = $team;
$this->data['data'] = $data;
$this->data['history'] = $history;
$this->data['apt_ground'] = $aptGround;
$this->data['tmCount'] = $tmCount;
return view("pages/article/receipt/detail", $this->data);
}
}