修改退款充值状态筛选逻辑
This commit is contained in:
parent
26f47a0a43
commit
e975c3e28e
@ -602,7 +602,7 @@ class TradeStatisticLogic extends BaseLogic
|
|||||||
{
|
{
|
||||||
/** 普通商品订单支付金额 */
|
/** 普通商品订单支付金额 */
|
||||||
$storeOrder = new StoreOrder();
|
$storeOrder = new StoreOrder();
|
||||||
$where['refund_status'] = isset($where['refund_status']) ? $where['refund_status'] : [0, 3];
|
$where['refund_status'] = 0;
|
||||||
$where['paid'] = 1;
|
$where['paid'] = 1;
|
||||||
|
|
||||||
$timeKey = $this->TimeConvert($where['create_time'], $isNum);
|
$timeKey = $this->TimeConvert($where['create_time'], $isNum);
|
||||||
@ -647,7 +647,7 @@ class TradeStatisticLogic extends BaseLogic
|
|||||||
|
|
||||||
switch ($selectType) {
|
switch ($selectType) {
|
||||||
case "sum":
|
case "sum":
|
||||||
$totalMoney = $userRechage->where(['paid' => 1])
|
$totalMoney = $userRechage->where(['paid' => 1,'status'=>1])
|
||||||
->when(isset($where['create_time']), function ($query) use ($where) {
|
->when(isset($where['create_time']), function ($query) use ($where) {
|
||||||
$query->whereBetweenTime('create_time', strtotime($where['timeKey']['start_time']), strtotime($where['timeKey']['end_time']));
|
$query->whereBetweenTime('create_time', strtotime($where['timeKey']['start_time']), strtotime($where['timeKey']['end_time']));
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user