修改礼品券统计描述与逻辑
This commit is contained in:
parent
d4eef002fe
commit
61f7ce9332
@ -328,13 +328,13 @@ class TradeStatisticLogic extends BaseLogic
|
|||||||
];
|
];
|
||||||
$Chain['deposit'] = $OrderDepositCurve;
|
$Chain['deposit'] = $OrderDepositCurve;
|
||||||
//兑换礼品券
|
//兑换礼品券
|
||||||
$userSign = $this->getUserSign($where, 'sum');
|
$userSign = $this->getOrderTotalMoney(['pay_type' => 19, 'create_time' => $where['create_time']], 'sum');
|
||||||
$userSignTwo = $this->getUserSign($where, 'sum', "", $isNum);
|
$userSignTwo = $this->getOrderTotalMoney(['pay_type' => 19, 'create_time' => $dateWhere['create_time']], 'sum', "", $isNum);
|
||||||
$userSignGroup = $this->getUserSign($where, 'group', "create_time");
|
$userSignGroup = $this->getOrderTotalMoney(['pay_type' => 19, 'create_time' => $where['create_time']], 'group', 'create_time');
|
||||||
$userSignRate = countRate($userSign, $userSignTwo);
|
$userSignRate = countRate($userSign, $userSignTwo);
|
||||||
$topData[9] = [
|
$topData[9] = [
|
||||||
'title' => '兑换礼品券',
|
'title' => '礼品券消耗',
|
||||||
'desc' => '后台给推广员支付的兑换礼品券,以实际支付为准',
|
'desc' => '用户下单时使用礼品券实际支付的金额',
|
||||||
'total_money' => $userSign,
|
'total_money' => $userSign,
|
||||||
'rate' => $userSignRate,
|
'rate' => $userSignRate,
|
||||||
'value' => $userSignGroup['y'],
|
'value' => $userSignGroup['y'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user