|
@@ -607,6 +607,12 @@ class OrderService
|
|
$info['unsend'] = Order::where('user_id', $userId)->where('order_status',OrderEnum::STATUS_PAY)->count();
|
|
$info['unsend'] = Order::where('user_id', $userId)->where('order_status',OrderEnum::STATUS_PAY)->count();
|
|
$info['unrec'] = Order::where('user_id', $userId)->where('order_status',OrderEnum::STATUS_SHIP)->count();
|
|
$info['unrec'] = Order::where('user_id', $userId)->where('order_status',OrderEnum::STATUS_SHIP)->count();
|
|
$info['uneva'] = Order::where('user_id', $userId)->where('order_status',OrderEnum::STATUS_CONFIRM)->count();
|
|
$info['uneva'] = Order::where('user_id', $userId)->where('order_status',OrderEnum::STATUS_CONFIRM)->count();
|
|
|
|
+ $info['inspect'] = Order::where('user_id', $userId)
|
|
|
|
+ ->whereIn('order_status',[
|
|
|
|
+ OrderEnum::STATUS_INSPECTION,
|
|
|
|
+ OrderEnum::STATUS_INSPECTION_PASS,
|
|
|
|
+ OrderEnum::STATUS_INSPECTION_FAIL])
|
|
|
|
+ ->count();
|
|
|
|
|
|
return $info;
|
|
return $info;
|
|
}
|
|
}
|