|
|
|
@ -136,8 +136,9 @@ class OrderOnlineService implements OrderOnlineServiceInterface |
|
|
|
$storeTypeIds[] = (string)$storeType; |
|
|
|
// 店铺今天的订单数
|
|
|
|
$count = Order::query() |
|
|
|
->where(['store_id' => $storeId, 'type' => OrderType::ONLINE]) |
|
|
|
->whereBetween('created_at', [strtotime(date('Y-m-d 00:00:00')), strtotime(date('Y-m-d 23:59:59'))]) |
|
|
|
->join('lanzu_order_main as main', 'main.id', '=', 'lanzu_order.order_main_id') |
|
|
|
->where(['lanzu_order.store_id' => $storeId, 'main.type' => OrderType::ONLINE]) |
|
|
|
->whereBetween('lanzu_order.created_at', [strtotime(date('Y-m-d 00:00:00')), strtotime(date('Y-m-d 23:59:59'))]) |
|
|
|
->count(); |
|
|
|
|
|
|
|
// 用户购物车数据
|
|
|
|
|