일반매물현황 목록 페이지 추가
This commit is contained in:
20
app/Models/common/CommonModel.php
Normal file
20
app/Models/common/CommonModel.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
namespace App\Models\common;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class CommonModel extends Model
|
||||
{
|
||||
public function getVrfcCode($type)
|
||||
{
|
||||
|
||||
$sql = "SELECT category, category_nm, cd, cd_nm FROM codes" .
|
||||
" WHERE category = ?" .
|
||||
" AND use_yn = 'Y'" .
|
||||
" ORDER BY view_odr";
|
||||
|
||||
$query = $this->db->query($sql, [$type]);
|
||||
|
||||
return $query->getResultArray();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user