startTrans(); try { $model = new RoleAccessUpModel(); $model->saveAll($data); $this->commit(); return true; } catch (\Exception $e) { $this->error = $e->getMessage(); $this->rollback(); return false; } } }