[OQRS] Added Missing func
这个提交包含在:
父节点
f72d51c005
当前提交
44869bfbde
共有 1 个文件被更改,包括 12 次插入 和 0 次删除
|
|
@ -304,4 +304,16 @@ class Oqrs_model extends CI_Model {
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
function getOqrsStationsFromSlug($logbook_id) {
|
||||
$sql = 'SELECT station_callsign FROM `station_logbooks_relationship` JOIN `station_profile` ON station_logbooks_relationship.station_location_id = station_profile.station_id WHERE station_profile.oqrs = 1 AND station_logbook_id = '.$logbook_id.';';
|
||||
|
||||
$query = $this->db->query($sql);
|
||||
|
||||
if ($query->num_rows() > 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
正在加载…
在新工单中引用