@@ -45,10 +45,9 @@ class ExamsPaperModel extends Model
...
@@ -45,10 +45,9 @@ class ExamsPaperModel extends Model
$map['_string'].=' AND attachment > 0';
$map['_string'].=' AND attachment > 0';
}
}
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 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 hasQuestion');