Commit 83cc8cab by 冷斌

`试卷`

parent 636a2977
......@@ -103,7 +103,8 @@ class IndexAction extends Action
$where['exams_paper_title'] = array('like' , '%'.$search.'%');
$this->assign('search', $search);
}
var_dump($where);
die;
$list = D('ExamsPaper', 'exams')->getPaperPageList($where, 16, $order, true);
foreach ($list['data'] as &$v) {
$v['paper_options'] = D('ExamsPaperOptions', 'exams')->where(['exams_paper_id'=>$v['exams_paper_id']])->field('questions_count,score')->find();//getPaperOptionsById($v['exams_paper_id']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment