修改退款充值状态筛选逻辑

This commit is contained in:
mkm 2024-06-29 13:52:42 +08:00
parent 26f47a0a43
commit e975c3e28e

View File

@ -602,7 +602,7 @@ class TradeStatisticLogic extends BaseLogic
{
/** 普通商品订单支付金额 */
$storeOrder = new StoreOrder();
$where['refund_status'] = isset($where['refund_status']) ? $where['refund_status'] : [0, 3];
$where['refund_status'] = 0;
$where['paid'] = 1;
$timeKey = $this->TimeConvert($where['create_time'], $isNum);
@ -647,7 +647,7 @@ class TradeStatisticLogic extends BaseLogic
switch ($selectType) {
case "sum":
$totalMoney = $userRechage->where(['paid' => 1])
$totalMoney = $userRechage->where(['paid' => 1,'status'=>1])
->when(isset($where['create_time']), function ($query) use ($where) {
$query->whereBetweenTime('create_time', strtotime($where['timeKey']['start_time']), strtotime($where['timeKey']['end_time']));
})