|
|
@@ -61,7 +61,7 @@ class xhMerchantAssetService
|
|
|
}
|
|
|
|
|
|
//收入后资产变更 shish 2019.12.24
|
|
|
- public static function incomeChangeAsset($merchant, $merchantAsset, $updateData, $order, $capitalType)
|
|
|
+ public static function incomeChangeAsset($merchant, $merchantAsset, $updateData, $order, $capitalType, $isRecharge = false)
|
|
|
{
|
|
|
$merchantId = $merchant['id'];
|
|
|
$openMerchant = xhWxOpenService::getMerchant();
|
|
|
@@ -103,15 +103,17 @@ class xhMerchantAssetService
|
|
|
}
|
|
|
self::updateByMerchantId($merchantId, $updateData);
|
|
|
|
|
|
- //数据统计,以下一定要排后面,否则数据不准确
|
|
|
- xhStatIncomeService::replace($merchantId, $totalFee, $order['payWay']);
|
|
|
- xhStatIncomeMonthService::replace($merchantId, $totalFee, $order['payWay']);
|
|
|
- StatIncomeSourceService::replaceData([
|
|
|
- 'merchantId' => $order['merchantId'],
|
|
|
- 'sourceType' => $order['sourceType'],
|
|
|
- 'amount' => $totalFee,
|
|
|
- 'payWay' => $order['payWay']
|
|
|
- ]);
|
|
|
+ if ($isRecharge == false) {
|
|
|
+ //数据统计,以下一定要排后面,否则数据不准确
|
|
|
+ xhStatIncomeService::replace($merchantId, $totalFee, $order['payWay']);
|
|
|
+ xhStatIncomeMonthService::replace($merchantId, $totalFee, $order['payWay']);
|
|
|
+ StatIncomeSourceService::replaceData([
|
|
|
+ 'merchantId' => $order['merchantId'],
|
|
|
+ 'sourceType' => $order['sourceType'],
|
|
|
+ 'amount' => $totalFee,
|
|
|
+ 'payWay' => $order['payWay']
|
|
|
+ ]);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public static function add($data)
|