Browse Source

平台后台-订单列表-支持关键字搜索订单数据

Xpy 8 months ago
parent
commit
7451fff230

+ 1 - 1
app/common/repositories/store/order/StoreOrderProductRepository.php

@@ -42,6 +42,6 @@ class StoreOrderProductRepository extends BaseRepository
42 42
      */
43 43
     public function getOrderIdListByKeyword($keyword): array
44 44
     {
45
-        return $this->dao->selectWhere(['cart_info', 'like', '%' . $keyword . '%'])->column('order_id');
45
+        return $this->dao->selectWhere(['cart_info'=> ['like', '%' . $keyword . '%']])->column('order_id');
46 46
     }
47 47
 }