123456789101112131415161718192021222324252627 |
- <?php
- /**
- * @description: 学生个性化学习宝错误码
- */
- class SStudentIspErrorCode extends MyActiveRecord {
- public static function model($className = __CLASS__)
- {
- return parent::model($className);
- }
- public function tableName()
- {
- return 'student_isp_error_code';
- }
- public function getStudentIspErrorCode($examId,$productType)
- {
- $criteria = new CDbCriteria();
- $criteria->addCondition("exam_id = {$examId}");
- $criteria->addCondition("product_type = {$productType}");
- $result = getAttributes($this->findAll($criteria));
- return $result;
- }
- }
|