@@ -14,4 +14,9 @@ class questionbankmodel extends Model {
$list = $this->where([])->order("sort asc")->select();
return $list;
}
+ public function getinfobyid($id) {
+ $where_arr['id'] = $id;
+ $rec = $this->where($where_arr)->find();
+ return $rec;
+ }