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