Commit 7c3fd34f by 冷斌

fix bug

parent daca2c1b
...@@ -604,7 +604,9 @@ class AdminPaperAction extends AdministratorAction ...@@ -604,7 +604,9 @@ class AdminPaperAction extends AdministratorAction
if($_POST['point_title'] != 0){ if($_POST['point_title'] != 0){
$map['exams_point_id'] = ['like', '%' . t($_POST['point_title']) . '%']; $map['exams_point_id'] = ['like', '%' . t($_POST['point_title']) . '%'];
} }
$map['content'] = ['like', '%' . t($_POST['search_title']) . '%']; if (!empty($_POST['search_title'])) {
$map['content'] = ['like', '%' . t($_POST['search_title']) . '%'];
}
$map['exams_subject_id'] = $paper['exams_subject_id']; $map['exams_subject_id'] = $paper['exams_subject_id'];
$map['exams_module_id'] = $paper['exams_module_id']; $map['exams_module_id'] = $paper['exams_module_id'];
//$map['level'] = $paper['level']; //$map['level'] = $paper['level'];
......
...@@ -25,8 +25,6 @@ class ExamsQuestionModel extends Model ...@@ -25,8 +25,6 @@ class ExamsQuestionModel extends Model
public function getQuestionPageList($map = [], $limit = 20, $isJump = false) public function getQuestionPageList($map = [], $limit = 20, $isJump = false)
{ {
$map['is_del'] = 0; $map['is_del'] = 0;
var_dump($map);
die;
$list = $this->where($map)->order('exams_question_id desc')->findPage($limit,false,[],$isJump); $list = $this->where($map)->order('exams_question_id desc')->findPage($limit,false,[],$isJump);
if ($list['data']) { if ($list['data']) {
$list['data'] = $this->haddleData($list['data']); $list['data'] = $this->haddleData($list['data']);
......
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