feat: 修改了交易统计逻辑,移除了不必要的余额支付计算,并调整了线下收款和总交易额的计算方式。
This commit is contained in:
parent
22579a624a
commit
2a95eb8e1f
@ -296,7 +296,6 @@ class TradeStatisticLogic extends BaseLogic
|
||||
$outYeOrderChain = countRate($outYeOrderMoney, $lastOutYeOrderMoney);
|
||||
//余额支付
|
||||
$outYeMoney = $outYeOrderMoney;
|
||||
$lastOutYeMoney = $lastOutYeOrderMoney;
|
||||
$outYeCurve = $this->totalArrData([$outYeOrderCurve, 0]);
|
||||
$outYeChain = countRate($outYeOrderChain, 0);
|
||||
$topData[7] = [
|
||||
@ -454,9 +453,10 @@ class TradeStatisticLogic extends BaseLogic
|
||||
//购买会员收入
|
||||
$inMemberMoney = $this->getMemberTotalMoney($where, $selectType, "", $isNum);
|
||||
//线下收款收入
|
||||
$inOfflineMoney = $this->getOfflineTotalMoney($where, $selectType, "", $isNum);
|
||||
// $inOfflineMoney = $this->getOfflineTotalMoney($where, $selectType, "", $isNum);
|
||||
//总交易额
|
||||
$inTotalMoney = bcadd(bcadd($inOrderMoney, $inRechargeMoney, 2), bcadd($inMemberMoney, $inOfflineMoney, 2), 2);/* - $outExtractUserMoney*/
|
||||
// $inTotalMoney = bcadd(bcadd($inOrderMoney, $inRechargeMoney, 2), bcadd($inMemberMoney, $inOfflineMoney, 2), 2);/* - $outExtractUserMoney*/
|
||||
$inTotalMoney = bcadd(bcadd($inOrderMoney, $inRechargeMoney, 2), $inMemberMoney, 2);/* - $outExtractUserMoney*/
|
||||
return $inTotalMoney;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user