|
|
@@ -70,18 +70,15 @@ class StatKhCgMonthClass extends BaseClass
|
|
|
$unique = self::getLockById($id);
|
|
|
|
|
|
$num = $order->itemNum ?? 0;
|
|
|
- $refundPrice = $order->refundPrice ?? 0;
|
|
|
-
|
|
|
$currentRefundNum = bcadd($unique->refundNum, $num, 2);
|
|
|
|
|
|
+ $refundPrice = $order->refundPrice ?? 0;
|
|
|
$currentRefundAmount = bcadd($unique->refundPrice, $refundPrice, 2);
|
|
|
|
|
|
$unique->refundNum = $currentRefundNum;
|
|
|
$unique->refundAmount = $currentRefundAmount;
|
|
|
|
|
|
$unique->save();
|
|
|
-
|
|
|
- $unique->save();
|
|
|
}
|
|
|
|
|
|
}
|