where('status', 1) // ->field('id, title, jiancheng, lieming') // ->select(); // return $sbj; // } // // 查询可以参加考试的学科 // public function subjectKs() // { // $sbj = new \app\teach\model\Subject; // $sbjList = $sbj->where('status&kaoshi', 1) // ->field('id, title, jiancheng, lieming') // ->select(); // return $sbj; // } // 是否启用别名 public function sysClass() { // 实例化系统设置对象 $sys = new \app\system\model\SystemBase; $alias = $sys->order(['id'=>'desc']) ->field('gradelist, classmax, classalias, xuenian, teacherrongyu, teacherketi') ->find(); return $alias; } }