$sjId, 'time' => $month], true); if (empty($stat)) { $stat = self::add(['sjId' => $sjId, 'time' => $month], true); } $stat->riseNum += 1; $stat->save(); } }