예제 #1
0
 public function insertRecord($form, $record_id)
 {
     $this['lr_id'] = $form['lr_id'];
     $this['record_id'] = $record_id;
     if ($this->save()) {
         $lendRecord = LendRecord::find()->where(['id' => $this['lr_id']])->one();
         $lendRecord->refreshstatus($this['lr_id']);
         return null;
     } else {
         return $this->errors;
     }
 }