1234567891011121314151617181920212223242526 |
- <?php
- /**
- * @author: CeeFee
- * @description: 考试
- */
- class ZlStudentExamRs extends Model
- {
- function __construct(){
- parent::__construct();
- }
- public function getCountStudentRsByExamGroupId($exmGroupId,$examId=0){
- if(!$exmGroupId) return 0;
- $sql="select DISTINCT zl_student_id from `zl_student_exam_rs` where zl_exam_group_id = '".$exmGroupId."'";
- if($examId){
- $sql.=" and zl_exam_id='".$examId."'";
- }
- $data=$this->sConn->createCommand($sql)->queryAll();
- if($data){
- return count($data);
- }
- return 0;
- }
- }
|