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; } }