UnpaidUserSetting.php 790 B

123456789101112131415161718192021222324
  1. <?php
  2. class UnpaidUserSetting extends BusinessActiveRecord
  3. {
  4. public function tableName()
  5. {
  6. return 'unpaid_user_setting';
  7. }
  8. //保存设置
  9. public function saveReportSetting($insertData=array()){
  10. if($insertData && isset($insertData['school_id'])){
  11. $sql="replace into unpaid_user_setting (`school_id`,`parent_report`,`parent_exam_notify`,`student_report`,`student_knowledge_bill`) ";
  12. $sql.=" values('".$insertData['school_id']."','".$insertData['parent_report']."','".$insertData['parent_exam_notify']."','".$insertData['student_report']."','".$insertData['student_knowledge_bill']."')";
  13. $rs=$this->getDbConnection()->createCommand($sql)->execute();
  14. return $rs;
  15. }
  16. return false;
  17. }
  18. }