Commit 8b9ecca5 by 冷斌

`试卷`

parent 832d9ef2
......@@ -90,7 +90,7 @@ class IndexAction extends Action
$this->assign('exams_module', $exams_module);
// 获取数据
$where = ['mhm_id'=>$this->mhm_id];
$module_id && $where['exams_module_id'] = $module_id;
// $module_id && $where['exams_module_id'] = $module_id;
if ($cateId) {
$ids = model('CategoryTree')->setTable('exams_subject')->getSubCateIdByPid($cateId, 'sort desc', false, $this->mhm_id);
array_unshift($ids, $cateId);
......@@ -103,8 +103,7 @@ 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