|
|
@@ -5141,7 +5141,12 @@ class StoreOrderRepository extends BaseRepository
|
|
5141
|
5141
|
return $query->field('uid,phone,nickname');
|
|
5142
|
5142
|
}
|
|
5143
|
5143
|
]);
|
|
5144
|
|
-
|
|
|
5144
|
+ if (!empty($where['keywords'])) {
|
|
|
5145
|
+ /** @var StoreOrderProductRepository $storeOrderProductRepository */
|
|
|
5146
|
+ $storeOrderProductRepository = app()->make(StoreOrderProductRepository::class);
|
|
|
5147
|
+ $orderIdList = $storeOrderProductRepository->getOrderIdListByKeyword($where['keywords']);
|
|
|
5148
|
+ $query->whereIn('order_id', $orderIdList);
|
|
|
5149
|
+ }
|
|
5145
|
5150
|
$kw = trim($where['product_keywords'] ?? '');
|
|
5146
|
5151
|
if ($kw !== '') {
|
|
5147
|
5152
|
$ids = Db::name('store_order_product')
|