更新订单统计信息
This commit is contained in:
parent
cca62dcb43
commit
17ac025a3c
@ -96,10 +96,10 @@ class StoreOrderDao extends BaseDao
|
|||||||
$query->where('activity_type', $where['product_type']);
|
$query->where('activity_type', $where['product_type']);
|
||||||
})
|
})
|
||||||
->when(isset($where['status']) && $where['status'] !== '', function ($query) use ($where) {
|
->when(isset($where['status']) && $where['status'] !== '', function ($query) use ($where) {
|
||||||
// 12表示信用购
|
// 12表示信用购 先货后款
|
||||||
switch ($where['status']) {
|
switch ($where['status']) {
|
||||||
case 0 :
|
case 0 :
|
||||||
$query->whereIn('StoreOrder.status', [0, 9]);
|
$query->whereIn('StoreOrder.status', [0, 9, 12]);
|
||||||
break;
|
break;
|
||||||
case -2 :
|
case -2 :
|
||||||
$query->where('StoreOrder.paid', 1)->whereNotIn('StoreOrder.status', [10, 11]);
|
$query->where('StoreOrder.paid', 1)->whereNotIn('StoreOrder.status', [10, 11]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user