Commit 62f15c58 by 冷斌

fix bug

parent 1e62a310
...@@ -45,7 +45,7 @@ class ExamsPaperModel extends Model ...@@ -45,7 +45,7 @@ class ExamsPaperModel extends Model
$map['_string'] .= ' AND attachment > 0'; $map['_string'] .= ' AND attachment > 0';
} }
if ((int)$isApi === 3) { if ((int)$isApi === 3) {
$this->selectAdd('( 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 abc'); $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 abc');
} }
......
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