Commit d5fe667d by 冷斌

fix bug

parent 46a274ae
...@@ -47,10 +47,10 @@ class ExamsPaperModel extends Model ...@@ -47,10 +47,10 @@ class ExamsPaperModel extends Model
if ((int)$isApi === 3) { if ((int)$isApi === 3) {
$this->field('*, ( SELECT count(el_exams_paper_options.exams_paper_id) from el_exams_paper_options WHERE el_exams_paper_options.exams_paper_id = el_exams_paper.exams_paper_id) as hasQuestion'); $this->field('*, ( SELECT count(el_exams_paper_options.exams_paper_id) from el_exams_paper_options WHERE el_exams_paper_options.exams_paper_id = el_exams_paper.exams_paper_id) as hasQuestion');
} }
var_dump($map);
die;
$order = isset($this->order_field[$order]) ? $this->order_field[$order] : $order; $order = isset($this->order_field[$order]) ? $this->order_field[$order] : $order;
$list = $this->where($map)->order($order)->findPage($limit); $list = $this->where($map)->order($order)->findPage($limit);
var_dump($list);
die;
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