|
|
|
@ -97,8 +97,8 @@ class OrderListService implements OrderListServiceInterface |
|
|
|
->select(''.$childTable.'.*') |
|
|
|
->join($mainTable, ''.$childTable.'.order_main_id', '=', ''.$mainTable.'.global_order_id') |
|
|
|
->with(['orderMain', 'orderGoods']) |
|
|
|
->where(['store_id' => $storeId, ''.$mainTable.'.type' => OrderType::ONLINE]); |
|
|
|
|
|
|
|
->where(['store_id' => $storeId, ''.$mainTable.'.type' => OrderType::ONLINE]) |
|
|
|
->whereNull($mainTable.'.deleted_at'); |
|
|
|
switch ($tab) { |
|
|
|
case 'all': |
|
|
|
break; |
|
|
|
@ -163,6 +163,7 @@ class OrderListService implements OrderListServiceInterface |
|
|
|
->select(''.$mainTable.'.*', ''.$childTable.'.order_num') |
|
|
|
->join($childTable, ''.$childTable.'.order_main_id', '=', ''.$mainTable.'.global_order_id') |
|
|
|
->where([''.$childTable.'.store_id' => $storeId, ''.$mainTable.'.type' => OrderType::OFFLINE]) |
|
|
|
->whereNull($mainTable.'.deleted_at') |
|
|
|
->with('user'); |
|
|
|
|
|
|
|
// if(!empty($start_time) && !empty($end_time)){
|
|
|
|
|