mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
交易统计问题处理
This commit is contained in:
parent
28bacfcfb4
commit
97e427dfe2
@ -87,6 +87,16 @@ class UserRecharge extends BaseModel
|
||||
$query->where('recharge_type', $value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 不等于充值类型
|
||||
* @param Model $query
|
||||
* @param $value
|
||||
*/
|
||||
public function searchNoRechargeTypeAttr($query, $value)
|
||||
{
|
||||
$query->where('recharge_type', '<>', $value);
|
||||
}
|
||||
|
||||
/**退款金额
|
||||
* @param $query
|
||||
* @param $value
|
||||
|
||||
@ -663,12 +663,12 @@ class TradeStatisticServices extends BaseServices
|
||||
*/
|
||||
public function getRechargeTotalMoney(array $where, string $selectType, string $group = "", bool $isNum = false)
|
||||
{
|
||||
/** 用户充值金额 */
|
||||
/** @var UserRechargeServices $userRechageService */
|
||||
$userRechageService = app()->make(UserRechargeServices::class);
|
||||
$rechargeSumField = "price";
|
||||
$whereInRecharge['paid'] = 1;
|
||||
$whereInRecharge['refund_price'] = '0.00';
|
||||
$whereInRecharge['no_recharge_type'] = 'system';
|
||||
$whereInRecharge['timeKey'] = $this->TimeConvert($where['time'], $isNum);
|
||||
$whereInRecharge['store_id'] = 0;
|
||||
$totalMoney = $userRechageService->getRechargeMoneyByWhere($whereInRecharge, $rechargeSumField, $selectType, $group);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user