|
|
@@ -16,7 +16,7 @@ class StatOrderMonthClass extends BaseClass
|
|
|
$month = isset($month) ? $month : date("Ym");
|
|
|
$stat = self::getByCondition(['merchantId' => $merchantId, 'time' => $month], true);
|
|
|
if (empty($stat)) {
|
|
|
- $stat = self::add(['merchantId' => $merchantId, 'time' => $month]);
|
|
|
+ $stat = self::add(['merchantId' => $merchantId, 'time' => $month], true);
|
|
|
}
|
|
|
$stat->riseNum += 1;
|
|
|
$stat->totalNum = $asset['payOrder'] + 1;
|