123456789101112131415161718192021222324 |
- <?php
- class UnpaidUserSetting extends BusinessActiveRecord
- {
- public function tableName()
- {
- return 'unpaid_user_setting';
- }
- //保存设置
- public function saveReportSetting($insertData=array()){
- if($insertData && isset($insertData['school_id'])){
- $sql="replace into unpaid_user_setting (`school_id`,`parent_report`,`parent_exam_notify`,`student_report`,`student_knowledge_bill`) ";
- $sql.=" values('".$insertData['school_id']."','".$insertData['parent_report']."','".$insertData['parent_exam_notify']."','".$insertData['student_report']."','".$insertData['student_knowledge_bill']."')";
- $rs=$this->getDbConnection()->createCommand($sql)->execute();
- return $rs;
- }
- return false;
- }
- }
|