new
Some checks failed
Close Pull Request / main (pull_request_target) Has been cancelled

This commit is contained in:
yangsh
2025-12-09 17:28:31 +09:00
parent f5eb8d4788
commit 735120f1cb
378 changed files with 24267 additions and 9248 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Models\common;
use CodeIgniter\Model;
class CodeModel extends Model
{
/**
* 코드목록 읽어오기(Y만)
*/
public function getCodeList($category)
{
$sql = "SELECT category, category_nm, cd, cd_nm FROM codes" .
" WHERE category = ?" .
" AND use_yn = 'Y'" .
" ORDER BY view_odr";
$data = array($category);
$query = $this->db->query($sql, $data);
return $query->getResultArray();
}
}