更新订单统计信息

This commit is contained in:
yaooo 2023-08-18 17:42:51 +08:00
parent cca62dcb43
commit 17ac025a3c

View File

@ -96,10 +96,10 @@ class StoreOrderDao extends BaseDao
$query->where('activity_type', $where['product_type']);
})
->when(isset($where['status']) && $where['status'] !== '', function ($query) use ($where) {
// 12表示信用购
// 12表示信用购 先货后款
switch ($where['status']) {
case 0 :
$query->whereIn('StoreOrder.status', [0, 9]);
$query->whereIn('StoreOrder.status', [0, 9, 12]);
break;
case -2 :
$query->where('StoreOrder.paid', 1)->whereNotIn('StoreOrder.status', [10, 11]);